Searched refs:syncInterval (Results 1 – 4 of 4) sorted by relevance
257 int syncInterval; in getSyncInterval() local259 syncInterval = mAccount.mSyncInterval; in getSyncInterval()263 syncInterval = Mailbox.CHECK_INTERVAL_NEVER; in getSyncInterval()265 syncInterval = mMailbox.mSyncInterval; in getSyncInterval()269 if (syncInterval == Mailbox.CHECK_INTERVAL_PING || in getSyncInterval()270 syncInterval == Mailbox.CHECK_INTERVAL_PUSH_HOLD) { in getSyncInterval()271 syncInterval = Mailbox.CHECK_INTERVAL_PUSH; in getSyncInterval()273 return syncInterval; in getSyncInterval()312 final int syncInterval = Integer.valueOf(mSyncIntervalPref.getValue()); in updateObjects() local315 Log.i(Logging.LOG_TAG, "Updating object: " + syncInterval + "," + syncLookback); in updateObjects()[all …]
335 if (report.syncInterval <= 0) { // no timed checks - skip in reschedule()443 int syncInterval; field in MailService.AccountSyncReport451 if (syncInterval > 0 && prevSyncTime != 0) { in setNextSyncTime()452 nextSyncTime = prevSyncTime + (syncInterval * 1000 * 60); in setNextSyncTime()527 int syncInterval = account.mSyncInterval; in setupSyncReportsLocked() local531 syncInterval = Account.CHECK_INTERVAL_NEVER; in setupSyncReportsLocked()532 } else if (oneMinuteRefresh && syncInterval >= 0) { in setupSyncReportsLocked()533 syncInterval = 1; in setupSyncReportsLocked()538 report.nextSyncTime = (syncInterval > 0) ? 0 : -1; // 0 == ASAP -1 == no sync in setupSyncReportsLocked()540 report.syncInterval = syncInterval; in setupSyncReportsLocked()
269 assertEquals(Account.CHECK_INTERVAL_NEVER, syncReport.syncInterval); in testSetupSyncReportsLocked()272 assertEquals(60, syncReport.syncInterval); in testSetupSyncReportsLocked()275 assertEquals(90, syncReport.syncInterval); in testSetupSyncReportsLocked()285 assertEquals(Account.CHECK_INTERVAL_NEVER, syncReport.syncInterval); in testSetupSyncReportsLocked()
2319 long syncInterval = c.getInt(Mailbox.CONTENT_SYNC_INTERVAL_COLUMN); in checkMailboxes() local2320 if (syncInterval == Mailbox.CHECK_INTERVAL_PUSH) { in checkMailboxes()2328 } else if (syncInterval > 0 && syncInterval <= ONE_DAY_MINUTES) { in checkMailboxes()2331 long toNextSync = syncInterval*MINUTES - sinceLastSync; in checkMailboxes()