Fix the ContactsTest account type and sync adapter (1/2)
* Add TestSyncService$Basic to the AndroidManifest and give
it the fallback account type unit test contacts.xml.
* Remove "common" from the testauth package name
* Change the test accountType to end with testauth.basic
instead of authtest.basic since it's testauth
everywhere else.
* UI changes
- Give the test account type the same name as the app
- Remove the ic_contact_picture test account type icon
since it just looks like a black square and we can
just use the default (after we add a guard against
null icons in the DrawerActivity)
Test: manually add a user of the test account type and
toggle sync, then add a contact of the test account
type in the app.
Bug: 30759296
Bug: 31549157
Change-Id: I363fff8dfbce3d2d1b888e23abe6e20a40da2d1c
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index 65c04bc..87f9a8a 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -69,6 +69,17 @@
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/test_basic_authenticator" />
</service>
+ <service android:name=".testauth.TestSyncService$Basic" android:exported="true" >
+ <intent-filter>
+ <action android:name="android.content.SyncAdapter"/>
+ </intent-filter>
+ <meta-data
+ android:name="android.content.SyncAdapter"
+ android:resource="@xml/test_basic_syncadapter" />
+ <meta-data
+ android:name="android.provider.CONTACTS_STRUCTURE"
+ android:resource="@xml/contacts_fallback" />
+ </service>
<service android:name=".QueryService" />
<service android:name=".PhoneNumberTestService" />