• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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="Config for ActivityManager native test cases">
17    <option name="test-suite-tag" value="apct" />
18    <option name="test-suite-tag" value="apct-native" />
19    <option name="config-descriptor:metadata" key="component" value="framework" />
20    <option name="config-descriptor:metadata" key="parameter" value="instant_app" />
21    <option name="config-descriptor:metadata" key="parameter" value="multi_abi" />
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
23
24    <!-- Force root to allow registering UidImportanceListener from native test -->
25    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
26        <option name="force-root" value="true" />
27    </target_preparer>
28    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29        <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
30        <option name="run-command" value="wm dismiss-keyguard" />
31    </target_preparer>
32    <!-- Install the helper apk -->
33    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34        <option name="cleanup-apks" value="true" />
35        <option name="test-file-name" value="UidImportanceHelperApp.apk" />
36    </target_preparer>
37
38    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
39        <option name="cleanup" value="true" />
40        <option name="push" value="ActivityManagerNativeTestCases->/data/local/tmp/ActivityManagerNativeTestCases" />
41        <option name="append-bitness" value="true" />
42    </target_preparer>
43
44    <test class="com.android.tradefed.testtype.GTest" >
45        <option name="native-test-device-path" value="/data/local/tmp" />
46        <option name="module-name" value="ActivityManagerNativeTestCases" />
47        <option name="runtime-hint" value="1m" />
48    </test>
49
50    <!-- Controller that will skip the module if a native bridge situation is detected -->
51    <!-- For example: module wants to run arm and device is x86 -->
52    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.NativeBridgeModuleController" />
53</configuration>
54