Lines Matching refs:account

159         final Account account;
171 PendingOperation(Account account, int userId, int reason, int source,
173 this.account = account;
185 this.account = other.account;
209 final Account account;
227 account = toCopy.account;
248 * @param account Account that this authority syncs.
253 AuthorityInfo(Account account, int userId, String authority, int ident) {
254 this.account = account;
265 periodicSyncs.add(new PeriodicSync(account, authority,
279 this.account = null;
290 periodicSyncs.add(new PeriodicSync(account, authority,
326 * Called when a sync is needed on an account(s) due to some change in state.
327 * @param account
333 public void onSyncRequest(Account account, int userId, int reason, String authority,
555 public boolean getSyncAutomatically(Account account, int userId, String providerName) {
557 if (account != null) {
558 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
577 public void setSyncAutomatically(Account account, int userId, String providerName,
580 Log.d(TAG, "setSyncAutomatically: " + /* account + */" provider " + providerName
584 AuthorityInfo authority = getOrCreateAuthorityLocked(account, userId, providerName, -1,
597 requestSync(account, userId, SyncOperation.REASON_SYNC_AUTO, providerName,
603 public int getIsSyncable(Account account, int userId, String providerName) {
605 if (account != null) {
606 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
626 public void setIsSyncable(Account account, int userId, String providerName, int syncable) {
633 Log.d(TAG, "setIsSyncable: " + account + ", provider " + providerName
638 getOrCreateAuthorityLocked(account, userId, providerName, -1, false);
650 requestSync(account, userId, SyncOperation.REASON_IS_SYNCABLE, providerName,
656 public Pair<Long, Long> getBackoff(Account account, int userId, String providerName) {
658 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
667 public void setBackoff(Account account, int userId, String providerName,
670 Log.v(TAG, "setBackoff: " + account + ", provider " + providerName
676 if (account == null || providerName == null) {
678 if (account != null && !account.equals(accountInfo.accountAndUser.account)
697 getOrCreateAuthorityLocked(account, userId, providerName, -1 /* ident */,
728 + " account:" + accountInfo.accountAndUser.account.name
735 syncQueue.onBackoffChanged(accountInfo.accountAndUser.account,
748 public void setDelayUntilTime(Account account, int userId, String providerName,
751 Log.v(TAG, "setDelayUntil: " + account + ", provider " + providerName
756 account, userId, providerName, -1 /* ident */, true);
766 public long getDelayUntilTime(Account account, int userId, String providerName) {
768 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
779 Log.v(TAG, "addOrRemovePeriodicSync: " + toUpdate.account + ", user " + userId
794 getOrCreateAuthorityLocked(toUpdate.account, userId, toUpdate.authority,
865 public List<PeriodicSync> getPeriodicSyncs(Account account, int userId, String providerName) {
868 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
904 public void removeAuthority(Account account, int userId, String authority) {
906 removeAuthorityLocked(account, userId, authority, true /* doWrite */);
918 * account or authority actively being processed.
920 public boolean isSyncActive(Account account, int userId, String authority) {
924 if (ainfo != null && ainfo.account.equals(account)
938 Log.v(TAG, "insertIntoPending: account=" + op.account
945 AuthorityInfo authority = getOrCreateAuthorityLocked(op.account, op.userId,
968 * authorities. If there are no more pending syncs for the same authority/account/userid,
978 Log.v(TAG, "deleteFromPending: account=" + op.account
993 AuthorityInfo authority = getAuthorityLocked(op.account, op.userId, op.authority,
1001 if (cur.account.equals(op.account)
1045 * Called when the set of account has changed, given the new array of
1055 if (!ArrayUtils.contains(accounts, acc.accountAndUser.account)
1057 // This account no longer exists...
1106 Log.v(TAG, "setActiveSync: account="
1107 + activeSyncContext.mSyncOperation.account
1113 activeSyncContext.mSyncOperation.account,
1119 authority.account, authority.authority,
1134 Log.v(TAG, "removeActiveSync: account=" + syncInfo.account
1152 * Note that sync has started for the given account and authority.
1159 Log.v(TAG, "insertStartSyncEvent: account=" + accountName + "user=" + userId
1352 Account account, int userId, String authority) {
1354 AuthorityInfo authorityInfo = getOrCreateAuthorityLocked(account, userId, authority,
1376 * Returns the status that matches the authority and account.
1378 * @param account the account we want to check
1382 public SyncStatusInfo getStatusByAccountAndAuthority(Account account, int userId,
1384 if (account == null || authority == null) {
1395 && account.equals(ainfo.account)) {
1406 public boolean isSyncPending(Account account, int userId, String authority) {
1418 if (account != null && !ainfo.account.equals(account)) {
1479 * @param accountName The name of the account for the authority.
1491 Log.v(TAG, tag + ": unknown account " + au);
1571 AccountInfo account = mAccounts.get(au);
1572 if (account == null) {
1573 account = new AccountInfo(au);
1574 mAccounts.put(au, account);
1576 AuthorityInfo authority = account.authorities.get(authorityName);
1589 account.authorities.put(authorityName, authority);
1599 private void removeAuthorityLocked(Account account, int userId, String authorityName,
1601 AccountInfo accountInfo = mAccounts.get(new AccountAndUser(account, userId));
1687 * Read all account information back in to the initial engine state.
1822 if (getAuthorityLocked(authority.account, authority.userId, newAuthorityName, "cleanup")
1827 AuthorityInfo newAuthority = getOrCreateAuthorityLocked(authority.account,
1834 removeAuthorityLocked(authorityInfo.account, authorityInfo.userId,
1871 String accountName = parser.getAttributeValue(null, "account");
1883 Log.v(TAG, "Adding authority: account="
1919 Log.w(TAG, "Failure adding authority: account="
1957 new PeriodicSync(authority.account, authority.authority, extras,
1982 } else if ("account".equals(type)) {
1993 * Write all account information to the account file.
2032 out.attribute(null, "account", authority.account.name);
2033 out.attribute(null, "type", authority.account.type);
2103 map.put("account", "stats.account as account");
2124 String accountName = c.getString(c.getColumnIndex("account"));
2328 authority.account, authority.userId, reason,
2519 out.attribute(null, "type", "account");
2527 private void requestSync(Account account, int userId, int reason, String authority,
2535 mSyncRequestListener.onSyncRequest(account, userId, reason, authority, extras);
2537 ContentResolver.requestSync(account, authority, extras);
2631 sb.append("(" + pop.account)