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-sdk android:minSdkVersion="21" android:targetSdkVersion="25" /> 21 22 <uses-permission android:name="android.permission.READ_CONTACTS" /> 23 <uses-permission android:name="android.permission.WRITE_CONTACTS" /> 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 android:icon="@mipmap/ic_contacts_launcher" 38 android:label="@string/applicationLabel"> 39 40 <uses-library android:name="android.test.runner" /> 41 <meta-data android:name="com.android.contacts.iconset" android:resource="@xml/iconset" /> 42 43 <activity android:name=".allintents.AllIntentsActivity"> 44 <intent-filter> 45 <action android:name="android.intent.action.MAIN" /> 46 <category android:name="android.intent.category.DEFAULT" /> 47 <category android:name="android.intent.category.LAUNCHER" /> 48 </intent-filter> 49 </activity> 50 51 <activity android:name=".allintents.ResultActivity"> 52 <intent-filter> 53 <action android:name="android.intent.action.VIEW" /> 54 <category android:name="android.intent.category.DEFAULT" /> 55 <data android:mimeType="vnd.android.cursor.item/vnd.contactstest.profile" /> 56 </intent-filter> 57 </activity> 58 59 <activity android:name=".quickcontact.QuickContactTestsActivity"/> 60 61 <!-- 62 Test authenticators/sync adapters. 63 64 The idea is to have multiple account types with various edit schemas. We use subclasses 65 so we could easily add multiple pairs of authenticators and sync adapters. 66 Unfortunately there's an issue with the contacts app which prevents a single apk from 67 having multiple contacts.xml files, so for now we only declare one account type here. 68 --> 69 <service android:name=".testauth.TestAuthenticationService$Basic" android:exported="true"> 70 <intent-filter> 71 <action android:name="android.accounts.AccountAuthenticator" /> 72 </intent-filter> 73 <meta-data 74 android:name="android.accounts.AccountAuthenticator" 75 android:resource="@xml/test_basic_authenticator" /> 76 </service> 77 <service android:name=".testauth.TestSyncService$Basic" android:exported="true" > 78 <intent-filter> 79 <action android:name="android.content.SyncAdapter"/> 80 </intent-filter> 81 <meta-data 82 android:name="android.content.SyncAdapter" 83 android:resource="@xml/test_basic_syncadapter" /> 84 <meta-data 85 android:name="android.provider.CONTACTS_STRUCTURE" 86 android:resource="@xml/contacts_contactsdatakind" /> 87 </service> 88 89 <service android:name=".QueryService" /> 90 <service android:name=".PhoneNumberTestService" /> 91 </application> 92 93 <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner" 94 android:targetPackage="com.android.contacts" 95 android:label="Contacts app tests"> 96 </instrumentation> 97 98 <instrumentation android:name="com.android.contacts.ContactsLaunchPerformance" 99 android:targetPackage="com.android.contacts" 100 android:label="Contacts launch performance"> 101 </instrumentation> 102 103 <instrumentation 104 android:name="com.android.contacts.RunMethodInstrumentation" 105 android:targetPackage="com.android.contacts" 106 android:label="Run Contacts Method"> 107 </instrumentation> 108 109</manifest> 110