Searched refs:SyncPreference (Results 1 – 3 of 3) sorted by relevance
232 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()
70 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 …]
34 public class SyncPreference extends SwitchPreference { class40 public SyncPreference(Context context, String authority) { in SyncPreference() method in SyncPreference