Add AbstractThreadedSyncAdapter#onUnsyncableAccount API
This allows for an SyncAdapter to defer all onPerformSync calls (and the admission check for those) until the adapter is ready to accept those calls. Test: atest android.content.cts.AccountAccessSameCertTest atest android.content.cts.ContentResolverSyncTestCase atest android.content.cts.DeferSyncTest atest com.android.cts.content.CtsSyncAccountAccessOtherCertTestCases Set up a user and work account and waited until their gmail synced. Bug: 72459220 Change-Id: I8f9ab735d64189578ccdd1c3e1d7b7c5383b8ee9
Showing
- Android.bp 1 addition, 0 deletionsAndroid.bp
- api/current.txt 1 addition, 0 deletionsapi/current.txt
- core/java/android/content/AbstractThreadedSyncAdapter.java 27 additions, 0 deletionscore/java/android/content/AbstractThreadedSyncAdapter.java
- core/java/android/content/ISyncAdapter.aidl 9 additions, 0 deletionscore/java/android/content/ISyncAdapter.aidl
- core/java/android/content/ISyncAdapterUnsyncableAccountCallback.aidl 30 additions, 0 deletions...ndroid/content/ISyncAdapterUnsyncableAccountCallback.aidl
- services/core/java/com/android/server/content/SyncManager.java 154 additions, 40 deletions...ces/core/java/com/android/server/content/SyncManager.java
Please register or sign in to comment