1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00

Merge pull request #361 from Sticklyman1936/audio_fix

Remove stale browser-specific commands from audio workload
This commit is contained in:
marcbonnici 2017-03-02 10:46:18 +00:00 committed by GitHub
commit 55e40ded1c

View File

@ -62,9 +62,6 @@ class Audio(Workload):
# Clear the logs
self.device.clear_logcat()
# Clear browser cache
self.device.execute('pm clear com.android.browser')
if self.clear_file_cache:
self.device.execute('sync')
self.device.set_sysfile_value('/proc/sys/vm/drop_caches', 3)
@ -72,10 +69,6 @@ class Audio(Workload):
# Start the background music
self.device.execute('am start -W -S -n com.android.music/.MediaPlaybackActivity -d {}'.format(self.on_device_file))
# Launch the browser to blank the screen
self.device.execute('am start -W -n com.android.browser/.BrowserActivity about:blank')
time.sleep(5) # Wait for browser to be properly launched
def run(self, context):
time.sleep(self.duration)