Lines Matching refs:userId

147         final int userId;
156 PendingOperation(Account account, int userId, int source,
159 this.userId = userId;
169 this.userId = other.userId;
190 final int userId;
208 userId = toCopy.userId;
223 AuthorityInfo(Account account, int userId, String authority, int ident) {
225 this.userId = userId;
266 * @param userId
270 public void onSyncRequest(Account account, int userId, String authority, Bundle extras);
462 public boolean getSyncAutomatically(Account account, int userId, String providerName) {
465 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
475 && authority.userId == userId
484 public void setSyncAutomatically(Account account, int userId, String providerName,
487 + ", user " + userId + " -> " + sync);
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) {
508 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName,
528 public void setIsSyncable(Account account, int userId, String providerName, int syncable) {
535 + ", user " + userId + " -> " + syncable);
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,
568 + ", user " + userId
576 && userId != accountInfo.accountAndUser.userId) {
593 getOrCreateAuthorityLocked(account, userId, providerName, -1 /* ident */,
621 + " user:" + accountInfo.accountAndUser.userId
628 accountInfo.accountAndUser.userId, authorityInfo.authority, 0);
641 public void setDelayUntilTime(Account account, int userId, String providerName,
645 + ", user " + userId + " -> delayUntil " + delayUntil);
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,
771 public void setMasterSyncAutomatically(boolean flag, int userId) {
773 Boolean auto = mMasterSyncAutomatically.get(userId);
777 mMasterSyncAutomatically.put(userId, flag);
781 requestSync(null, userId, null, new Bundle());
787 public boolean getMasterSyncAutomatically(int userId) {
789 Boolean auto = mMasterSyncAutomatically.get(userId);
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 */);
818 public boolean isSyncActive(Account account, int userId, String authority) {
820 for (SyncInfo syncInfo : getCurrentSyncs(userId)) {
824 && ainfo.userId == userId) {
837 + " user=" + op.userId
843 AuthorityInfo authority = getOrCreateAuthorityLocked(op.account, op.userId,
869 + " user=" + op.userId
883 AuthorityInfo authority = getAuthorityLocked(op.account, op.userId, op.authority,
893 && cur.userId == op.userId) {
938 public void doDatabaseCleanup(Account[] accounts, int userId) {
946 && acc.accountAndUser.userId == userId) {
1004 activeSyncContext.mSyncOperation.userId,
1011 getCurrentSyncs(authority.userId).add(syncInfo);
1021 public void removeActiveSync(SyncInfo syncInfo, int userId) {
1025 + " user=" + userId
1028 getCurrentSyncs(userId).remove(syncInfo);
1044 public long insertStartSyncEvent(Account accountName, int userId, String authorityName,
1049 Log.v(TAG, "insertStartSyncEvent: account=" + accountName + "user=" + userId
1052 AuthorityInfo authority = getAuthorityLocked(accountName, userId, authorityName,
1207 public List<SyncInfo> getCurrentSyncs(int userId) {
1209 ArrayList<SyncInfo> syncs = mCurrentSyncs.get(userId);
1212 mCurrentSyncs.put(userId, syncs);
1258 public SyncStatusInfo getStatusByAccountAndAuthority(Account account, int userId,
1270 && ainfo.userId == userId
1282 public boolean isSyncPending(Account account, int userId, String authority) {
1291 if (userId != ainfo.userId) {
1354 private AuthorityInfo getAuthorityLocked(Account accountName, int userId, String authorityName,
1356 AccountAndUser au = new AccountAndUser(accountName, userId);
1379 private AuthorityInfo getOrCreateAuthorityLocked(Account accountName, int userId,
1381 AccountAndUser au = new AccountAndUser(accountName, userId);
1396 + ", user " + userId
1399 authority = new AuthorityInfo(accountName, userId, authorityName, ident);
1410 private void removeAuthorityLocked(Account account, int userId, String authorityName,
1412 AccountInfo accountInfo = mAccounts.get(new AccountAndUser(account, userId));
1597 if (getAuthorityLocked(authority.account, authority.userId, newAuthorityName, "cleanup")
1603 authority.userId, newAuthorityName, -1 /* ident */, false /* doWrite */);
1609 removeAuthorityLocked(authorityInfo.account, authorityInfo.userId,
1619 int userId = 0;
1621 userId = Integer.parseInt(user);
1629 mMasterSyncAutomatically.put(userId, listen);
1650 int userId = user == null ? 0 : Integer.parseInt(user);
1658 + " user=" + userId
1664 new Account(accountName, accountType), userId, authorityName, id, false);
1764 int userId = mMasterSyncAutomatically.keyAt(m);
1767 out.attribute(null, XML_ATTR_USER, Integer.toString(userId));
1778 out.attribute(null, XML_ATTR_USER, Integer.toString(authority.userId));
2079 authority.account, authority.userId, syncSource,
2199 private void requestSync(Account account, int userId, String authority, Bundle extras) {
2203 // which will know which userId to apply based on the Binder id.
2206 mSyncRequestListener.onSyncRequest(account, userId, authority, extras);