xref: /aosp_15_r20/cts/tests/tests/media/projection/sdk34/AndroidTest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2024 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<configuration description="Config for CTS MediaProjection SDK34 test cases">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="media" />
19    <option name="config-descriptor:metadata" key="parameter" value="instant_app" />
20    <option name="config-descriptor:metadata" key="parameter" value="multi_abi" />
21    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user_on_secondary_display" />
23    <!-- The sandbox cannot retrieve MediaProjection. -->
24    <option name="config-descriptor:metadata" key="parameter" value="not_run_on_sdk_sandbox" />
25    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
26        <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
27        <option name="set-test-harness" value="false" />
28        <option name="screen-always-on" value="on" />
29        <option name="screen-adaptive-brightness" value="off" />
30        <option name="disable-audio" value="false"/>
31        <option name="screen-saver" value="off"/>
32    </target_preparer>
33    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34        <option name="cleanup-apks" value="true" />
35        <option name="test-file-name" value="CtsMediaProjectionSDK34TestCases.apk" />
36    </target_preparer>
37    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
38        <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
39        <option name="run-command" value="wm dismiss-keyguard" />
40    </target_preparer>
41    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
42        <option name="package" value="android.media.projection.cts.sdk34" />
43        <!-- setup can be expensive so limit the number of shards -->
44        <option name="ajur-max-shard" value="5" />
45        <!-- test-timeout unit is ms, value = 30 min -->
46        <option name="test-timeout" value="1800000" />
47        <option name="runtime-hint" value="4h" />
48        <option name="hidden-api-checks" value="true" />
49        <!-- disable isolated storage so tests can access dynamic config stored in /sdcard. -->
50        <option name="isolated-storage" value="false" />
51    </test>
52    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.TestFailureModuleController">
53        <option name="screenshot-on-failure" value="true" />
54        <option name="bugreportz-on-failure" value="true" />
55        <option name="logcat-on-failure" value="true" />
56    </object>
57</configuration>
58