blob: 0c632ec70523e3230ce086a937d579523f71bcf3 [file] [log] [blame]
Santos Cordon76faae52013-12-12 18:55:50 -08001<?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 Awadc17294c2014-08-04 19:23:37 -070018 coreApp="true"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070019 package="com.android.server.telecom.tests"
Tyler Gunn84253572014-09-02 14:50:05 -070020 android:debuggable="true">
Yorke Lee7c65acd2014-06-04 11:11:03 -070021
Ihab Awadb63b57e2015-03-22 22:12:28 -070022 <!-- 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 Gunnb1a95a72014-07-23 14:08:19 -070029
Tyler Gunn84253572014-09-02 14:50:05 -070030 <application android:label="@string/app_name"
31 android:debuggable="true">
Santos Cordon76faae52013-12-12 18:55:50 -080032 <uses-library android:name="android.test.runner" />
33
Tyler Gunn7cc70b42014-09-12 22:17:27 -070034 <!-- Miscellaneous telecom app-related test activities. -->
Santos Cordon76faae52013-12-12 18:55:50 -080035
Tyler Gunn7cc70b42014-09-12 22:17:27 -070036 <service android:name="com.android.server.telecom.testapps.TestConnectionService"
Tyler Gunncb59b672014-08-20 09:02:11 -070037 android:permission="android.permission.BIND_CONNECTION_SERVICE" >
Santos Cordonde14ddb2014-02-13 16:09:47 -080038 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070039 <action android:name="android.telecom.ConnectionService" />
Santos Cordonde14ddb2014-02-13 16:09:47 -080040 </intent-filter>
41 </service>
42
Evan Charlton6de14452014-09-23 09:25:39 -070043 <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 Gunn7cc70b42014-09-12 22:17:27 -070050 <service android:name="com.android.server.telecom.testapps.TestConnectionManager"
Tyler Gunncb59b672014-08-20 09:02:11 -070051 android:permission="android.permission.BIND_CONNECTION_SERVICE" >
Ihab Awadc17294c2014-08-04 19:23:37 -070052 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070053 <action android:name="android.telecom.ConnectionService" />
Ihab Awadc17294c2014-08-04 19:23:37 -070054 </intent-filter>
55 </service>
56
Tyler Gunn7cc70b42014-09-12 22:17:27 -070057 <service android:name="com.android.server.telecom.testapps.TestInCallServiceImpl"
58 android:process="com.android.server.telecom.testapps.TestInCallService"
Tyler Gunn61b92102014-08-19 07:42:20 -070059 android:permission="android.permission.BIND_INCALL_SERVICE" >
60 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070061 <action android:name="android.telecom.InCallService"/>
Tyler Gunn61b92102014-08-19 07:42:20 -070062 </intent-filter>
63 </service>
64
Tyler Gunn7cc70b42014-09-12 22:17:27 -070065 <activity android:name="com.android.server.telecom.testapps.TestCallActivity"
Santos Cordon76faae52013-12-12 18:55:50 -080066 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 Leeedaa77a2014-09-04 14:39:20 -070072 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070073 <action android:name="android.telecom.testapps.ACTION_START_INCOMING_CALL" />
Yorke Lee9250e5f2014-10-01 13:39:09 -070074 <action android:name="android.telecom.testapps.ACTION_NEW_UNKNOWN_CALL" />
Yorke Leeedaa77a2014-09-04 14:39:20 -070075 <category android:name="android.intent.category.DEFAULT" />
76 <data android:scheme="tel" />
Yorke Lee32a4eb72014-11-06 16:32:17 -080077 <data android:scheme="sip" />
Yorke Leeedaa77a2014-09-04 14:39:20 -070078 </intent-filter>
Santos Cordon76faae52013-12-12 18:55:50 -080079 </activity>
80
Tyler Gunn7cc70b42014-09-12 22:17:27 -070081 <receiver android:name="com.android.server.telecom.testapps.CallNotificationReceiver"
Santos Cordon76faae52013-12-12 18:55:50 -080082 android:exported="false">
83 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070084 <action android:name="com.android.server.telecom.testapps.ACTION_CALL_SERVICE_EXIT" />
Santos Cordon76faae52013-12-12 18:55:50 -080085 </intent-filter>
86 </receiver>
87
Tyler Gunn7cc70b42014-09-12 22:17:27 -070088 <activity android:name="com.android.server.telecom.testapps.TestDialerActivity"
Tyler Gunn61b92102014-08-19 07:42:20 -070089 android:label="@string/testDialerActivityLabel"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070090 android:process="com.android.server.telecom.testapps.TestInCallService">
Yorke Lee7c65acd2014-06-04 11:11:03 -070091 <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 Cordon76faae52013-12-12 18:55:50 -0800121 </application>
122
123 <!--
124 The prefered way is to use 'runtest':
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700125 runtest telecom-unit
Santos Cordon76faae52013-12-12 18:55:50 -0800126
127 runtest is a wrapper around 'adb shell'. The low level shell command is:
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700128 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
Santos Cordon76faae52013-12-12 18:55:50 -0800129
130 To run a single test case:
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700131 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
132 -e com.android.server.telecom.tests.unit.FooUnitTest
Santos Cordon76faae52013-12-12 18:55:50 -0800133 -->
134 <instrumentation android:name="android.test.InstrumentationTestRunner"
Ihab Awadb63b57e2015-03-22 22:12:28 -0700135 android:targetPackage="com.android.server.telecom.tests"
136 android:label="Telecomm application tests"
Tyler Gunn84253572014-09-02 14:50:05 -0700137 android:debuggable="true"/>
Santos Cordon76faae52013-12-12 18:55:50 -0800138</manifest>