Home
last modified time | relevance | path

Searched refs:SyncPreference (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked()
247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked()
262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked()
437 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in onSyncPreferenceClicked_preferenceUnchecked_shouldSetSyncAutomaticallyOff()
455 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in onSyncPreferenceClicked_preferenceUnchecked_shouldCancelSync()
472 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in onSyncPreferenceClicked_preferenceChecked_shouldSetSyncAutomaticallyOn()
489 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in onSyncPreferenceClicked_preferenceChecked_masterSyncOff_shouldRequestSync()
507 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in onSyncPreferenceClicked_oneTimeSyncOn_shouldRequestSync()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceController.java70 private final Map<String, SyncPreference> mSyncPreferences = new ArrayMap<>();
181 private boolean onSyncPreferenceClicked(SyncPreference preference) { in onSyncPreferenceClicked()
259 for (SyncPreference pref : mSyncPreferences.values()) { in onAccountRequestApproved()
271 List<SyncPreference> preferences = getSyncPreferences(preferencesToRemove); in forceUpdateSyncCategory()
277 (SyncPreference a) -> a.getTitle().toString()) in forceUpdateSyncCategory()
278 .thenComparing((SyncPreference a) -> a.getSummary().toString())); in forceUpdateSyncCategory()
281 SyncPreference pref = preferences.get(i); in forceUpdateSyncCategory()
303 private List<SyncPreference> getSyncPreferences(Set<String> preferencesToRemove) { in getSyncPreferences()
310 List<SyncPreference> syncPreferences = new ArrayList<>(); in getSyncPreferences()
329 SyncPreference pref = mSyncPreferences.getOrDefault(authority, in getSyncPreferences()
[all …]
DSyncPreference.java34 public class SyncPreference extends SwitchPreference { class
40 public SyncPreference(Context context, String authority) { in SyncPreference() method in SyncPreference