• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3     Licensed under the Apache License, Version 2.0 (the "License");
4     you may not use this file except in compliance with the License.
5     You may obtain a copy of the License at
6          http://www.apache.org/licenses/LICENSE-2.0
7     Unless required by applicable law or agreed to in writing, software
8     distributed under the License is distributed on an "AS IS" BASIS,
9     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10     See the License for the specific language governing permissions and
11     limitations under the License.
12-->
13<configuration description="Config for CTS Uwb multi-device test cases">
14    <option name="test-suite-tag" value="cts" />
15    <option name="config-descriptor:metadata" key="component" value="uwb" />
16    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
17    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
18    <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
19
20    <object class="com.android.tradefed.testtype.suite.module.DeviceFeatureModuleController"
21        type="module_controller">
22        <option name="required-feature" value="android.hardware.uwb" />
23    </object>
24
25    <device name="device1">
26        <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
27            <option name="test-file-name" value="uwb_snippet.apk" />
28        </target_preparer>
29        <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
30            <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
31            <option name="run-command" value="wm dismiss-keyguard" />
32        </target_preparer>
33        <!-- Any python dependencies can be specified and will be installed with pip -->
34        <!-- TODO(b/225958696): Import python dependencies -->
35        <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
36          <option name="dep-module" value="mobly" />
37        </target_preparer>
38        -->
39    </device>
40    <device name="device2">
41        <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
42            <option name="test-file-name" value="uwb_snippet.apk" />
43        </target_preparer>
44        <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
45            <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
46            <option name="run-command" value="wm dismiss-keyguard" />
47        </target_preparer>
48    </device>
49
50    <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest">
51      <!-- The mobly-par-file-name should match the module name -->
52      <option name="mobly-par-file-name" value="CtsUwbMultiDeviceTestCases" />
53      <!-- Timeout limit in milliseconds for all test cases of the python binary -->
54      <option name="mobly-test-timeout" value="60000" />
55    </test>
56</configuration>
57
58