Home
last modified time | relevance | path

Searched refs:SyncStateSwitchPreference (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java194 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch()
196 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch()
262 if (preference instanceof SyncStateSwitchPreference) { in onActivityResult()
263 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) preference; in onActivityResult()
278 if (preference instanceof SyncStateSwitchPreference) { in onPreferenceTreeClick()
279 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) preference; in onPreferenceTreeClick()
378 if (!(pref instanceof SyncStateSwitchPreference)) { in requestOrCancelSyncForEnabledProviders()
381 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) pref; in requestOrCancelSyncForEnabledProviders()
437 if (!(pref instanceof SyncStateSwitchPreference)) { in setFeedsState()
440 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) pref; in setFeedsState()
[all …]
DSyncStateSwitchPreference.java34 public class SyncStateSwitchPreference extends SwitchPreferenceCompat { class
50 public SyncStateSwitchPreference(Context context, AttributeSet attrs) { in SyncStateSwitchPreference() method in SyncStateSwitchPreference
58 public SyncStateSwitchPreference(Context context, Account account, String authority, in SyncStateSwitchPreference() method in SyncStateSwitchPreference
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountSyncSettingsTest.java66 final SyncStateSwitchPreference preference = new SyncStateSwitchPreference(mContext, in onPreferenceTreeClick_nullAuthority_shouldNotCrash()
82 final SyncStateSwitchPreference preference = new SyncStateSwitchPreference(mContext, in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOn_returnTrue()
92 final SyncStateSwitchPreference preference = new SyncStateSwitchPreference(mContext, in enabledSyncNowMenu_addSyncStateSwitchPreferenceAndSwitchOff_returnFalse()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java165 if (preference instanceof SyncStateSwitchPreference) { in onPreferenceTreeClick()
166 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) preference; in onPreferenceTreeClick()
231 if (! (pref instanceof SyncStateSwitchPreference)) { in requestOrCancelSyncForEnabledProviders()
234 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) pref; in requestOrCancelSyncForEnabledProviders()
306 if (! (pref instanceof SyncStateSwitchPreference)) { in onSyncStateUpdated()
309 SyncStateSwitchPreference syncPref = (SyncStateSwitchPreference) pref; in onSyncStateUpdated()
410 SyncStateSwitchPreference preference = in createSyncStateSwitch()
411 new SyncStateSwitchPreference(themedContext, account, authority); in createSyncStateSwitch()
DSyncStateSwitchPreference.java33 public class SyncStateSwitchPreference extends SwitchWithSoundPreference { class
47 public SyncStateSwitchPreference(Context context, AttributeSet attrs) { in SyncStateSwitchPreference() method in SyncStateSwitchPreference
53 public SyncStateSwitchPreference(Context context, Account account, String authority) { in SyncStateSwitchPreference() method in SyncStateSwitchPreference
/packages/apps/Settings/tests/unit/src/com/android/settings/accounts/
DSyncStateSwitchPreferenceTest.java36 private SyncStateSwitchPreference mPreference;
45 mPreference = new SyncStateSwitchPreference(mContext, null /* attrs */); in setup_validAuthority_shouldBeVisible()
55 mPreference = new SyncStateSwitchPreference(mContext, null /* attrs */); in setup_emptyAuthority_shouldBeInvisible()