Lines Matching defs:ExchangeService
152 mDeviceId = ExchangeService.getDeviceId(mContext);
170 ExchangeService.done(this);
177 ExchangeService.reloadFolderList(mContext, mAccount.mId, true);
187 // Make sure ExchangeService knows about this
188 ExchangeService.kick("sync finished");
244 ExchangeService.kick("change ping boxes to push");
314 if (!ExchangeService.canAutoSync(mAccount)) {
315 if (ExchangeService.onSecurityHold(mAccount)) {
466 ExchangeService.kick("push fallback");
486 ExchangeService.runAsleep(mMailboxId, ms + (5 * DateUtils.SECOND_IN_MILLIS));
494 ExchangeService.runAwake(mMailboxId);
545 // 1) ExchangeService tells us the mailbox is syncable (not running/not stopped)
565 pingStatus = ExchangeService.PING_STATUS_DISABLED;
567 pingStatus = ExchangeService.pingStatus(mailboxId);
571 if (pingStatus == ExchangeService.PING_STATUS_OK) {
594 } else if ((pingStatus == ExchangeService.PING_STATUS_RUNNING) ||
595 (pingStatus == ExchangeService.PING_STATUS_WAITING)) {
597 } else if (pingStatus == ExchangeService.PING_STATUS_UNABLE) {
601 } else if (pingStatus == ExchangeService.PING_STATUS_DISABLED) {
649 if (!ExchangeService.canAutoSync(mAccount)) {
688 ExchangeService.removeFromSyncErrorMap(mMailboxId);
709 // Nothing to do in this case; this is ExchangeService telling us to try
725 // 2) ExchangeService abort, due to sync of mailbox. Again, we want to
749 // TODO Change sleep to wait and use notify from ExchangeService when a sync ends
809 int type = ExchangeService.getStatusType(status);
811 if (type == ExchangeService.SYNC_PING) {
812 int changeCount = ExchangeService.getStatusChangeCount(status);
835 ExchangeService.startManualSync(c.getLong(Mailbox.CONTENT_ID_COLUMN),
836 ExchangeService.SYNC_PING, null);