Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 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" |
Ihab Awad | c17294c | 2014-08-04 19:23:37 -0700 | [diff] [blame] | 18 | coreApp="true" |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 19 | package="com.android.server.telecom.tests" |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 20 | android:debuggable="true"> |
Yorke Lee | 7c65acd | 2014-06-04 11:11:03 -0700 | [diff] [blame] | 21 | |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame^] | 22 | <!-- TODO: Needed because we call BluetoothAdapter.getDefaultAdapter() statically, and |
| 23 | BluetoothAdapter is a final class. --> |
| 24 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
| 25 | |
| 26 | <!-- TODO: Needed because we call ActivityManager.getCurrentUser() statically. --> |
| 27 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
| 28 | <uses-permission android:name="android.permission.MANAGE_USERS" /> |
Tyler Gunn | b1a95a7 | 2014-07-23 14:08:19 -0700 | [diff] [blame] | 29 | |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 30 | <application android:label="@string/app_name" |
| 31 | android:debuggable="true"> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 32 | <uses-library android:name="android.test.runner" /> |
| 33 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 34 | <!-- Miscellaneous telecom app-related test activities. --> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 35 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 36 | <service android:name="com.android.server.telecom.testapps.TestConnectionService" |
Tyler Gunn | cb59b67 | 2014-08-20 09:02:11 -0700 | [diff] [blame] | 37 | android:permission="android.permission.BIND_CONNECTION_SERVICE" > |
Santos Cordon | de14ddb | 2014-02-13 16:09:47 -0800 | [diff] [blame] | 38 | <intent-filter> |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 39 | <action android:name="android.telecom.ConnectionService" /> |
Santos Cordon | de14ddb | 2014-02-13 16:09:47 -0800 | [diff] [blame] | 40 | </intent-filter> |
| 41 | </service> |
| 42 | |
Evan Charlton | 6de1445 | 2014-09-23 09:25:39 -0700 | [diff] [blame] | 43 | <service android:name="com.android.server.telecom.tests.MockConnectionService" |
| 44 | android:permission="android.permission.BIND_CONNECTION_SERVICE" > |
| 45 | <intent-filter> |
| 46 | <action android:name="android.telecom.ConnectionService" /> |
| 47 | </intent-filter> |
| 48 | </service> |
| 49 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 50 | <service android:name="com.android.server.telecom.testapps.TestConnectionManager" |
Tyler Gunn | cb59b67 | 2014-08-20 09:02:11 -0700 | [diff] [blame] | 51 | android:permission="android.permission.BIND_CONNECTION_SERVICE" > |
Ihab Awad | c17294c | 2014-08-04 19:23:37 -0700 | [diff] [blame] | 52 | <intent-filter> |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 53 | <action android:name="android.telecom.ConnectionService" /> |
Ihab Awad | c17294c | 2014-08-04 19:23:37 -0700 | [diff] [blame] | 54 | </intent-filter> |
| 55 | </service> |
| 56 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 57 | <service android:name="com.android.server.telecom.testapps.TestInCallServiceImpl" |
| 58 | android:process="com.android.server.telecom.testapps.TestInCallService" |
Tyler Gunn | 61b9210 | 2014-08-19 07:42:20 -0700 | [diff] [blame] | 59 | android:permission="android.permission.BIND_INCALL_SERVICE" > |
| 60 | <intent-filter> |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 61 | <action android:name="android.telecom.InCallService"/> |
Tyler Gunn | 61b9210 | 2014-08-19 07:42:20 -0700 | [diff] [blame] | 62 | </intent-filter> |
| 63 | </service> |
| 64 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 65 | <activity android:name="com.android.server.telecom.testapps.TestCallActivity" |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 66 | android:label="@string/testCallActivityLabel"> |
| 67 | <intent-filter> |
| 68 | <action android:name="android.intent.action.MAIN" /> |
| 69 | <category android:name="android.intent.category.DEFAULT" /> |
| 70 | <category android:name="android.intent.category.LAUNCHER" /> |
| 71 | </intent-filter> |
Yorke Lee | edaa77a | 2014-09-04 14:39:20 -0700 | [diff] [blame] | 72 | <intent-filter> |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 73 | <action android:name="android.telecom.testapps.ACTION_START_INCOMING_CALL" /> |
Yorke Lee | 9250e5f | 2014-10-01 13:39:09 -0700 | [diff] [blame] | 74 | <action android:name="android.telecom.testapps.ACTION_NEW_UNKNOWN_CALL" /> |
Yorke Lee | edaa77a | 2014-09-04 14:39:20 -0700 | [diff] [blame] | 75 | <category android:name="android.intent.category.DEFAULT" /> |
| 76 | <data android:scheme="tel" /> |
Yorke Lee | 32a4eb7 | 2014-11-06 16:32:17 -0800 | [diff] [blame] | 77 | <data android:scheme="sip" /> |
Yorke Lee | edaa77a | 2014-09-04 14:39:20 -0700 | [diff] [blame] | 78 | </intent-filter> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 79 | </activity> |
| 80 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 81 | <receiver android:name="com.android.server.telecom.testapps.CallNotificationReceiver" |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 82 | android:exported="false"> |
| 83 | <intent-filter> |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 84 | <action android:name="com.android.server.telecom.testapps.ACTION_CALL_SERVICE_EXIT" /> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 85 | </intent-filter> |
| 86 | </receiver> |
| 87 | |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 88 | <activity android:name="com.android.server.telecom.testapps.TestDialerActivity" |
Tyler Gunn | 61b9210 | 2014-08-19 07:42:20 -0700 | [diff] [blame] | 89 | android:label="@string/testDialerActivityLabel" |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 90 | android:process="com.android.server.telecom.testapps.TestInCallService"> |
Yorke Lee | 7c65acd | 2014-06-04 11:11:03 -0700 | [diff] [blame] | 91 | <intent-filter> |
| 92 | <action android:name="android.intent.action.DIAL" /> |
| 93 | <category android:name="android.intent.category.DEFAULT" /> |
| 94 | <category android:name="android.intent.category.BROWSABLE" /> |
| 95 | <data android:mimeType="vnd.android.cursor.item/phone" /> |
| 96 | <data android:mimeType="vnd.android.cursor.item/person" /> |
| 97 | </intent-filter> |
| 98 | <intent-filter> |
| 99 | <action android:name="android.intent.action.DIAL" /> |
| 100 | <category android:name="android.intent.category.DEFAULT" /> |
| 101 | <category android:name="android.intent.category.BROWSABLE" /> |
| 102 | <data android:scheme="voicemail" /> |
| 103 | </intent-filter> |
| 104 | <intent-filter> |
| 105 | <action android:name="android.intent.action.DIAL" /> |
| 106 | <category android:name="android.intent.category.DEFAULT" /> |
| 107 | </intent-filter> |
| 108 | <intent-filter> |
| 109 | <action android:name="android.intent.action.VIEW" /> |
| 110 | <action android:name="android.intent.action.DIAL" /> |
| 111 | <category android:name="android.intent.category.DEFAULT" /> |
| 112 | <category android:name="android.intent.category.BROWSABLE" /> |
| 113 | <data android:scheme="tel" /> |
| 114 | </intent-filter> |
| 115 | <intent-filter> |
| 116 | <action android:name="android.intent.action.MAIN" /> |
| 117 | <category android:name="android.intent.category.DEFAULT" /> |
| 118 | <category android:name="android.intent.category.LAUNCHER" /> |
| 119 | </intent-filter> |
| 120 | </activity> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 121 | </application> |
| 122 | |
| 123 | <!-- |
| 124 | The prefered way is to use 'runtest': |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 125 | runtest telecom-unit |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 126 | |
| 127 | runtest is a wrapper around 'adb shell'. The low level shell command is: |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 128 | adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 129 | |
| 130 | To run a single test case: |
Tyler Gunn | 7cc70b4 | 2014-09-12 22:17:27 -0700 | [diff] [blame] | 131 | adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner |
| 132 | -e com.android.server.telecom.tests.unit.FooUnitTest |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 133 | --> |
| 134 | <instrumentation android:name="android.test.InstrumentationTestRunner" |
Ihab Awad | b63b57e | 2015-03-22 22:12:28 -0700 | [diff] [blame^] | 135 | android:targetPackage="com.android.server.telecom.tests" |
| 136 | android:label="Telecomm application tests" |
Tyler Gunn | 8425357 | 2014-09-02 14:50:05 -0700 | [diff] [blame] | 137 | android:debuggable="true"/> |
Santos Cordon | 76faae5 | 2013-12-12 18:55:50 -0800 | [diff] [blame] | 138 | </manifest> |