/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | VibrationIntensityPreferenceControllerTest.java | 48 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 …]
|
D | VibrationTogglePreferenceControllerTest.java | 45 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/ |
D | LockscreenClockPreferenceControllerTest.java | 43 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()
|
D | QRCodeScannerPreferenceControllerTest.java | 41 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()
|
D | WalletPrivacyPreferenceControllerTest.java | 51 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()
|
D | ControlsPrivacyPreferenceControllerTest.java | 53 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()
|
D | ControlsTrivialPrivacyPreferenceControllerTest.java | 60 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/ |
D | TrackpadGoHomePreferenceControllerTest.java | 50 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
|
D | TrackpadGoBackPreferenceControllerTest.java | 50 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
|
D | TrackpadSwitchAppsPreferenceControllerTest.java | 50 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
|
D | TrackpadNotificationsPreferenceControllerTest.java | 50 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
|
D | TrackpadRecentAppsPreferenceControllerTest.java | 50 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
|
D | TrackpadTapToClickPreferenceControllerTest.java | 55 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
|
D | TrackpadReverseScrollingPreferenceControllerTest.java | 55 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
|
D | TrackpadBottomPreferenceControllerTest.java | 55 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/ |
D | FakeSliderController.java | 30 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()
|
D | FakeToggleController.java | 36 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/ |
D | FakeSliderController.java | 29 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()
|
D | FakeToggleController.java | 36 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/ |
D | TrackpadGoHomePreferenceController.java | 30 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
|
D | TrackpadGoBackPreferenceController.java | 30 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
|
D | TrackpadSwitchAppsPreferenceController.java | 30 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
|
D | TrackpadNotificationsPreferenceController.java | 30 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
|
D | TrackpadRecentAppsPreferenceController.java | 30 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/ |
D | LockscreenClockPreferenceController.java | 32 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()
|