Lines Matching refs:account
375 for (Account account: this) { in contains()
376 if (account.mId == id) { in contains()
384 for (Account account: this) { in getById()
385 if (account.mId == id) { in getById()
386 return account; in getById()
412 for (Account account: mAccounts) { in AccountObserver()
413 int cnt = Mailbox.count(context, Mailbox.CONTENT_URI, "accountKey=" + account.mId, in AccountObserver()
416 addAccountMailbox(account.mId); in AccountObserver()
430 for (Account account: mAccounts) { in getSyncableEasMailboxWhere()
436 sb.append(account.mId); in getSyncableEasMailboxWhere()
453 for (Account account: mAccounts) { in getAccountKeyWhere()
459 sb.append(account.mId); in getAccountKeyWhere()
467 private boolean syncParametersChanged(Account account) { in syncParametersChanged() argument
468 long accountId = account.mId; in syncParametersChanged()
470 account = Account.restoreAccountWithId(getContext(), accountId); in syncParametersChanged()
473 return oldAccount.mSyncInterval != account.mSyncInterval || in syncParametersChanged()
474 oldAccount.mSyncLookback != account.mSyncLookback; in syncParametersChanged()
492 for (Account account : mAccounts) { in onChange()
493 if (!currentAccounts.contains(account.mId)) { in onChange()
495 stopAccountSyncs(account.mId, true); in onChange()
498 new android.accounts.Account(account.mEmailAddress, in onChange()
505 if (syncParametersChanged(account)) { in onChange()
508 Account.restoreAccountWithId(getContext(), account.mId); in onChange()
513 new String[] {Long.toString(account.mId)}); in onChange()
515 INSTANCE.log("Account " + account.mDisplayName + in onChange()
517 stopAccountSyncs(account.mId, true); in onChange()
523 for (Account account: currentAccounts) { in onChange()
524 if (!mAccounts.contains(account.mId)) { in onChange()
526 addAccountMailbox(account.mId); in onChange()
529 HostAuth.restoreHostAuthWithId(getContext(), account.mHostAuthKeyRecv); in onChange()
530 account.mHostAuthRecv = ha; in onChange()
531 mAccounts.add(account); in onChange()
555 Account account = new Account().restore(c); in collectEasAccounts() local
557 account.mHostAuthRecv = ha; in collectEasAccounts()
558 accounts.add(account); in collectEasAccounts()
1545 Account account = in checkMailboxes() local
1547 if (account != null) { in checkMailboxes()
1549 new android.accounts.Account(account.mEmailAddress, in checkMailboxes()