Lines Matching refs:authority

184                                 null /* any authority */);
204 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */,
354 public void onSyncRequest(Account account, int userId, String authority,
356 scheduleSync(account, userId, authority, extras, 0, false);
372 scheduleSync(null, UserHandle.USER_ALL, type.authority, null, 0 /* no delay */,
501 * @param requestedAuthority the authority to sync, may be null to indicate all authorities
561 // For each authority sync each account that matches a sync adapter.
565 syncableAuthorities.add(syncAdapter.type.authority);
569 // with just this authority or clear it if this authority isn't
577 for (String authority : syncableAuthorities) {
579 authority);
585 SyncAdapterType.newKey(authority, account.account.type), account.userId);
592 mSyncStorageEngine.setIsSyncable(account.account, account.userId, authority, 1);
609 account.userId, authority));
612 Log.d(TAG, "scheduleSync: sync of " + account + ", " + authority
619 .getBackoff(account.account, account.userId, authority);
621 account.userId, authority);
631 + ", authority " + authority
635 new SyncOperation(account.account, account.userId, source, authority,
644 + ", authority " + authority
648 new SyncOperation(account.account, account.userId, source, authority,
655 public void scheduleLocalSync(Account account, int userId, String authority) {
658 scheduleSync(account, userId, authority, extras, LOCAL_SYNC_DELAY,
695 final String authority) {
699 msg.obj = Pair.create(account, authority);
722 mSyncStorageEngine.setBackoff(op.account, op.userId, op.authority,
725 mSyncQueue.onBackoffChanged(op.account, op.userId, op.authority, 0);
735 mSyncStorageEngine.getBackoff(op.account, op.userId, op.authority);
766 mSyncStorageEngine.setBackoff(op.account, op.userId, op.authority,
773 mSyncQueue.onBackoffChanged(op.account, op.userId, op.authority, backoff);
787 .setDelayUntilTime(op.account, op.userId, op.authority, newDelayUntilTime);
789 mSyncQueue.onDelayUntilTimeChanged(op.account, op.authority, newDelayUntilTime);
794 * Cancel the active sync if it matches the authority and account.
796 * @param authority limit the cancelations to syncs with this authority, if non-null
798 public void cancelActiveSync(Account account, int userId, String authority) {
799 sendCancelSyncsMessage(account, userId, authority);
829 * @param authority limit the removals to operations with this authority, if non-null
831 public void clearScheduledSyncOperations(Account account, int userId, String authority) {
833 mSyncQueue.remove(account, userId, authority);
835 mSyncStorageEngine.setBackoff(account, userId, authority,
885 operation.authority, operation.extras,
928 null /* any authority */);
977 mSyncOperation.account, mSyncOperation.authority);
1162 account.account, account.userId, syncAdapterType.type.authority);
1164 pw.print(" "); pw.print(settings.authority);
1292 SyncStorageEngine.AuthorityInfo authority
1296 if (authority != null) {
1297 authorityName = authority.authority;
1298 accountKey = authority.account.name + "/" + authority.account.type
1299 + " u" + authority.userId;
1420 SyncStorageEngine.AuthorityInfo authority
1424 if (authority != null) {
1425 authorityName = authority.authority;
1426 accountKey = authority.account.name + "/" + authority.account.type
1427 + " u" + authority.userId;
1643 private PowerManager.WakeLock getSyncWakeLock(Account account, String authority) {
1644 final Pair<Account, String> wakeLockKey = Pair.create(account, authority);
1647 final String name = SYNC_WAKE_LOCK_PREFIX + "_" + authority + "_" + account;
1842 info.authority)) {
1846 if (mSyncStorageEngine.getIsSyncable(info.account, info.userId, info.authority)
1881 info.account, info.userId, info.authority);
1884 SyncAdapterType.newKey(info.authority, info.account.type),
1892 info.authority, extras, 0 /* delay */,
1895 info.account, info.userId, info.authority),
1985 op.account, op.userId, op.authority);
2012 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
2033 op.account, op.userId, op.authority))) {
2083 && activeOp.authority.equals(candidate.authority)
2180 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(op.authority, op.account.type);
2186 mSyncStorageEngine.removeAuthority(op.account, op.userId, op.authority);
2214 syncAdapter.startSync(activeSyncContext, syncOperation.authority,
2227 private void cancelActiveSyncLocked(Account account, int userId, String authority) {
2238 // if an authority was specified then only cancel the sync if it matches
2239 if (authority != null) {
2240 if (!authority.equals(activeSyncContext.mSyncOperation.authority)) {
2320 syncOperation.authority, syncResult.stats.numDeletes,
2324 syncOperation.account.hashCode() ^ syncOperation.authority.hashCode(),
2330 syncOperation.syncSource, syncOperation.authority, new Bundle(), 0,
2537 private void installHandleTooManyDeletesNotification(Account account, String authority,
2542 authority, 0 /* flags */);
2550 clickIntent.putExtra("authority", authority);
2575 mNotificationMgr.notifyAsUser(null, account.hashCode() ^ authority.hashCode(),
2604 EventLog.writeEvent(2720, syncOperation.authority,
2609 syncOperation.account, syncOperation.userId, syncOperation.authority,
2615 EventLog.writeEvent(2720, syncOperation.authority,