Home | History | Annotate | Download | only in tests
      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     <uses-permission android:name="android.permission.CAMERA" />
     23     <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE" />
     24     <uses-permission android:name="android.permission.REGISTER_CALL_PROVIDER" />
     25     <uses-permission android:name="android.permission.REGISTER_CONNECTION_MANAGER" />
     26     <uses-permission android:name="android.permission.REGISTER_SIM_SUBSCRIPTION" />
     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                 <data android:scheme="sip" />
     76             </intent-filter>
     77         </activity>
     78 
     79         <receiver android:name="com.android.server.telecom.testapps.CallNotificationReceiver"
     80                 android:exported="false">
     81             <intent-filter>
     82                 <action android:name="com.android.server.telecom.testapps.ACTION_CALL_SERVICE_EXIT" />
     83             </intent-filter>
     84         </receiver>
     85 
     86         <activity android:name="com.android.server.telecom.testapps.TestDialerActivity"
     87                 android:label="@string/testDialerActivityLabel"
     88                 android:process="com.android.server.telecom.testapps.TestInCallService">
     89             <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>
    119     </application>
    120 
    121     <!--
    122         The prefered way is to use 'runtest':
    123            runtest telecom-unit
    124 
    125         runtest is a wrapper around 'adb shell'. The low level shell command is:
    126         adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
    127 
    128         To run a single test case:
    129         adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
    130                                 -e com.android.server.telecom.tests.unit.FooUnitTest
    131     -->
    132     <instrumentation android:name="android.test.InstrumentationTestRunner"
    133             android:targetPackage="com.android.server.telecom"
    134             android:label="Telecomm application tests."
    135             android:debuggable="true"/>
    136 </manifest>
    137