diff options
author | Fred Quintana <fredq@google.com> | 2010-02-05 15:28:12 -0800 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2010-02-08 16:54:43 -0800 |
commit | 53bd2522ca7767f46646606123b6e2689b811850 (patch) | |
tree | 40a43c4d19ee0c6af8443878e3e889307f33652a /test-runner | |
parent | 9be54d400d68c735013bc8069fbcb66c3f98c3ee (diff) | |
download | frameworks_base-53bd2522ca7767f46646606123b6e2689b811850.zip frameworks_base-53bd2522ca7767f46646606123b6e2689b811850.tar.gz frameworks_base-53bd2522ca7767f46646606123b6e2689b811850.tar.bz2 |
- change the SyncManager to retry MANUAL syncs that encounter a soft error
- make the sync dump handle the case where there are no accounts
- fix a bug that caused the SyncManager to burn up CPU in the system process
The following was implemented:
scheduler offers:
- settings to disable sync
- retries of certain errors
- backoffs
want a way to control these when scheduling a sync
- "ignore_settings"
- "ignore initial backoff"
- "manual" : ignore settings, ignore initial backoff
- "do not retry"
- need to change the default behavior of not retrying manual syncs to retry regardless
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/SyncBaseInstrumentation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/android/test/SyncBaseInstrumentation.java b/test-runner/android/test/SyncBaseInstrumentation.java index e8d72d9..7d418f0 100644 --- a/test-runner/android/test/SyncBaseInstrumentation.java +++ b/test-runner/android/test/SyncBaseInstrumentation.java @@ -46,7 +46,7 @@ public class SyncBaseInstrumentation extends InstrumentationTestCase { */ protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { Bundle extras = new Bundle(); - extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); + extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true); Account account = new Account(accountName, "com.google"); ContentResolver.requestSync(account, authority, extras); |