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