Lines Matching refs:account

146         final Account account;
156 PendingOperation(Account account, int userId, int source,
158 this.account = account;
168 this.account = other.account;
189 final Account account;
207 account = toCopy.account;
223 AuthorityInfo(Account account, int userId, String authority, int ident) {
224 this.account = account;
264 * Called when a sync is needed on an account(s) due to some change in state.
265 * @param account
270 public void onSyncRequest(Account account, int userId, String authority, Bundle extras);
462 public boolean getSyncAutomatically(Account account, int userId, String providerName) {
464 if (account != null) {
465 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
484 public void setSyncAutomatically(Account account, int userId, String providerName,
486 Log.d(TAG, "setSyncAutomatically: " + /* account + */" provider " + providerName
489 AuthorityInfo authority = getOrCreateAuthorityLocked(account, userId, providerName, -1,
500 requestSync(account, userId, providerName, new Bundle());
505 public int getIsSyncable(Account account, int userId, String providerName) {
507 if (account != null) {
508 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
528 public void setIsSyncable(Account account, int userId, String providerName, int syncable) {
534 Log.d(TAG, "setIsSyncable: " + account + ", provider " + providerName
537 AuthorityInfo authority = getOrCreateAuthorityLocked(account, userId, providerName, -1,
548 requestSync(account, userId, providerName, new Bundle());
553 public Pair<Long, Long> getBackoff(Account account, int userId, String providerName) {
555 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
564 public void setBackoff(Account account, int userId, String providerName,
567 Log.v(TAG, "setBackoff: " + account + ", provider " + providerName
573 if (account == null || providerName == null) {
575 if (account != null && !account.equals(accountInfo.accountAndUser.account)
593 getOrCreateAuthorityLocked(account, userId, providerName, -1 /* ident */,
620 + " account:" + accountInfo.accountAndUser.account.name
627 syncQueue.onBackoffChanged(accountInfo.accountAndUser.account,
641 public void setDelayUntilTime(Account account, int userId, String providerName,
644 Log.v(TAG, "setDelayUntil: " + account + ", provider " + providerName
649 account, userId, providerName, -1 /* ident */, true);
659 public long getDelayUntilTime(Account account, int userId, String providerName) {
661 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
670 private void updateOrRemovePeriodicSync(Account account, int userId, String providerName,
680 Log.v(TAG, "addOrRemovePeriodicSync: " + account + ", user " + userId
687 getOrCreateAuthorityLocked(account, userId, providerName, -1, false);
744 public void addPeriodicSync(Account account, int userId, String providerName, Bundle extras,
746 updateOrRemovePeriodicSync(account, userId, providerName, extras, pollFrequency,
750 public void removePeriodicSync(Account account, int userId, String providerName,
752 updateOrRemovePeriodicSync(account, userId, providerName, extras, 0 /* period, ignored */,
756 public List<PeriodicSync> getPeriodicSyncs(Account account, int userId, String providerName) {
759 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
763 syncs.add(new PeriodicSync(account, providerName, item.first,
794 public AuthorityInfo getOrCreateAuthority(Account account, int userId, String authority) {
796 return getOrCreateAuthorityLocked(account, userId, authority,
802 public void removeAuthority(Account account, int userId, String authority) {
804 removeAuthorityLocked(account, userId, authority, true /* doWrite */);
816 * account or authority actively being processed.
818 public boolean isSyncActive(Account account, int userId, String authority) {
822 if (ainfo != null && ainfo.account.equals(account)
836 Log.v(TAG, "insertIntoPending: account=" + op.account
843 AuthorityInfo authority = getOrCreateAuthorityLocked(op.account, op.userId,
868 Log.v(TAG, "deleteFromPending: account=" + op.account
883 AuthorityInfo authority = getAuthorityLocked(op.account, op.userId, op.authority,
891 if (cur.account.equals(op.account)
935 * Called when the set of account has changed, given the new array of
945 if (!ArrayUtils.contains(accounts, acc.accountAndUser.account)
947 // This account no longer exists...
996 Log.v(TAG, "setActiveSync: account="
997 + activeSyncContext.mSyncOperation.account
1003 activeSyncContext.mSyncOperation.account,
1009 authority.account, authority.authority,
1024 Log.v(TAG, "removeActiveSync: account=" + syncInfo.account
1042 * Note that sync has started for the given account and authority.
1049 Log.v(TAG, "insertStartSyncEvent: account=" + accountName + "user=" + userId
1252 * Returns the status that matches the authority and account.
1254 * @param account the account we want to check
1258 public SyncStatusInfo getStatusByAccountAndAuthority(Account account, int userId,
1260 if (account == null || authority == null) {
1271 && account.equals(ainfo.account)) {
1282 public boolean isSyncPending(Account account, int userId, String authority) {
1294 if (account != null && !ainfo.account.equals(account)) {
1349 * @param accountName The name of the account for the authority.
1361 Log.v(TAG, tag + ": unknown account " + au);
1382 AccountInfo account = mAccounts.get(au);
1383 if (account == null) {
1384 account = new AccountInfo(au);
1385 mAccounts.put(au, account);
1387 AuthorityInfo authority = account.authorities.get(authorityName);
1400 account.authorities.put(authorityName, authority);
1410 private void removeAuthorityLocked(Account account, int userId, String authorityName,
1412 AccountInfo accountInfo = mAccounts.get(new AccountAndUser(account, userId));
1478 * Read all account information back in to the initial engine state.
1597 if (getAuthorityLocked(authority.account, authority.userId, newAuthorityName, "cleanup")
1602 AuthorityInfo newAuthority = getOrCreateAuthorityLocked(authority.account,
1609 removeAuthorityLocked(authorityInfo.account, authorityInfo.userId,
1647 String accountName = parser.getAttributeValue(null, "account");
1656 if (DEBUG_FILE) Log.v(TAG, "Adding authority: account="
1683 Log.w(TAG, "Failure adding authority: account="
1732 } else if ("account".equals(type)) {
1743 * Write all account information to the account file.
1777 out.attribute(null, "account", authority.account.name);
1779 out.attribute(null, "type", authority.account.type);
1814 out.attribute(null, "type", "account");
1874 map.put("account", "stats.account as account");
1895 String accountName = c.getString(c.getColumnIndex("account"));
2079 authority.account, authority.userId, syncSource,
2083 if (DEBUG_FILE) Log.v(TAG, "Adding pending op: account=" + op.account
2199 private void requestSync(Account account, int userId, String authority, Bundle extras) {
2206 mSyncRequestListener.onSyncRequest(account, userId, authority, extras);
2208 ContentResolver.requestSync(account, authority, extras);