1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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="Runs ActivityManager Performance Tests"> 17 <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup"> 18 <option name="test-file-name" value="ActivityManagerPerfTests.apk"/> 19 <option name="test-file-name" value="ActivityManagerPerfTestsTestApp.apk"/> 20 <option name="test-file-name" value="ActivityManagerPerfTestsStubApp1.apk"/> 21 <option name="test-file-name" value="ActivityManagerPerfTestsStubApp2.apk"/> 22 <option name="test-file-name" value="ActivityManagerPerfTestsStubApp3.apk"/> 23 <option name="cleanup-apks" value="true"/> 24 </target_preparer> 25 26 <option name="test-suite-tag" value="apct"/> 27 <option name="test-tag" value="ActivityManagerPerfTests"/> 28 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 29 <option name="package" value="com.android.frameworks.perftests.amtests"/> 30 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/> 31 32 <!-- TODO: Add PerfettoListener to automatically capture perfetto traces for each test--> 33 <!-- Listener related args for collecting the traces and waiting for the device 34 to stabilize. --> 35 <option name="device-listeners" 36 value="android.device.collectors.ProcLoadListener" /> 37 <!-- Guarantee that user defined RunListeners will be running before any of the default 38 listeners defined in this runner. --> 39 <option name="instrumentation-arg" key="newRunListenerMode" value="true" /> 40 41 <!-- ProcLoadListener related arguments --> 42 <!-- Wait for device last minute threshold to reach 3 with 2 minute timeout before 43 starting the test run --> 44 <option name="instrumentation-arg" key="procload-collector:per_run" value="true" /> 45 <option name="instrumentation-arg" key="proc-loadavg-threshold" value="3" /> 46 <option name="instrumentation-arg" key="proc-loadavg-timeout" value="120000" /> 47 <option name="instrumentation-arg" key="proc-loadavg-interval" value="10000" /> 48 </test> 49</configuration> 50