1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<configuration description="Config for CTS Wifi Aware test cases">
18    <option name="test-suite-tag" value="cts" />
19    <option name="config-descriptor:metadata" key="component" value="wifi" />
20    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
21    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
23    <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.wifi.apex" />
24
25    <object class="com.android.tradefed.testtype.suite.module.DeviceFeatureModuleController"
26        type="module_controller">
27        <option name="required-feature" value="android.hardware.wifi.aware" />
28    </object>
29    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
30        <option name="mainline-module-package-name" value="com.google.android.wifi" />
31    </object>
32
33    <device name="device1">
34        <!-- For coverage to work, the APK should not be uninstalled until after coverage is pulled.
35             So it's a lot easier to install APKs outside the python code.
36        -->
37        <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
38            <option name="test-file-name" value="wifi_aware_snippet.apk" />
39        </target_preparer>
40        <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
41            <option name="force-skip-system-props" value="true" />
42            <option name="screen-always-on" value="on" />
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    <device name="device2">
50        <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
51            <option name="test-file-name" value="wifi_aware_snippet.apk" />
52        </target_preparer>
53        <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
54            <option name="force-skip-system-props" value="true" />
55            <option name="screen-always-on" value="on" />
56        </target_preparer>
57        <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
58            <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
59            <option name="run-command" value="wm dismiss-keyguard" />
60        </target_preparer>
61    </device>
62
63    <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest">
64      <!-- The mobly-par-file-name should match the module name -->
65      <option name="mobly-par-file-name" value="CtsWifiAwareTestCases" />
66      <!-- Timeout limit in milliseconds for all test cases of the python binary -->
67      <option name="mobly-test-timeout" value="180000" />
68    </test>
69</configuration>
70
71