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.contacts.tests">
     19 
     20     <uses-permission android:name="android.permission.READ_CONTACTS" />
     21     <uses-permission android:name="android.permission.WRITE_CONTACTS" />
     22     <uses-permission android:name="android.permission.READ_CALL_LOG" />
     23     <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
     24     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     25 
     26     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
     27     <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
     28     <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
     29     <uses-permission android:name="android.permission.READ_SYNC_STATS" />
     30     <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
     31     <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
     32 
     33     <uses-permission android:name="android.permission.READ_PROFILE" />
     34     <uses-permission android:name="android.permission.READ_SOCIAL_STREAM" />
     35 
     36     <application>
     37         <uses-library android:name="android.test.runner" />
     38         <meta-data android:name="com.android.contacts.iconset" android:resource="@xml/iconset" />
     39 
     40         <activity android:name=".allintents.AllIntentsActivity"
     41             android:label="@string/contactsIntents"
     42             >
     43             <intent-filter>
     44                 <action android:name="android.intent.action.MAIN" />
     45                 <category android:name="android.intent.category.DEFAULT" />
     46                 <category android:name="android.intent.category.LAUNCHER" />
     47             </intent-filter>
     48         </activity>
     49 
     50         <activity android:name=".allintents.ResultActivity"
     51             android:label="@string/result"
     52             >
     53             <intent-filter>
     54                 <action android:name="android.intent.action.MAIN" />
     55                 <category android:name="android.intent.category.DEFAULT" />
     56             </intent-filter>
     57         </activity>
     58 
     59         <activity android:name=".widget.PinnedHeaderUseCaseActivity"
     60             android:label="@string/pinnedHeaderList"
     61             >
     62             <intent-filter>
     63                 <action android:name="android.intent.action.MAIN" />
     64                 <category android:name="android.intent.category.DEFAULT" />
     65                 <category android:name="android.intent.category.LAUNCHER" />
     66             </intent-filter>
     67         </activity>
     68 
     69         <activity android:name=".quickcontact.QuickContactTestsActivity"
     70             android:label="@string/quickContactTests"
     71             >
     72             <intent-filter>
     73                 <action android:name="android.intent.action.MAIN" />
     74                 <category android:name="android.intent.category.DEFAULT" />
     75                 <category android:name="android.intent.category.LAUNCHER" />
     76             </intent-filter>
     77         </activity>
     78 
     79         <activity android:name=".calllog.FillCallLogTestActivity"
     80             android:label="@string/fillCallLogTest"
     81             >
     82             <intent-filter>
     83                 <action android:name="android.intent.action.MAIN" />
     84                 <category android:name="android.intent.category.DEFAULT" />
     85                 <category android:name="android.intent.category.LAUNCHER" />
     86             </intent-filter>
     87         </activity>
     88 
     89         <activity android:name=".streamitems.StreamItemPopulatorActivity"
     90             android:label="@string/streamItemPopulator"
     91             >
     92             <intent-filter>
     93                 <action android:name="android.intent.action.MAIN" />
     94                 <category android:name="android.intent.category.DEFAULT" />
     95                 <category android:name="android.intent.category.LAUNCHER" />
     96             </intent-filter>
     97         </activity>
     98 
     99         <!--
    100           Test authenticators/sync adapters.
    101 
    102           The idea is to have multiple account types with various edit schemas.  We use subclasses
    103           so we could easily add multiple pairs of authenticators and sync adapters.
    104           Unfortunately there's an issue with the contacts app which prevents a single apk from
    105           having multiple contacts.xml files, so for now we only declare one account type here.
    106         -->
    107         <service android:name=".testauth.TestAuthenticationService$Basic" android:exported="true">
    108             <intent-filter>
    109                 <action android:name="android.accounts.AccountAuthenticator" />
    110             </intent-filter>
    111             <meta-data
    112                 android:name="android.accounts.AccountAuthenticator"
    113                 android:resource="@xml/test_basic_authenticator" />
    114         </service>
    115 
    116         <service android:name=".testauth.TestSyncService$Basic" android:exported="true">
    117             <intent-filter>
    118                 <action android:name="android.content.SyncAdapter" />
    119             </intent-filter>
    120             <meta-data
    121                 android:name="android.content.SyncAdapter"
    122                 android:resource="@xml/test_basic_syncadapter" />
    123             <meta-data
    124                 android:name="android.provider.CONTACTS_STRUCTURE"
    125                 android:resource="@xml/test_basic_contacts" />
    126         </service>
    127 
    128         <service android:name=".QueryService" />
    129         <service android:name=".PhoneNumberTestService" />
    130     </application>
    131 
    132     <instrumentation android:name="android.test.InstrumentationTestRunner"
    133         android:targetPackage="com.android.contacts"
    134         android:label="Contacts app tests">
    135     </instrumentation>
    136 
    137     <instrumentation android:name="com.android.contacts.ContactsLaunchPerformance"
    138         android:targetPackage="com.android.contacts"
    139         android:label="Contacts launch performance">
    140     </instrumentation>
    141 
    142     <instrumentation android:name="com.android.contacts.DialerLaunchPerformance"
    143         android:targetPackage="com.android.contacts"
    144         android:label="Dialer launch performance">
    145     </instrumentation>
    146 
    147 </manifest>
    148