summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/SyncManager.java
Commit message (Collapse)AuthorAgeFilesLines
* - fix the AccountManager documentation. http://b/2401790Fred Quintana2010-02-181-0/+13
| | | | | | | | | | - only pass the authtoken through from the authenticator to the client for getAuthToken() and strip it out from the other calls, like addAccount(). http://b/2332762 - beef up the documentation to indicate what calls are allowed to be made from the main thread and which are not allowed. http://b/2384961 - wait a bit before retrying syncs that failed because one was already in progress. http://b/2414235
* remove check for obsolete property ro.config.syncFred Quintana2010-02-171-27/+1
|
* fix an NPE in SyncManager's dump where it can get a null AuthorityInfo; ↵Fred Quintana2010-02-101-1/+1
| | | | instead create one if one doesn't exist yet
* - change the SyncManager to retry MANUAL syncs that encounter a soft errorFred Quintana2010-02-081-47/+37
| | | | | | | | | | | | | | | | | | | | - 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
* add sync pollingFred Quintana2010-02-051-253/+200
| | | | | | | | | - 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
* am 6f3e1e27: am 9a400fa4: Merge "initialize sync adapters that get installed ↵Fred Quintana2010-01-271-0/+9
|\ | | | | | | | | | | | | | | | | while the system is running bug http://b/issue?id=2360782" into eclair Merge commit '6f3e1e27a697d3e64bf73792c1007135319ff0d5' * commit '6f3e1e27a697d3e64bf73792c1007135319ff0d5': initialize sync adapters that get installed while the system is running
| * initialize sync adapters that get installed while the system is runningFred Quintana2010-01-211-0/+9
| | | | | | | | bug http://b/issue?id=2360782
* | enhance the sync manager backoff logic and add support for retry-afterFred Quintana2010-01-251-482/+135
| | | | | | | | | | | | | | moved SyncQueue and SyncOperation into their own top-level classes to ease maintainability and testing6 removed some dead code
* | change remaining frameworks/base Gservices to Secure settingsDoug Zongker2010-01-071-2/+2
| | | | | | | | Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
* | Add bindService API to not bring ot foreground.Dianne Hackborn2009-12-081-2/+3
| | | | | | | | | | | | | | | | | | | | Add a new flag for bindService that tells the system to not bring the target service's process in to the foreground scheduling class. This is used by the sync system to not cause the current sync adapter to come to the foreground as it is running. Also some small improvements to the debug output of the process list of oom adj and scheduling info.
* | am 0ce8431c: Merge change Iaa7edda4 into eclairFred Quintana2009-12-031-2/+6
|\ \ | |/ | | | | | | | | | | Merge commit '0ce8431c15078e095a22a123dbabcd91049a9652' into eclair-mr2 * commit '0ce8431c15078e095a22a123dbabcd91049a9652': don't reschedule syncs that failed with a tooManyRetries error
| * don't reschedule syncs that failed with a tooManyRetries errorFred Quintana2009-12-031-2/+6
| |
* | am 5e5eb393: Merge change Id572ffc7 into eclairFred Quintana2009-10-291-5/+6
|\ \ | |/ | | | | | | | | | | Merge commit '5e5eb393729630800079206498f283de8f02f3a7' into eclair-mr2 * commit '5e5eb393729630800079206498f283de8f02f3a7': don't throw an exception when we can't find a pending sync operation in the database
| * don't throw an exception when we can't find a pending sync operation in the ↵Fred Quintana2009-10-281-5/+6
| | | | | | | | database
* | add an IPC for sync initializationFred Quintana2009-10-141-20/+58
|/
* fix sync exponential backoff for expedited syncsFred Quintana2009-10-091-1/+1
|
* account manager api review changesFred Quintana2009-10-051-2/+2
|
* - make SyncManager get the accounts list during the constructor,Fred Quintana2009-09-301-17/+39
| | | | | | | | which will allow syncs to be scheduled during bootup. The providers need this so that they can potentially schedule syncs while they are starting up. - make the SyncManager message handler wait until boot has completed to start dispatching messages
* Pass provider authority to SyncActivityTooManyDeletesTadashi G. Takaoka2009-09-251-0/+1
| | | | Internal Bug: 2138733
* make the SyncManager listen for backgroun data setting changes and do a sync ↵Fred Quintana2009-09-231-1/+13
| | | | when the setting is enabled
* fix the logic for starting a sync after the accounts changedFred Quintana2009-09-221-1/+1
|
* log hash of account name in sync event logDoug Zongker2009-09-201-15/+17
| | | | | Add an account field to the sync event, which is the java hash of the account name. (A hash is used for privacy reasons.)
* Fix for #2092883: Allow manual sync even when background data is disabledJim Miller2009-09-151-8/+4
|
* add system properties for experimenting with sync timeouts.Debajit Ghosh2009-09-141-2/+26
|
* Add better service reporting.Dianne Hackborn2009-09-031-0/+4
| | | | | | This will be used elsewhere. Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
* Fiddle system boot ordering.Dianne Hackborn2009-09-021-0/+1
| | | | | | | | | | This makes the system a little more careful to not start third party code until it is ready to. Also fix a little bug in SyncManager that would cause it to crash during boot if sync was in a failure state. Change-Id: Ib2d287d8441d155d393fe740a5f98690895fd358
* suppress syncs until boot is completeFred Quintana2009-09-021-0/+10
|
* - don't schedule syncs that we will never dispatchFred Quintana2009-08-311-5/+41
| | | | - expedite the INITIALIZATION sync
* Revert "- don't schedule syncs that we will never dispatch"Fred Quintana2009-08-311-29/+5
| | | | This reverts commit fae7ff106b3ed791e324ddcec17226c3fe1cd809.
* - don't schedule syncs that we will never dispatchFred Quintana2009-08-271-5/+29
| | | | - expedite the INITIALIZATION sync
* clean up the too many deletes dialogFred Quintana2009-08-251-3/+11
|
* add a supportsUploading flag in the SyncAdapter description and honor it in ↵Fred Quintana2009-08-201-10/+17
| | | | the SyncManager
* make syncadapter set whether the account is syncableFred Quintana2009-08-181-17/+46
|
* - add a "isSyncable" flag to a given account/authority pair thatFred Quintana2009-08-171-8/+9
| | | | | indicates whether or not syncs should be attempted for it. - add public methods to get and set this parameter
* do not merge: cherrypicked 3710f390968e683a0ad3adf0b517dfcade3564ce from ↵Fred Quintana2009-08-151-8/+8
| | | | master branch
* Make sync not start until setup wizard is done.Joe Onorato2009-07-151-1/+1
|
* - clean up the sync settings names to:Fred Quintana2009-06-231-88/+91
| | | | | | | | | | | | | (get|set)SyncAutomatically (get|set)MasterSyncAutomatically - change SYNC_EXTRAS_FORCE to SYNC_EXTRAS_MANUAL to mace clear that this overrides the .*SyncAutomatically settings - make ContentResolver methods that call the sync controls methods in IContentService so that SDK users can use them - rename startSync to requestSync to reinforce the fact that a sync is not immediately or always started when this method is called - add an Account parameter to all the sync settings and control methods - change the sync control methods to take a String authority rather than a Uri uri
* beef up the syncadapter APIFred Quintana2009-06-161-11/+4
|
* add icon and label to the authenticator descriptionFred Quintana2009-06-151-1/+1
|
* merge 55280a9The Android Open Source Project2009-05-081-0/+12
|\ | | | | | | Merge commit '55280a9'
| * Improve shutdown process to send broadcast for applications.Dianne Hackborn2009-05-081-0/+12
| | | | | | | | | | | | | | | | | | | | This introduces a new class in the base platform for performing a clean shutdown (which was copied from the classes in the policies). It includes new features to send a shutdown broadcast for applications to do cleanup, and ot have the activity manager pause the current activity before proceeding with the shutdown. These facilities are also use to write at the most recent stat files for sync, battery and user activity.
* | merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581Dianne Hackborn2009-05-061-341/+322
|\ \ | |/
| * Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-343/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
* | decouple SyncAdapter from ContentProviderFred Quintana2009-04-301-100/+176
| |
* | change the sync framework and users to understand AccountFred Quintana2009-04-231-66/+65
| |
* | Automated import from //branches/master/...@142414,142414Fred Quintana2009-03-241-36/+48
|/
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+2175
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-2175/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-19/+23
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-3/+4
|