Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 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 | |
| 17 | <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us --> |
| 18 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Xia Wang | 11f2b42 | 2013-09-06 15:19:03 -0700 | [diff] [blame] | 19 | package="com.android.connectivitymanagertest"> |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 20 | |
| 21 | <!-- We add an application tag here just so that we can indicate that |
| 22 | this package needs to link against the android.test library, |
| 23 | which is needed when building test cases. --> |
| 24 | <application> |
| 25 | <uses-library android:name="android.test.runner" /> |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 26 | </application> |
Xia Wang | 1c6911a | 2013-05-21 14:18:56 -0700 | [diff] [blame] | 27 | |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 28 | <!-- |
| 29 | This declares that this app uses the instrumentation test runner targeting |
Xia Wang | 0b90d76 | 2010-05-17 12:01:18 -0700 | [diff] [blame] | 30 | the package of connectivitymanagertest. To run the tests use the command: |
| 31 | "adb shell am instrument -e ssid <SSID> -w |
| 32 | com.android.connectivitymanagertest/.ConnectivityManagerTestRunner", |
| 33 | the access point <SSID> should be an open AP. |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 34 | --> |
| 35 | <instrumentation android:name=".ConnectivityManagerTestRunner" |
| 36 | android:targetPackage="com.android.connectivitymanagertest" |
| 37 | android:label="Test runner for Connectivity Manager Tests" |
| 38 | /> |
| 39 | |
Xia Wang | 120a58f | 2010-06-28 16:08:35 -0700 | [diff] [blame] | 40 | <!-- |
| 41 | To run the unit tests use the command: |
| 42 | "adb shell am instrument -w |
| 43 | com.android.connectivitymanagertest/.ConnectivityManagerUnitTestRunner" |
| 44 | --> |
| 45 | <instrumentation android:name=".ConnectivityManagerUnitTestRunner" |
| 46 | android:targetPackage="com.android.connectivitymanagertest" |
| 47 | android.label="Test runner for unit tests" |
| 48 | /> |
| 49 | |
Xia Wang | 6026d52 | 2010-11-16 11:35:47 -0800 | [diff] [blame] | 50 | <!-- run stress test suite: |
| 51 | "adb shell am instrument -e stressnum <200> -w |
| 52 | com.android.connectivitymanagertest/.ConnectivityManagerStressTestRunner" |
| 53 | --> |
| 54 | <instrumentation android:name=".ConnectivityManagerStressTestRunner" |
| 55 | android:targetPackage="com.android.connectivitymanagertest" |
| 56 | android:label="Test runner for Connectivity Manager Stress Tests" |
| 57 | /> |
| 58 | |
Xia Wang | 1c6911a | 2013-05-21 14:18:56 -0700 | [diff] [blame] | 59 | <!-- run associate test: |
| 60 | "adb shell am instrument -e ssid <ssid> -e password <password> |
| 61 | -e ecurity-type [OPEN|WEP64|WEP128|WPA_TKIP|WPA2_AES] -e frequency-band [2.4|5.0|auto] |
| 62 | -w com.android.connectivitymanagertest/.WifiAssociationTestRunner" |
| 63 | --> |
| 64 | <instrumentation android:name=".WifiAssociationTestRunner" |
| 65 | android:targetPackage="com.android.connectivitymanagertest" |
| 66 | android:label="Test runner for Wifi association test" |
| 67 | /> |
| 68 | |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 69 | <uses-permission android:name="android.permission.INTERNET" /> |
| 70 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 71 | <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> |
Eric Rowe | 4902ac4 | 2014-11-20 11:21:54 -0800 | [diff] [blame] | 72 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 73 | <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 74 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
Xia Wang | 90e1c78 | 2010-12-03 14:51:17 -0800 | [diff] [blame] | 75 | <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> |
Jeremy Klein | d42209d | 2015-12-28 15:11:58 -0800 | [diff] [blame] | 76 | <uses-permission android:name="android.permission.TETHER_PRIVILEGED" /> |
paulhu | 59148b7 | 2019-08-12 16:25:11 +0800 | [diff] [blame] | 77 | <!-- This permission is added for API call setAirplaneMode() in ConnectivityManager --> |
| 78 | <uses-permission android:name="android.permission.NETWORK_SETTINGS" /> |
Xia Wang | 2c15966 | 2010-03-27 18:25:14 -0700 | [diff] [blame] | 79 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
Xia Wang | 90e1c78 | 2010-12-03 14:51:17 -0800 | [diff] [blame] | 80 | <uses-permission android:name="android.permission.DEVICE_POWER" /> |
| 81 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
Xia Wang | 2ab453b | 2012-10-17 12:03:29 -0700 | [diff] [blame] | 82 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> |
| 83 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
Xia Wang | b2a2096 | 2012-10-31 16:53:26 -0700 | [diff] [blame] | 84 | <uses-permission android:name="android.permission.INJECT_EVENTS" /> |
Xia Wang | 19306af | 2013-09-13 16:51:38 -0700 | [diff] [blame] | 85 | <uses-permission android:name="android.permission.DEVICE_POWER" /> |
| 86 | |
Xia Wang | 7fb1f67 | 2010-03-04 11:54:39 -0800 | [diff] [blame] | 87 | </manifest> |