1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

Removing browser launch from audio and video

For historical reasons audio and video workloads were launching the
browser as part of their setup. This is no longer necessary. Not only
that, since on recent devices the default Android browser is missing,
this causes problems with the workloads. This commit removes the browser
launch.
This commit is contained in:
Sergei Trofimov 2017-03-02 10:27:28 +00:00
parent 510abf4666
commit 7130b3a4ab
2 changed files with 0 additions and 14 deletions

View File

@ -59,14 +59,6 @@ class Audio(Workload):
self.device.push_file(self.audio_file, self.on_device_file, timeout=120)
# Open the browser with default page
self.device.execute('am start -n com.android.browser/.BrowserActivity about:blank')
time.sleep(5)
# Stop the browser if already running and wait for it to stop
self.device.execute('am force-stop com.android.browser')
time.sleep(5)
# Clear the logs
self.device.clear_logcat()
@ -88,8 +80,6 @@ class Audio(Workload):
time.sleep(self.duration)
def update_result(self, context):
# Stop the browser
self.device.execute('am force-stop com.android.browser')
# Stop the audio
self.device.execute('am force-stop com.android.music')

View File

@ -109,10 +109,6 @@ class VideoWorkload(Workload):
if self.force_dependency_push or not self.device.file_exists(on_device_video_file):
self.logger.debug('Copying {} to device.'.format(self.host_video_file))
self.device.push_file(self.host_video_file, on_device_video_file, timeout=120)
self.device.execute('am start -n com.android.browser/.BrowserActivity about:blank')
time.sleep(5)
self.device.execute('am force-stop com.android.browser')
time.sleep(5)
self.device.clear_logcat()
command = 'am start -W -S -n com.android.gallery3d/.app.MovieActivity -d {}'.format(on_device_video_file)
self.device.execute(command)