1<!-- 2 ~ Copyright (C) 2022 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 17<configuration description="Runs MediaProjection package Tests."> 18 <option name="test-suite-tag" value="apct" /> 19 <option name="test-suite-tag" value="apct-instrumentation" /> 20 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 21 <option name="cleanup-apks" value="true" /> 22 <option name="install-arg" value="-t" /> 23 <option name="test-file-name" value="MediaProjectionTests.apk" /> 24 </target_preparer> 25 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 26 <option name="cleanup-apks" value="true" /> 27 <option name="force-install-mode" value="FULL"/>ss 28 <option name="test-file-name" value="CtsMediaProjectionTestCasesHelperApp.apk" /> 29 </target_preparer> 30 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 31 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" /> 32 <option name="run-command" value="wm dismiss-keyguard" /> 33 </target_preparer> 34 35 <option name="test-tag" value="MediaProjectionTests" /> 36 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 37 <option name="package" value="android.media.projection.mediaprojectiontests" /> 38 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> 39 <option name="hidden-api-checks" value="false" /> 40 </test> 41</configuration> 42