1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2013 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 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 coreApp="true" 19 package="com.android.server.telecom.tests" 20 android:debuggable="true"> 21 22 <!-- Test connection service outgoing video preview. --> 23 <uses-permission android:name="android.permission.CAMERA" /> 24 <uses-permission 25 android:name="com.android.server.telecom.permission.REGISTER_PROVIDER_OR_SUBSCRIPTION" /> 26 <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE" /> 27 28 <application android:label="@string/app_name" 29 android:debuggable="true"> 30 <uses-library android:name="android.test.runner" /> 31 32 <!-- Miscellaneous telecom app-related test activities. --> 33 34 <service android:name="com.android.server.telecom.testapps.TestConnectionService" 35 android:permission="android.permission.BIND_CONNECTION_SERVICE" > 36 <intent-filter> 37 <action android:name="android.telecom.ConnectionService" /> 38 </intent-filter> 39 </service> 40 41 <service android:name="com.android.server.telecom.tests.MockConnectionService" 42 android:permission="android.permission.BIND_CONNECTION_SERVICE" > 43 <intent-filter> 44 <action android:name="android.telecom.ConnectionService" /> 45 </intent-filter> 46 </service> 47 48 <service android:name="com.android.server.telecom.testapps.TestConnectionManager" 49 android:permission="android.permission.BIND_CONNECTION_SERVICE" > 50 <intent-filter> 51 <action android:name="android.telecom.ConnectionService" /> 52 </intent-filter> 53 </service> 54 55 <service android:name="com.android.server.telecom.testapps.TestInCallServiceImpl" 56 android:process="com.android.server.telecom.testapps.TestInCallService" 57 android:permission="android.permission.BIND_INCALL_SERVICE" > 58 <intent-filter> 59 <action android:name="android.telecom.InCallService"/> 60 </intent-filter> 61 </service> 62 63 <activity android:name="com.android.server.telecom.testapps.TestCallActivity" 64 android:label="@string/testCallActivityLabel"> 65 <intent-filter> 66 <action android:name="android.intent.action.MAIN" /> 67 <category android:name="android.intent.category.DEFAULT" /> 68 <category android:name="android.intent.category.LAUNCHER" /> 69 </intent-filter> 70 <intent-filter> 71 <action android:name="android.telecom.testapps.ACTION_START_INCOMING_CALL" /> 72 <action android:name="android.telecom.testapps.ACTION_NEW_UNKNOWN_CALL" /> 73 <category android:name="android.intent.category.DEFAULT" /> 74 <data android:scheme="tel" /> 75 </intent-filter> 76 </activity> 77 78 <receiver android:name="com.android.server.telecom.testapps.CallNotificationReceiver" 79 android:exported="false"> 80 <intent-filter> 81 <action android:name="com.android.server.telecom.testapps.ACTION_CALL_SERVICE_EXIT" /> 82 </intent-filter> 83 </receiver> 84 85 <activity android:name="com.android.server.telecom.testapps.TestDialerActivity" 86 android:label="@string/testDialerActivityLabel" 87 android:process="com.android.server.telecom.testapps.TestInCallService"> 88 <intent-filter> 89 <action android:name="android.intent.action.DIAL" /> 90 <category android:name="android.intent.category.DEFAULT" /> 91 <category android:name="android.intent.category.BROWSABLE" /> 92 <data android:mimeType="vnd.android.cursor.item/phone" /> 93 <data android:mimeType="vnd.android.cursor.item/person" /> 94 </intent-filter> 95 <intent-filter> 96 <action android:name="android.intent.action.DIAL" /> 97 <category android:name="android.intent.category.DEFAULT" /> 98 <category android:name="android.intent.category.BROWSABLE" /> 99 <data android:scheme="voicemail" /> 100 </intent-filter> 101 <intent-filter> 102 <action android:name="android.intent.action.DIAL" /> 103 <category android:name="android.intent.category.DEFAULT" /> 104 </intent-filter> 105 <intent-filter> 106 <action android:name="android.intent.action.VIEW" /> 107 <action android:name="android.intent.action.DIAL" /> 108 <category android:name="android.intent.category.DEFAULT" /> 109 <category android:name="android.intent.category.BROWSABLE" /> 110 <data android:scheme="tel" /> 111 </intent-filter> 112 <intent-filter> 113 <action android:name="android.intent.action.MAIN" /> 114 <category android:name="android.intent.category.DEFAULT" /> 115 <category android:name="android.intent.category.LAUNCHER" /> 116 </intent-filter> 117 </activity> 118 </application> 119 120 <!-- 121 The prefered way is to use 'runtest': 122 runtest telecom-unit 123 124 runtest is a wrapper around 'adb shell'. The low level shell command is: 125 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner 126 127 To run a single test case: 128 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner 129 -e com.android.server.telecom.tests.unit.FooUnitTest 130 --> 131 <instrumentation android:name="android.test.InstrumentationTestRunner" 132 android:targetPackage="com.android.server.telecom" 133 android:label="Telecomm application tests." 134 android:debuggable="true"/> 135 </manifest> 136