Lines Matching refs:account

54     private static final String ARG_ACCOUNT = "account";
80 public static AccountSyncFragment newInstance(Account account) {
82 prepareArgs(b, account);
88 public static void prepareArgs(Bundle b, Account account) {
89 b.putParcelable(ARG_ACCOUNT, account);
101 Log.v(TAG, "Got account: " + mAccount);
149 Account account = syncPref.getAccount();
152 requestOrCancelSync(account, authority, true);
155 boolean oldSyncState = ContentResolver.getSyncAutomaticallyAsUser(account,
159 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId);
164 requestOrCancelSync(account, authority, syncOn);
221 private void requestOrCancelSync(Account account, String authority, boolean flag) {
225 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(),
228 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier());
232 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) {
234 if (syncInfo.account.equals(account) && syncInfo.authority.equals(authority)) {
241 private boolean accountExists(Account account) {
242 if (account == null) return false;
245 account.type, mUserHandle);
247 if (other.equals(account)) {
260 // The account was deleted
287 Account account = syncPref.getAccount();
289 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, userId);
290 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority,
295 boolean activelySyncing = isSyncing(currentSyncs, account, authority);
305 Log.v(TAG, "Update sync status: " + account + " " + authority +
321 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId);
343 // Only keep track of sync adapters for this account
362 Log.v(TAG, "looking for sync adapters that match account " + mAccount);
383 private Preference createSyncStateSwitch(Account account, String authority) {
386 new SyncStateSwitchPreference(themedContext, account, authority);