1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright 2017 Google Inc. All Rights Reserved -->
3<!-- Required options: branch build-flavor -->
4<configuration description="Run Video Multimeter test with plotter setup">
5    <option name="test-tag" value="VideoMultimeter" />
6
7    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
8        <option name="screen-always-on" value="on" />
9        <option name="screen-adaptive-brightness" value="off" />
10        <option name="disable-audio" value="false"/>
11        <option name="screen-saver" value="off"/>
12        <option name="set-system-setting" key="screen_brightness" value="230" />
13        <option name="set-system-setting" key="volume_music_speaker" value="12" />
14        <option name="set-system-setting" key="volume_music_headset" value="12" />
15        <option name="set-system-setting" key="volume_music_headphone" value="12" />
16        <option name="set-property" key="audio.safemedia.bypass" value="1"/>
17    </target_preparer>
18
19    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
20    </target_preparer>
21
22    <target_preparer class="com.android.tradefed.targetprep.InstallApkSetup">
23        <option name="apk-path" value="/google/data/ro/teams/tradefed/testdata/media/multimeter/mediaplayer.apk" />
24    </target_preparer>
25
26    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
27        <option name="push-file" key="gs://tradefed_test_resources/teams/tradefed/testdata/media/multimeter/video_calibration.mp4" value="/sdcard/media_api/samples/video_cali.mp4" />
28        <option name="push-file" key="gs://tradefed_test_resources/teams/tradefed/testdata/media/multimeter/video_1080p_30fps_10min_bbb.mp4" value="/sdcard/media_api/samples/video.mp4" />
29        <option name="push-file" key="gs://tradefed_test_resources/teams/tradefed/testdata/media/multimeter/video_720p_60fps_4min_mountham.mp4" value="/sdcard/media_api/samples/video2.mp4" />
30    </target_preparer>
31
32    <test class="com.android.media.tests.VideoMultimeterRunner">
33        <option name="multimeter-util-path" value="/google/data/ro/teams/tradefed/testdata/media/multimeter/optofi.sh" />
34        <option name="robot-util-path" value="/google/data/ro/teams/tradefed/testdata/media/multimeter/mbplotter.sh" />
35        <option name="start-video-cmd" value="am instrument -w -r -e media-file %s -e class com.android.mediaframeworktest.stress.MediaPlayerStressTest com.android.mediaframeworktest/.MediaPlayerStressTestRunner" />
36        <option name="stop-video-cmd" value="am force-stop com.android.mediaframeworktest" />
37    </test>
38</configuration>
39