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" 19 package="com.android.connectivitymanagertest" 20 android:sharedUserId="com.android.uid.test"> 21 22 <!-- We add an application tag here just so that we can indicate that 23 this package needs to link against the android.test library, 24 which is needed when building test cases. --> 25 <application> 26 <uses-library android:name="android.test.runner" /> 27 <activity android:name="ConnectivityManagerTestActivity" 28 android:label="@string/app_name"> 29 <intent-filter> 30 <action android:name="android.intent.action.MAIN" /> 31 <category android:name="android.intent.category.LAUNCHER" /> 32 </intent-filter> 33 </activity> 34 </application> 35 <!-- 36 This declares that this app uses the instrumentation test runner targeting 37 the package of connectivitymanagertest. To run the tests use the command: 38 "adb shell am instrument -e ssid <SSID> -w 39 com.android.connectivitymanagertest/.ConnectivityManagerTestRunner", 40 the access point <SSID> should be an open AP. 41 --> 42 <instrumentation android:name=".ConnectivityManagerTestRunner" 43 android:targetPackage="com.android.connectivitymanagertest" 44 android:label="Test runner for Connectivity Manager Tests" 45 /> 46 47 <!-- 48 To run the unit tests use the command: 49 "adb shell am instrument -w 50 com.android.connectivitymanagertest/.ConnectivityManagerUnitTestRunner" 51 --> 52 <instrumentation android:name=".ConnectivityManagerUnitTestRunner" 53 android:targetPackage="com.android.connectivitymanagertest" 54 android.label="Test runner for unit tests" 55 /> 56 57 <!-- run stress test suite: 58 "adb shell am instrument -e stressnum <200> -w 59 com.android.connectivitymanagertest/.ConnectivityManagerStressTestRunner" 60 --> 61 <instrumentation android:name=".ConnectivityManagerStressTestRunner" 62 android:targetPackage="com.android.connectivitymanagertest" 63 android:label="Test runner for Connectivity Manager Stress Tests" 64 /> 65 66 <uses-permission android:name="android.permission.INTERNET" /> 67 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 68 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 69 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 70 <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 71 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> 72 <uses-permission android:name="android.permission.WAKE_LOCK" /> 73 <uses-permission android:name="android.permission.DEVICE_POWER" /> 74 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 75 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> 76 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> 77 <uses-permission android:name="android.permission.INJECT_EVENTS" /> 78 </manifest> 79