blob: 0a80cf96fba36c63458f9898335ed52116e6097f [file] [log] [blame]
Riddle Hsub078bc12020-05-04 21:58:50 +08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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 WmPerfTests metric instrumentation.">
17 <option name="test-suite-tag" value="apct" />
18 <option name="test-suite-tag" value="apct-metric-instrumentation" />
19 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
20 <option name="cleanup-apks" value="true" />
21 <option name="test-file-name" value="WmPerfTests.apk" />
22 </target_preparer>
23
Riddle Hsu36a901b2020-07-22 19:08:10 +080024 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
25 <option name="force-skip-system-props" value="true" />
26 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
27 <option name="run-command" value="cmd window dismiss-keyguard" />
28 <option name="run-command" value="cmd package compile -m speed com.android.perftests.wm" />
29 </target_preparer>
30
Riddle Hsub078bc12020-05-04 21:58:50 +080031 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
32 <option name="package" value="com.android.perftests.wm" />
33 <option name="hidden-api-checks" value="false"/>
Riddle Hsu36a901b2020-07-22 19:08:10 +080034 <option name="device-listeners" value="android.wm.WmPerfRunListener" />
Riddle Hsub078bc12020-05-04 21:58:50 +080035 </test>
36
37 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
38 <option name="directory-keys" value="/data/local/WmPerfTests" />
39 <option name="collect-on-run-ended-only" value="true" />
40 </metrics_collector>
41</configuration>