Home | History | Annotate | Download | only in tests
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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     package="com.android.phone.tests">
     19 
     20     <uses-permission android:name="android.permission.CALL_PHONE" />
     21     <uses-permission android:name="android.permission.PERFORM_CDMA_PROVISIONING" />
     22     <uses-permission android:name="android.permission.PERFORM_SIM_ACTIVATION" />
     23 
     24     <application android:label="@string/app_name">
     25         <uses-library android:name="android.test.runner" />
     26 
     27         <!-- Miscellaneous phone app-related test activities -->
     28 
     29         <!-- Test activity that mimics the behavior of 3rd party apps
     30              firing off CALL and DIAL intents. -->
     31         <!-- To run:
     32                 adb shell am start -n com.android.phone.tests/.CallDialTest
     33         -->
     34         <activity android:name="CallDialTest"
     35                   android:label="@string/callDialTestLabel">
     36             <intent-filter>
     37                 <action android:name="android.intent.action.MAIN" />
     38                 <category android:name="android.intent.category.DEFAULT" />
     39             </intent-filter>
     40         </activity>
     41 
     42         <!-- Test activity mimicking the PERFORM_CDMA_PROVISIONING behavior of
     43              SetupWizard, useful for testing "non-interactive" OTASP. -->
     44         <activity android:name="OtaspTestActivity"
     45                   android:label="OtaspTest">
     46             <intent-filter>
     47                 <action android:name="android.intent.action.MAIN" />
     48                 <category android:name="android.intent.category.DEFAULT" />
     49             </intent-filter>
     50         </activity>
     51 
     52         <service android:name="SendInstantTextTestService"
     53                  android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE" >
     54             <intent-filter>
     55                 <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
     56                 <data android:scheme="sms" />
     57                 <data android:scheme="smsto" />
     58             </intent-filter>
     59         </service>
     60 
     61         <receiver android:name="com.android.services.telephony.activation.ResponseReceiver" />
     62     </application>
     63 
     64     <!--
     65         The prefered way is to use 'runtest':
     66            runtest phone-unit
     67 
     68          runtest is a wrapper around 'adb shell'. The low level shell command is:
     69            adb shell am instrument -w com.android.phone.tests/android.test.InstrumentationTestRunner
     70 
     71          To run a single test case:
     72            adb shell am instrument -w com.android.phone.tests/android.test.InstrumentationTestRunner
     73                                    -e com.android.phone.unit.FooUnitTest
     74     -->
     75     <instrumentation android:name="android.test.InstrumentationTestRunner"
     76         android:targetPackage="com.android.phone"
     77         android:label="Phone application tests." />
     78 </manifest>
     79