Home
last modified time | relevance | path

Searched refs:syncEnabled (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceController.java342 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(mAccount, authority, in getSyncPreferences()
348 boolean checked = oneTimeSyncMode || syncEnabled; in getSyncPreferences()
351 String summary = getSummary(status, syncEnabled, activelySyncing); in getSyncPreferences()
356 syncEnabled, activelySyncing); in getSyncPreferences()
364 private String getSummary(SyncStatusInfo status, boolean syncEnabled, boolean activelySyncing) { in getSummary() argument
367 if (!syncEnabled) { in getSummary()
DAccountSyncHelper.java133 static SyncState getSyncState(SyncStatusInfo status, boolean syncEnabled, in getSyncState() argument
137 boolean lastSyncFailed = syncEnabled && status != null && status.lastFailureTime != 0 in getSyncState()
153 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority, in syncIsAllowed()
155 return oneTimeSyncMode || syncEnabled; in syncIsAllowed()
DAccountSyncPreferenceController.java118 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser( in getSummary()
122 if (oneTimeSyncMode || syncEnabled) { in getSummary()
DAccountDetailsWithSyncStatusPreferenceController.java102 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(getAccount(), in isSyncFailing()
108 syncEnabled, activelySyncing); in isSyncFailing()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java313 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority, in onSyncStateUpdated()
323 if (!syncEnabled) lastSyncFailed = false; in onSyncStateUpdated()
333 if (!syncEnabled) { in onSyncStateUpdated()
355 syncPref.setChecked(oneTimeSyncMode || syncEnabled); in onSyncStateUpdated()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncPreferenceController.java121 final boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser( in updateSummary()
125 if (oneTimeSyncMode || syncEnabled) { in updateSummary()
DAccountSyncSettings.java432 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority, in setFeedsState()
442 if (!syncEnabled) lastSyncFailed = false; in setFeedsState()
452 if (!syncEnabled) { in setFeedsState()
474 syncPref.setChecked(oneTimeSyncMode || syncEnabled); in setFeedsState()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
DAccountStateChangedListener.java55 public static void onSyncPreferenceChanged(@Nullable String account, boolean syncEnabled) { in onSyncPreferenceChanged() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragment.java240 final boolean syncEnabled = prefs.getBoolean(PREF_ENABLE_CLOUD_SYNC, false); in onSharedPreferenceChanged()
247 syncEnabled); in onSharedPreferenceChanged() local