Searched refs:updateSystemSetting (Results 1 – 1 of 1) sorted by relevance
117 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, OFF); in updateState_mainVibrateDisabled_shouldReturnFalseForCheckedAndEnabled()127 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in updateState_mainVibrateEnabled_shouldReturnTrueForEnabled()136 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in isChecked_keyboardVibrateEnabled_shouldReturnTrue()137 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, ON); in isChecked_keyboardVibrateEnabled_shouldReturnTrue()146 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in isChecked_keyboardVibrateDisabled_shouldReturnFalse()147 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, OFF); in isChecked_keyboardVibrateDisabled_shouldReturnFalse()157 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, OFF); in setChecked_checked_updateSettings()171 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, ON); in setChecked_unchecked_updateSettings()182 private void updateSystemSetting(String key, int value) { in updateSystemSetting() method in KeyboardVibrationTogglePreferenceControllerTest