Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2021 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 | --> |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 13 | <configuration description="Config for CTS Nearby Mainline multi devices end-to-end test suite"> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 14 | <option name="test-suite-tag" value="cts" /> |
| 15 | <option name="config-descriptor:metadata" key="component" value="wifi" /> |
| 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 | <device name="device1"> |
| 21 | <!-- For coverage to work, the APK should not be uninstalled until after coverage is pulled. |
| 22 | So it's a lot easier to install APKs outside the python code. |
| 23 | --> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 24 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> |
| 25 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 26 | <option name="remount-system" value="true" /> |
| 27 | <option name="push" value="NearbyMultiDevicesClientsSnippets.apk->/system/app/NearbyMultiDevicesClientsSnippets/NearbyMultiDevicesClientsSnippets.apk" /> |
| 28 | <option name="push" value="NearbyFastPairSeekerDataProvider.apk->/system/app/NearbyFastPairSeekerDataProvider/NearbyFastPairSeekerDataProvider.apk" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 29 | </target_preparer> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 30 | <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 31 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 32 | <option name="run-command" value="input keyevent KEYCODE_WAKEUP" /> |
| 33 | <option name="run-command" value="wm dismiss-keyguard" /> |
| 34 | </target_preparer> |
| 35 | <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer"> |
| 36 | <!-- Any python dependencies can be specified and will be installed with pip --> |
Julien Desprez | 6d28b97 | 2022-03-23 16:45:25 +0000 | [diff] [blame] | 37 | <!-- TODO(b/225958696): Import python dependencies --> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 38 | <option name="dep-module" value="mobly" /> |
| 39 | <option name="dep-module" value="retry" /> |
| 40 | </target_preparer> |
Eric Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 41 | <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> |
| 42 | <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device --> |
| 43 | <option name="screen-always-on" value="on" /> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 44 | <!-- List permissions requested by the APK: aapt d permissions <PATH_TO_YOUR_APK> --> |
| 45 | <option |
| 46 | name="run-command" |
| 47 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH" /> |
| 48 | <option |
| 49 | name="run-command" |
| 50 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADMIN" /> |
| 51 | <option |
| 52 | name="run-command" |
| 53 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADVERTISE" /> |
| 54 | <option |
| 55 | name="run-command" |
| 56 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_CONNECT" /> |
| 57 | <option |
| 58 | name="run-command" |
| 59 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_PRIVILEGED" /> |
| 60 | <option |
| 61 | name="run-command" |
| 62 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_SCAN" /> |
| 63 | <option |
| 64 | name="run-command" |
| 65 | value="pm grant android.nearby.multidevices android.permission.INTERNET" /> |
| 66 | <option |
| 67 | name="run-command" |
| 68 | value="pm grant android.nearby.multidevices android.permission.GET_ACCOUNTS" /> |
| 69 | <option |
| 70 | name="run-command" |
| 71 | value="pm grant android.nearby.multidevices android.permission.WRITE_SECURE_SETTINGS" /> |
| 72 | <option |
| 73 | name="run-command" |
| 74 | value="pm grant android.nearby.multidevices android.permission.REORDER_TASKS" /> |
Eric Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 75 | </target_preparer> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 76 | </device> |
| 77 | <device name="device2"> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 78 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" /> |
| 79 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher"> |
| 80 | <option name="remount-system" value="true" /> |
| 81 | <option name="push" value="NearbyMultiDevicesClientsSnippets.apk->/system/app/NearbyMultiDevicesClientsSnippets/NearbyMultiDevicesClientsSnippets.apk" /> |
| 82 | <option name="push" value="NearbyFastPairSeekerDataProvider.apk->/system/app/NearbyFastPairSeekerDataProvider/NearbyFastPairSeekerDataProvider.apk" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 83 | </target_preparer> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 84 | <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 85 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 86 | <option name="run-command" value="input keyevent KEYCODE_WAKEUP" /> |
| 87 | <option name="run-command" value="wm dismiss-keyguard" /> |
| 88 | </target_preparer> |
Eric Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 89 | <target_preparer class="com.android.tradefed.targetprep.DeviceSetup"> |
| 90 | <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device --> |
| 91 | <option name="screen-always-on" value="on" /> |
Eric Lin | eeddac9 | 2022-03-30 18:11:24 +0800 | [diff] [blame^] | 92 | <!-- List permissions requested by the APK: aapt d permissions <PATH_TO_YOUR_APK> --> |
| 93 | <option |
| 94 | name="run-command" |
| 95 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH" /> |
| 96 | <option |
| 97 | name="run-command" |
| 98 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADMIN" /> |
| 99 | <option |
| 100 | name="run-command" |
| 101 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADVERTISE" /> |
| 102 | <option |
| 103 | name="run-command" |
| 104 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_CONNECT" /> |
| 105 | <option |
| 106 | name="run-command" |
| 107 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_PRIVILEGED" /> |
| 108 | <option |
| 109 | name="run-command" |
| 110 | value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_SCAN" /> |
| 111 | <option |
| 112 | name="run-command" |
| 113 | value="pm grant android.nearby.multidevices android.permission.INTERNET" /> |
| 114 | <option |
| 115 | name="run-command" |
| 116 | value="pm grant android.nearby.multidevices android.permission.GET_ACCOUNTS" /> |
| 117 | <option |
| 118 | name="run-command" |
| 119 | value="pm grant android.nearby.multidevices android.permission.WRITE_SECURE_SETTINGS" /> |
| 120 | <option |
| 121 | name="run-command" |
| 122 | value="pm grant android.nearby.multidevices android.permission.REORDER_TASKS" /> |
Eric Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 123 | </target_preparer> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 124 | </device> |
| 125 | |
| 126 | <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest"> |
| 127 | <!-- The mobly-par-file-name should match the module name --> |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 128 | <option name="mobly-par-file-name" value="CtsNearbyMultiDevicesTestSuite" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 129 | <!-- Timeout limit in milliseconds for all test cases of the python binary --> |
| 130 | <option name="mobly-test-timeout" value="60000" /> |
| 131 | </test> |
| 132 | </configuration> |
| 133 | |