Home
last modified time | relevance | path

Searched refs:SETTING_KEY (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DWalletPrivacyPreferenceControllerTest.java51 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_SHOW_WALLET; field in WalletPrivacyPreferenceControllerTest
86 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1); in isChecked_SettingIs1_returnTrue()
93 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0); in isChecked_SettingIs0_returnFalse()
100 Settings.Secure.putString(mContentResolver, SETTING_KEY, null); in isChecked_SettingIsNotSet_returnFalse()
109 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0); in setChecked_true_SettingIsNot0()
116 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0); in setChecked_false_SettingIs0()
DControlsPrivacyPreferenceControllerTest.java53 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_SHOW_CONTROLS; field in ControlsPrivacyPreferenceControllerTest
82 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1); in isChecked_SettingIs1_returnTrue()
89 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0); in isChecked_SettingIs0_returnFalse()
96 Settings.Secure.putString(mContentResolver, SETTING_KEY, null); in isChecked_SettingIsNotSet_returnFalse()
105 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0); in setChecked_true_SettingIsNot0()
112 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0); in setChecked_false_SettingIs0()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DFakeSliderController.java30 private static final String SETTING_KEY = "fake_slider_key"; field in FakeSliderController
38 return Settings.System.getInt(mContext.getContentResolver(), SETTING_KEY, 0); in getSliderPosition()
43 return Settings.System.putInt(mContext.getContentResolver(), SETTING_KEY, position); in setSliderPosition()
DFakeToggleController.java34 private static final String SETTING_KEY = "toggle_key"; field in FakeToggleController
48 SETTING_KEY, OFF) == ON; in isChecked()
53 return Settings.System.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DFakeSliderController.java29 private static final String SETTING_KEY = "fake_slider_key"; field in FakeSliderController
37 return Settings.System.getInt(mContext.getContentResolver(), SETTING_KEY, 0); in getSliderPosition()
42 return Settings.System.putInt(mContext.getContentResolver(), SETTING_KEY, position); in setSliderPosition()
DFakeToggleController.java34 private static final String SETTING_KEY = "toggle_key"; field in FakeToggleController
48 SETTING_KEY, OFF) == ON; in isChecked()
53 return Settings.System.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()
/packages/apps/Settings/src/com/android/settings/display/
DControlsPrivacyPreferenceController.java36 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_SHOW_CONTROLS; field in ControlsPrivacyPreferenceController
44 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 0) != 0; in isChecked()
49 return Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()
DWalletPrivacyPreferenceController.java37 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_SHOW_WALLET; field in WalletPrivacyPreferenceController
47 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 0) != 0; in isChecked()
52 return Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()