Home
last modified time | relevance | path

Searched refs:syncInterval (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Email/src/com/android/email/activity/setup/
DMailboxSettings.java257 int syncInterval; in getSyncInterval() local
259 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() local
315 Log.i(Logging.LOG_TAG, "Updating object: " + syncInterval + "," + syncLookback); in updateObjects()
[all …]
/packages/apps/Email/src/com/android/email/service/
DMailService.java335 if (report.syncInterval <= 0) { // no timed checks - skip in reschedule()
443 int syncInterval; field in MailService.AccountSyncReport
451 if (syncInterval > 0 && prevSyncTime != 0) { in setNextSyncTime()
452 nextSyncTime = prevSyncTime + (syncInterval * 1000 * 60); in setNextSyncTime()
527 int syncInterval = account.mSyncInterval; in setupSyncReportsLocked() local
531 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()
/packages/apps/Email/tests/src/com/android/email/service/
DMailServiceTests.java269 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()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java2319 long syncInterval = c.getInt(Mailbox.CONTENT_SYNC_INTERVAL_COLUMN); in checkMailboxes() local
2320 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()