Lines Matching refs:account

182                         cancelActiveSync(null /* any account */, UserHandle.USER_ALL,
203 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */,
214 // Kick off sync for everyone, since this was a radical account change
233 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) {
237 && accounts[i].account.equals(account)) {
254 currentSyncContext.mSyncOperation.account,
256 Log.d(TAG, "canceling sync since the account is no longer running");
353 public void onSyncRequest(Account account, int userId, String authority,
355 scheduleSync(account, userId, authority, extras, 0, false);
443 // Register for account list updates for all users
497 * @param requestedAccount the account to sync, may be null to signify all accounts
525 // if the accounts aren't configured yet then we can't support an account-less
558 for (AccountAndUser account : accounts) {
560 // For each authority sync each account that matches a sync adapter.
563 mSyncAdapters.getAllServices(account.userId)) {
577 int isSyncable = mSyncStorageEngine.getIsSyncable(account.account, account.userId,
584 SyncAdapterType.newKey(authority, account.account.type), account.userId);
591 mSyncStorageEngine.setIsSyncable(account.account, account.userId, authority, 1);
606 && mSyncStorageEngine.getMasterSyncAutomatically(account.userId)
607 && mSyncStorageEngine.getSyncAutomatically(account.account,
608 account.userId, authority));
611 Log.d(TAG, "scheduleSync: sync of " + account + ", " + authority
618 .getBackoff(account.account, account.userId, authority);
619 long delayUntil = mSyncStorageEngine.getDelayUntilTime(account.account,
620 account.userId, authority);
629 + ", account " + account
634 new SyncOperation(account.account, account.userId, source, authority,
642 + ", account " + account
647 new SyncOperation(account.account, account.userId, source, authority,
654 public void scheduleLocalSync(Account account, int userId, String authority) {
657 scheduleSync(account, userId, authority, extras, LOCAL_SYNC_DELAY,
693 private void sendCancelSyncsMessage(final Account account, final int userId,
698 msg.obj = Pair.create(account, authority);
721 mSyncStorageEngine.setBackoff(op.account, op.userId, op.authority,
724 mSyncQueue.onBackoffChanged(op.account, op.userId, op.authority, 0);
734 mSyncStorageEngine.getBackoff(op.account, op.userId, op.authority);
765 mSyncStorageEngine.setBackoff(op.account, op.userId, op.authority,
772 mSyncQueue.onBackoffChanged(op.account, op.userId, op.authority, backoff);
786 .setDelayUntilTime(op.account, op.userId, op.authority, newDelayUntilTime);
788 mSyncQueue.onDelayUntilTimeChanged(op.account, op.authority, newDelayUntilTime);
793 * Cancel the active sync if it matches the authority and account.
794 * @param account limit the cancelations to syncs with this account, if non-null
797 public void cancelActiveSync(Account account, int userId, String authority) {
798 sendCancelSyncsMessage(account, userId, authority);
827 * @param account limit the removals to operations with this account, if non-null
830 public void clearScheduledSyncOperations(Account account, int userId, String authority) {
832 mSyncQueue.remove(account, userId, authority);
834 mSyncStorageEngine.setBackoff(account, userId, authority,
882 scheduleSyncOperation(new SyncOperation(operation.account, operation.userId,
913 for (Account account : accounts) {
914 scheduleSync(account, userId, null, null, 0 /* no delay */,
925 null /* any account */,
976 mSyncOperation.account, mSyncOperation.authority);
1148 for (AccountAndUser account : accounts) {
1149 pw.print(" Account "); pw.print(account.account.name);
1150 pw.print(" u"); pw.print(account.userId);
1151 pw.print(" "); pw.print(account.account.type);
1154 mSyncAdapters.getAllServices(account.userId)) {
1155 if (!syncAdapterType.type.accountType.equals(account.account.type)) {
1161 account.account, account.userId, syncAdapterType.type.authority);
1297 accountKey = authority.account.name + "/" + authority.account.type
1425 accountKey = authority.account.name + "/" + authority.account.type
1642 private PowerManager.WakeLock getSyncWakeLock(Account account, String authority) {
1643 final Pair<Account, String> wakeLockKey = Pair.create(account, authority);
1646 final String name = SYNC_WAKE_LOCK_PREFIX + "_" + authority + "_" + account;
1708 // to also take into account the periodic syncs.
1834 // skip the sync if the account of this operation no longer exists
1835 if (!containsAccountAndUser(accounts, info.account, info.userId)) {
1840 || !mSyncStorageEngine.getSyncAutomatically(info.account, info.userId,
1845 if (mSyncStorageEngine.getIsSyncable(info.account, info.userId, info.authority)
1880 info.account, info.userId, info.authority);
1883 SyncAdapterType.newKey(info.authority, info.account.type),
1889 new SyncOperation(info.account, info.userId,
1894 info.account, info.userId, info.authority),
1939 // when the account lookup request does complete.
1975 // drop the sync if the account of this operation no longer exists
1976 if (!containsAccountAndUser(accounts, op.account, op.userId)) {
1984 op.account, op.userId, op.authority);
2011 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
2032 op.account, op.userId, op.authority))) {
2081 if (activeOp.account.type.equals(candidate.account.type)
2085 || activeOp.account.name.equals(candidate.account.name))) {
2179 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(op.authority, op.account.type);
2185 mSyncStorageEngine.removeAuthority(op.account, op.userId, op.authority);
2214 syncOperation.account, syncOperation.extras);
2226 private void cancelActiveSyncLocked(Account account, int userId, String authority) {
2231 // if an account was specified then only cancel the sync if it matches
2232 if (account != null) {
2233 if (!account.equals(activeSyncContext.mSyncOperation.account)) {
2318 installHandleTooManyDeletesNotification(syncOperation.account,
2323 syncOperation.account.hashCode() ^ syncOperation.authority.hashCode(),
2328 scheduleSyncOperation(new SyncOperation(syncOperation.account, syncOperation.userId,
2536 private void installHandleTooManyDeletesNotification(Account account, String authority,
2548 clickIntent.putExtra("account", account);
2574 mNotificationMgr.notifyAsUser(null, account.hashCode() ^ authority.hashCode(),
2605 syncOperation.account.name.hashCode());
2608 syncOperation.account, syncOperation.userId, syncOperation.authority,
2616 syncOperation.account.name.hashCode());