Lines Matching defs:sync

69  * Singleton that tracks the sync data and overall sync
86 /** Default time for a periodic sync. */
92 /** Lower bound on sync time from which we assign a default flex time. */
98 /** Enum value for a sync start event. */
101 /** Enum value for a sync stop event. */
105 /** String names for the sync event types. */
108 /** Enum value for a server-initiated sync. */
111 /** Enum value for a local-initiated sync. */
113 /** Enum value for a poll-based sync (e.g., upon connection to network) */
116 /** Enum value for a user-initiated sync. */
119 /** Enum value for a periodic sync. */
122 /** Enum value for a sync started for a service. */
128 /** String names for the sync source types. */
193 * Considered equal if they target the same sync adapter (A
223 /** Bare bones representation of a sync target. */
253 * An Endpoint for a sync matches if it targets the same sync adapter for the same user.
306 /** Time at which this sync will run, taking into account backoff. */
330 for (PeriodicSync sync : toCopy.periodicSyncs) {
332 periodicSyncs.add(new PeriodicSync(sync));
354 // Old version is one sync a day. Empty bundle gets replaced by any addPeriodicSync()
402 /** Called when a sync is needed on an account(s) due to some change in state. */
454 * This file contains the current sync status. We would like to retain
461 * This file contains sync statistics. This is purely debugging information
467 * This file contains the pending sync operations. It is a binary file,
491 File syncDir = new File(systemDir, "sync");
569 * @param syncTimeSeconds requested sync time from now.
570 * @return amount of seconds before syncTimeSeconds that the sync can occur.
577 // Small enough sync request time that we don't add flex time - developer probably
584 // Large enough sync request time that we cap the flex time.
647 boolean sync) {
650 + ", user " + userId + " -> " + sync);
658 if (authority.enabled == sync) {
660 Log.d(TAG, "setSyncAutomatically: already set to " + sync + ", doing nothing");
664 authority.enabled = sync;
668 if (sync) {
724 * An enabled sync service and a syncable provider's adapter both get resolved to the same
779 // Do more work for a provider sync if the provided info has specified all
840 // Clear backoff for all sync adapters.
859 // Clear backoff for all sync services.
930 // add this periodic sync if an equivalent periodic doesn't already exist.
952 // A new periodic sync is initialised as already having been run.
987 Log.e(TAG, "Tried removing sync status on remove periodic sync but"
1054 * Returns true if there is currently a sync operation being actively processed for the given
1223 * Called when a sync is starting. Supply a valid ActiveSyncContext with information
1224 * about the sync.
1252 * Called to indicate that a previously active sync is no longer active.
1275 * Note that sync has started for the given operation.
1419 * items are the real, live active sync objects, so be careful what you do
1436 for (SyncInfo sync : syncs) {
1437 syncsCopy.add(new SyncInfo(sync));
1453 * Return an array of the current sync status for all authorities. Note
1469 * Return a copy of the specified target with the corresponding sync status
1481 * Return a copy of all authorities with their corresponding sync status
1542 * Return an array of the current sync status for all authorities. Note
1643 * @return the authority that corresponds to the provided sync target, creating it if none
1731 * Updates (in a synchronized way) the periodic sync time of the specified
1732 * target id and target periodic sync
1749 Log.w(TAG, "Ignoring setPeriodicSyncTime request for a sync that does not exist. " +
1905 * @param syncDir directory where the sync files are located.
2042 // want the default, which is a daily periodic sync.
2044 // the periodic sync descriptions that are read from the configuration file.
2068 * Parse a periodic sync from accounts.xml. Sets the bundle to be empty.
2079 Log.e(TAG, "error parsing the period of a periodic sync", e);
2082 Log.e(TAG, "the period of a periodic sync is null", e);
2089 Log.e(TAG, "Error formatting value parsed for periodic sync flex: " + flexValue
2094 Log.d(TAG, "No flex time specified for this sync, using a default. period: "
2224 * Load sync engine state from the old syncmanager database, and then
2226 * sync, or history.
2247 Log.v(TAG_FILE, "Reading legacy sync accounts db");
2359 * Read all sync status back in to the initial engine state.
2393 * Write all sync status to the sync status file.
2693 Log.d(TAG, "Unknown target, skipping sync request.");
2723 * Read all sync statistics back in to the initial engine state.
2761 * Write all sync statistics to the sync status file.