Home | History | Annotate | Download | only in accounts

Lines Matching defs:authority

187     private void addSyncStateSwitch(Account account, String authority,
189 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority);
191 item = new SyncStateSwitchPreference(getPrefContext(), account, authority,
195 item.setup(account, authority, packageName, uid);
200 authority, 0, mUserHandle.getIdentifier());
206 Log.e(TAG, "Provider needs a label for authority '" + authority + "'");
210 item.setKey(authority);
278 String authority = syncPref.getAuthority();
284 authority, userId);
292 requestOrCancelSync(account, authority, true);
305 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId);
310 requestOrCancelSync(account, authority, syncOn);
383 requestOrCancelSync(mAccount, syncAdapter.authority, startSync);
388 private void requestOrCancelSync(Account account, String authority, boolean flag) {
392 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(),
395 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier());
399 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) {
401 if (syncInfo.account.equals(account) && syncInfo.authority.equals(authority)) {
435 String authority = syncPref.getAuthority();
438 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, userId);
439 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority,
444 boolean activelySyncing = isSyncing(currentSyncs, account, authority);
454 Log.d(TAG, "Update sync status: " + account + " " + authority +
470 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId);
524 Log.d(TAG, "updateAccountSwitches: added authority " + sa.authority
542 int syncState = ContentResolver.getIsSyncableAsUser(mAccount, syncAdapter.authority,
545 Log.d(TAG, " found authority " + syncAdapter.authority + " " + syncState);
552 addSyncStateSwitch(mAccount, syncAdapter.authority,