blob: e987dee49ef5a04f652089312498f276459b1258 [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
Tyler Gunnb1a95a72014-07-23 14:08:19 -070022 <uses-permission android:name="android.permission.CAMERA" />
Tyler Gunn61b92102014-08-19 07:42:20 -070023 <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE" />
Santos Cordon6be5e8c2014-10-31 12:40:21 -070024 <uses-permission android:name="android.permission.REGISTER_CALL_PROVIDER" />
Santos Cordoneee6fa52014-11-06 15:53:26 -080025 <uses-permission android:name="android.permission.REGISTER_CONNECTION_MANAGER" />
Santos Cordon6be5e8c2014-10-31 12:40:21 -070026 <uses-permission android:name="android.permission.REGISTER_SIM_SUBSCRIPTION" />
Tyler Gunnb1a95a72014-07-23 14:08:19 -070027
Tyler Gunn84253572014-09-02 14:50:05 -070028 <application android:label="@string/app_name"
29 android:debuggable="true">
Santos Cordon76faae52013-12-12 18:55:50 -080030 <uses-library android:name="android.test.runner" />
31
Tyler Gunn7cc70b42014-09-12 22:17:27 -070032 <!-- Miscellaneous telecom app-related test activities. -->
Santos Cordon76faae52013-12-12 18:55:50 -080033
Tyler Gunn7cc70b42014-09-12 22:17:27 -070034 <service android:name="com.android.server.telecom.testapps.TestConnectionService"
Tyler Gunncb59b672014-08-20 09:02:11 -070035 android:permission="android.permission.BIND_CONNECTION_SERVICE" >
Santos Cordonde14ddb2014-02-13 16:09:47 -080036 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070037 <action android:name="android.telecom.ConnectionService" />
Santos Cordonde14ddb2014-02-13 16:09:47 -080038 </intent-filter>
39 </service>
40
Evan Charlton6de14452014-09-23 09:25:39 -070041 <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
Tyler Gunn7cc70b42014-09-12 22:17:27 -070048 <service android:name="com.android.server.telecom.testapps.TestConnectionManager"
Tyler Gunncb59b672014-08-20 09:02:11 -070049 android:permission="android.permission.BIND_CONNECTION_SERVICE" >
Ihab Awadc17294c2014-08-04 19:23:37 -070050 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070051 <action android:name="android.telecom.ConnectionService" />
Ihab Awadc17294c2014-08-04 19:23:37 -070052 </intent-filter>
53 </service>
54
Tyler Gunn7cc70b42014-09-12 22:17:27 -070055 <service android:name="com.android.server.telecom.testapps.TestInCallServiceImpl"
56 android:process="com.android.server.telecom.testapps.TestInCallService"
Tyler Gunn61b92102014-08-19 07:42:20 -070057 android:permission="android.permission.BIND_INCALL_SERVICE" >
58 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070059 <action android:name="android.telecom.InCallService"/>
Tyler Gunn61b92102014-08-19 07:42:20 -070060 </intent-filter>
61 </service>
62
Tyler Gunn7cc70b42014-09-12 22:17:27 -070063 <activity android:name="com.android.server.telecom.testapps.TestCallActivity"
Santos Cordon76faae52013-12-12 18:55:50 -080064 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>
Yorke Leeedaa77a2014-09-04 14:39:20 -070070 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070071 <action android:name="android.telecom.testapps.ACTION_START_INCOMING_CALL" />
Yorke Lee9250e5f2014-10-01 13:39:09 -070072 <action android:name="android.telecom.testapps.ACTION_NEW_UNKNOWN_CALL" />
Yorke Leeedaa77a2014-09-04 14:39:20 -070073 <category android:name="android.intent.category.DEFAULT" />
74 <data android:scheme="tel" />
Yorke Lee32a4eb72014-11-06 16:32:17 -080075 <data android:scheme="sip" />
Yorke Leeedaa77a2014-09-04 14:39:20 -070076 </intent-filter>
Santos Cordon76faae52013-12-12 18:55:50 -080077 </activity>
78
Tyler Gunn7cc70b42014-09-12 22:17:27 -070079 <receiver android:name="com.android.server.telecom.testapps.CallNotificationReceiver"
Santos Cordon76faae52013-12-12 18:55:50 -080080 android:exported="false">
81 <intent-filter>
Tyler Gunn7cc70b42014-09-12 22:17:27 -070082 <action android:name="com.android.server.telecom.testapps.ACTION_CALL_SERVICE_EXIT" />
Santos Cordon76faae52013-12-12 18:55:50 -080083 </intent-filter>
84 </receiver>
85
Tyler Gunn7cc70b42014-09-12 22:17:27 -070086 <activity android:name="com.android.server.telecom.testapps.TestDialerActivity"
Tyler Gunn61b92102014-08-19 07:42:20 -070087 android:label="@string/testDialerActivityLabel"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070088 android:process="com.android.server.telecom.testapps.TestInCallService">
Yorke Lee7c65acd2014-06-04 11:11:03 -070089 <intent-filter>
90 <action android:name="android.intent.action.DIAL" />
91 <category android:name="android.intent.category.DEFAULT" />
92 <category android:name="android.intent.category.BROWSABLE" />
93 <data android:mimeType="vnd.android.cursor.item/phone" />
94 <data android:mimeType="vnd.android.cursor.item/person" />
95 </intent-filter>
96 <intent-filter>
97 <action android:name="android.intent.action.DIAL" />
98 <category android:name="android.intent.category.DEFAULT" />
99 <category android:name="android.intent.category.BROWSABLE" />
100 <data android:scheme="voicemail" />
101 </intent-filter>
102 <intent-filter>
103 <action android:name="android.intent.action.DIAL" />
104 <category android:name="android.intent.category.DEFAULT" />
105 </intent-filter>
106 <intent-filter>
107 <action android:name="android.intent.action.VIEW" />
108 <action android:name="android.intent.action.DIAL" />
109 <category android:name="android.intent.category.DEFAULT" />
110 <category android:name="android.intent.category.BROWSABLE" />
111 <data android:scheme="tel" />
112 </intent-filter>
113 <intent-filter>
114 <action android:name="android.intent.action.MAIN" />
115 <category android:name="android.intent.category.DEFAULT" />
116 <category android:name="android.intent.category.LAUNCHER" />
117 </intent-filter>
118 </activity>
Santos Cordon76faae52013-12-12 18:55:50 -0800119 </application>
120
121 <!--
122 The prefered way is to use 'runtest':
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700123 runtest telecom-unit
Santos Cordon76faae52013-12-12 18:55:50 -0800124
125 runtest is a wrapper around 'adb shell'. The low level shell command is:
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700126 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
Santos Cordon76faae52013-12-12 18:55:50 -0800127
128 To run a single test case:
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700129 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
130 -e com.android.server.telecom.tests.unit.FooUnitTest
Santos Cordon76faae52013-12-12 18:55:50 -0800131 -->
132 <instrumentation android:name="android.test.InstrumentationTestRunner"
Tyler Gunn7cc70b42014-09-12 22:17:27 -0700133 android:targetPackage="com.android.server.telecom"
Tyler Gunn84253572014-09-02 14:50:05 -0700134 android:label="Telecomm application tests."
135 android:debuggable="true"/>
Santos Cordon76faae52013-12-12 18:55:50 -0800136</manifest>