Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVibrationIntensityPreferenceControllerTest.java48 private static final String SETTING_KEY = Settings.System.NOTIFICATION_VIBRATION_INTENSITY; field in VibrationIntensityPreferenceControllerTest
58 new VibrationPreferenceConfig(context, SETTING_KEY, VIBRATION_USAGE) {}, in TestPreferenceController()
86 Settings.System.putString(mContext.getContentResolver(), SETTING_KEY, /* value= */ null); in missingSetting_shouldReturnDefault() local
95 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_LOW); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates()
117 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
121 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
125 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_LOW); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
129 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_OFF); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
138 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_twoLevelsSupported_shouldDisplayMediumAndHighAtLastPosition()
142 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_twoLevelsSupported_shouldDisplayMediumAndHighAtLastPosition()
[all …]
DVibrationTogglePreferenceControllerTest.java45 private static final String SETTING_KEY = Settings.System.NOTIFICATION_VIBRATION_INTENSITY; field in VibrationTogglePreferenceControllerTest
55 new VibrationPreferenceConfig(context, SETTING_KEY, VIBRATION_USAGE) {}); in TestPreferenceController()
88 Settings.System.putString(mContext.getContentResolver(), SETTING_KEY, /* value= */ null); in missingSetting_shouldBeCheckedByDefault() local
95 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_LOW); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates()
115 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldUpdateToggleState()
119 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_OFF); in updateState_shouldUpdateToggleState()
123 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldUpdateToggleState()
127 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_OFF); in updateState_shouldUpdateToggleState()
131 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_LOW); in updateState_shouldUpdateToggleState()
138 updateSetting(SETTING_KEY, Vibrator.VIBRATION_INTENSITY_LOW); in setProgress_mainSwitchDisabled_ignoresUpdates()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DLockscreenClockPreferenceControllerTest.java43 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK; field in LockscreenClockPreferenceControllerTest
67 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1); in isChecked_SettingIs1_returnTrue()
77 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0); in isChecked_SettingIs0_returnFalse()
87 Settings.Secure.putString(mContentResolver, SETTING_KEY, null); in isChecked_SettingIsNotSet_returnTrue()
96 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0); in setChecked_true_SettingIsNot0()
103 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0); in setChecked_false_SettingIs0()
DQRCodeScannerPreferenceControllerTest.java41 private static final String SETTING_KEY = Settings.Secure.LOCK_SCREEN_SHOW_QR_CODE_SCANNER; field in QRCodeScannerPreferenceControllerTest
62 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1); in isChecked_SettingIs1_returnTrue()
69 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0); in isChecked_SettingIs0_returnFalse()
76 Settings.Secure.putString(mContentResolver, SETTING_KEY, null); in isChecked_SettingIsNotSet_returnFalse()
85 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0); in setChecked_true_SettingIsNot0()
92 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0); in setChecked_false_SettingIs0()
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()
DControlsTrivialPrivacyPreferenceControllerTest.java60 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_ALLOW_TRIVIAL_CONTROLS; field in ControlsTrivialPrivacyPreferenceControllerTest
91 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 1); in isCheckedWhenSettingIsTrue()
98 Settings.Secure.putInt(mContentResolver, SETTING_KEY, 0); in isCheckedWhenSettingIsFalse()
105 Settings.Secure.putString(mContentResolver, SETTING_KEY, null); in isCheckedWhenSettingIsNull()
114 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isNotEqualTo(0); in checkedMeansSettingIsTrue()
121 assertThat(Settings.Secure.getInt(mContentResolver, SETTING_KEY, 0)).isEqualTo(0); in uncheckedMeansSettingIsFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DTrackpadGoHomePreferenceControllerTest.java50 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_HOME_ENABLED; field in TrackpadGoHomePreferenceControllerTest
78 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_true_shouldReturn1()
91 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_false_shouldReturn0()
102 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 1); in isChecked_providerPutInt1_returnTrue() local
111 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 0); in isChecked_providerPutInt0_returnFalse() local
DTrackpadGoBackPreferenceControllerTest.java50 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_BACK_ENABLED; field in TrackpadGoBackPreferenceControllerTest
78 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_true_shouldReturn1()
91 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_false_shouldReturn0()
102 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 1); in isChecked_providerPutInt1_returnTrue() local
111 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 0); in isChecked_providerPutInt0_returnFalse() local
DTrackpadSwitchAppsPreferenceControllerTest.java50 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_QUICK_SWITCH_ENABLED; field in TrackpadSwitchAppsPreferenceControllerTest
78 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_true_shouldReturn1()
91 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_false_shouldReturn0()
102 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 1); in isChecked_providerPutInt1_returnTrue() local
111 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 0); in isChecked_providerPutInt0_returnFalse() local
DTrackpadNotificationsPreferenceControllerTest.java50 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_NOTIFICATION_ENABLED; field in TrackpadNotificationsPreferenceControllerTest
78 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_true_shouldReturn1()
91 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_false_shouldReturn0()
102 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 1); in isChecked_providerPutInt1_returnTrue() local
111 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 0); in isChecked_providerPutInt0_returnFalse() local
DTrackpadRecentAppsPreferenceControllerTest.java50 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_OVERVIEW_ENABLED; field in TrackpadRecentAppsPreferenceControllerTest
78 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_true_shouldReturn1()
91 int result = Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1); in setChecked_false_shouldReturn0()
102 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 1); in isChecked_providerPutInt1_returnTrue() local
111 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, 0); in isChecked_providerPutInt0_returnFalse() local
DTrackpadTapToClickPreferenceControllerTest.java55 private static final String SETTING_KEY = Settings.System.TOUCHPAD_TAP_TO_CLICK; field in TrackpadTapToClickPreferenceControllerTest
85 SETTING_KEY, in setChecked_true_shouldReturn1()
102 SETTING_KEY, in setChecked_false_shouldReturn0()
117 SETTING_KEY, in isChecked_providerPutInt1_returnTrue() local
130 SETTING_KEY, in isChecked_providerPutInt0_returnFalse() local
DTrackpadReverseScrollingPreferenceControllerTest.java55 private static final String SETTING_KEY = Settings.System.TOUCHPAD_NATURAL_SCROLLING; field in TrackpadReverseScrollingPreferenceControllerTest
85 SETTING_KEY, in setChecked_true_shouldReturn0()
102 SETTING_KEY, in setChecked_false_shouldReturn1()
117 SETTING_KEY, in isChecked_providerPutInt1_returnFalse() local
130 SETTING_KEY, in isChecked_providerPutInt0_returnTrue() local
DTrackpadBottomPreferenceControllerTest.java55 private static final String SETTING_KEY = Settings.System.TOUCHPAD_RIGHT_CLICK_ZONE; field in TrackpadBottomPreferenceControllerTest
85 SETTING_KEY, in setChecked_true_shouldReturn1()
102 SETTING_KEY, in setChecked_false_shouldReturn0()
117 SETTING_KEY, in isChecked_providerPutInt1_returnTrue() local
130 SETTING_KEY, in isChecked_providerPutInt0_returnFalse() local
/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.java36 private static final String SETTING_KEY = "toggle_key"; field in FakeToggleController
50 SETTING_KEY, OFF) == ON; in isChecked()
55 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.java36 private static final String SETTING_KEY = "toggle_key"; field in FakeToggleController
50 SETTING_KEY, OFF) == ON; in isChecked()
55 return Settings.System.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DTrackpadGoHomePreferenceController.java30 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_HOME_ENABLED; field in TrackpadGoHomePreferenceController
41 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0; in isChecked()
46 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, isChecked ? 1 : 0); in setChecked() local
DTrackpadGoBackPreferenceController.java30 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_BACK_ENABLED; field in TrackpadGoBackPreferenceController
41 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0; in isChecked()
46 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, isChecked ? 1 : 0); in setChecked() local
DTrackpadSwitchAppsPreferenceController.java30 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_QUICK_SWITCH_ENABLED; field in TrackpadSwitchAppsPreferenceController
41 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0; in isChecked()
46 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, isChecked ? 1 : 0); in setChecked() local
DTrackpadNotificationsPreferenceController.java30 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_NOTIFICATION_ENABLED; field in TrackpadNotificationsPreferenceController
41 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0; in isChecked()
46 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, isChecked ? 1 : 0); in setChecked() local
DTrackpadRecentAppsPreferenceController.java30 private static final String SETTING_KEY = Settings.Secure.TRACKPAD_GESTURE_OVERVIEW_ENABLED; field in TrackpadRecentAppsPreferenceController
41 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, 1) != 0; in isChecked()
46 Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, isChecked ? 1 : 0); in setChecked() local
/packages/apps/Settings/src/com/android/settings/display/
DLockscreenClockPreferenceController.java32 private static final String SETTING_KEY = Settings.Secure.LOCKSCREEN_USE_DOUBLE_LINE_CLOCK; field in LockscreenClockPreferenceController
40 return Settings.Secure.getInt(mContext.getContentResolver(), SETTING_KEY, in isChecked()
46 return Settings.Secure.putInt(mContext.getContentResolver(), SETTING_KEY, in setChecked()

12