Lines Matching defs:sync

56  * Action used to sync messages from smsmms db to local database
73 * Start a full sync (backed off a few seconds to avoid pulling sending/receiving messages).
91 * Start an incremental sync to pull messages since last sync (backed off a few seconds)..
93 public static void sync() {
103 sync(startTimestamp);
107 * Start an incremental sync when the application starts up (no back off as not yet
115 sync(startTimestamp);
118 private static void sync(final long startTimestamp) {
125 // Lower bound is end of previous sync
152 LogUtil.d(TAG, "SyncMessagesAction: Request to sync messages from "
170 + lowerBoundTimeMillis + " not in sync; promoting to full sync");
174 + lowerBoundTimeMillis + " not in sync; will do incremental sync");
179 + " are in sync");
184 // Check if sync allowed (can be too soon after last or one is already running)
210 // Cap sync size to GServices limits
276 * @return timestamp of the oldest message seen during the sync scan
351 * Perform local database updates and schedule follow on sync actions
361 // Check with the sync manager if any conflicting updates have been made to databases
368 LogUtil.w(TAG, "SyncMessagesAction: Ignoring orphan sync batch for messages from "
375 // Failed - update last sync times to throttle our failure rate
377 // Save sync completion time so next sync will start from here
379 // Remember last full sync so that don't start background full sync right away
384 LogUtil.w(TAG, "SyncMessagesAction: Redoing dirty sync batch of messages from "
429 // If we have never completed a sync before (fresh install) and there are
439 LogUtil.d(TAG, "SyncMessagesAction: More messages to sync; scheduling next "
440 + "sync batch now.");
443 // Include final millisecond of last sync in next sync
457 // Save sync completion time so next sync will start from here
460 // Remember last full sync so that don't start another full sync right away
466 // After any sync check if new messages have arrived
471 LogUtil.i(TAG, "SyncMessagesAction: Changed messages after sync; "
472 + "scheduling an incremental sync now.");
479 // After partial sync verify sync state
482 LogUtil.w(TAG, "SyncMessagesAction: Changed messages before sync batch; "
483 + "scheduling a full sync now.");
491 LogUtil.i(TAG, "SyncMessagesAction: All messages now in sync");
493 // All done, in sync
497 // Either sync should be complete or we should have a follow up request
509 * @return Target number of messages to sync for next batch
520 // Number of messages we can sync within the batch time limit using
521 // the average sync time calculated based on the stats we collected