OSDN Git Service

add sync polling
authorFred Quintana <fredq@google.com>
Wed, 27 Jan 2010 20:17:49 +0000 (12:17 -0800)
committerFred Quintana <fredq@google.com>
Fri, 5 Feb 2010 23:16:20 +0000 (15:16 -0800)
commitc5d1c6db61f208b206b260f897bb5bbc64be4d97
tree91a5ffe88326b446f57b7249ddf1406b8654d2f6
parent0a45a09814dea0398647f26497ecff54a77c5f8c
add sync polling

- added the ability to specify that a sync (of account/authority/extras)
  should occur at a given frequency
- the existing daily poll code was replaced with seeding each
  account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
  periodic syncs and when they will next run
14 files changed:
Android.mk
api/current.xml
core/java/android/accounts/AccountManager.java
core/java/android/content/ContentResolver.java
core/java/android/content/ContentService.java
core/java/android/content/IContentService.aidl
core/java/android/content/PeriodicSync.aidl [new file with mode: 0644]
core/java/android/content/PeriodicSync.java [new file with mode: 0644]
core/java/android/content/SyncManager.java
core/java/android/content/SyncQueue.java
core/java/android/content/SyncStatusInfo.java
core/java/android/content/SyncStorageEngine.java
core/tests/coretests/src/android/content/SyncStorageEngineTest.java
tests/CoreTests/android/content/SyncQueueTest.java