Home
last modified time | relevance | path

Searched refs:exchangeService (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java364 ExchangeService exchangeService = INSTANCE;
365 if (exchangeService == null) return;
367 Mailbox m = Mailbox.restoreMailboxWithId(exchangeService, mailboxId);
369 Account acct = Account.restoreAccountWithId(exchangeService, m.mAccountKey);
375 releaseSyncHolds(exchangeService, AbstractSyncService.EXIT_ACCESS_DENIED, acct);
378 releaseSyncHolds(exchangeService, AbstractSyncService.EXIT_SECURITY_FAILURE,
400 exchangeService.getContentResolver().update(Message.CONTENT_URI,
403 exchangeService.mSyncErrorMap.remove(mailboxId);
440 ExchangeService exchangeService = INSTANCE;
441 if (exchangeService == null) return;
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DExchangeServiceAccountTests.java42 ExchangeService exchangeService = new ExchangeService(); in testReleaseSyncHolds() local
44 exchangeService.new SyncError(AbstractSyncService.EXIT_SECURITY_FAILURE, false); in testReleaseSyncHolds()
46 exchangeService.new SyncError(AbstractSyncService.EXIT_IO_ERROR, false); in testReleaseSyncHolds()
48 exchangeService.new SyncError(AbstractSyncService.EXIT_SECURITY_FAILURE, false); in testReleaseSyncHolds()
61 ConcurrentHashMap<Long, SyncError> errorMap = exchangeService.mSyncErrorMap; in testReleaseSyncHolds()
70 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
84 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
92 assertFalse(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
98 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
/packages/apps/Exchange/tests/src/com/android/exchange/
DExchangeServiceAccountTests.java42 ExchangeService exchangeService = new ExchangeService(); in testReleaseSyncHolds() local
44 exchangeService.new SyncError(AbstractSyncService.EXIT_SECURITY_FAILURE, false); in testReleaseSyncHolds()
46 exchangeService.new SyncError(AbstractSyncService.EXIT_IO_ERROR, false); in testReleaseSyncHolds()
48 exchangeService.new SyncError(AbstractSyncService.EXIT_SECURITY_FAILURE, false); in testReleaseSyncHolds()
61 ConcurrentHashMap<Long, SyncError> errorMap = exchangeService.mSyncErrorMap; in testReleaseSyncHolds()
70 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
84 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
92 assertFalse(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
98 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()