Home
last modified time | relevance | path

Searched refs:mVibratePref (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceControllerTest.java61 mController.mVibratePref = new SelectorWithWidgetPreference(mContext); in setUp()
86 assertThat(mController.mVibratePref.isEnabled()).isTrue(); in testUpdateState_mute()
88 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_mute()
97 assertThat(mController.mVibratePref.isEnabled()).isTrue(); in testUpdateState_vibrate()
99 assertThat(mController.mVibratePref.isChecked()).isTrue(); in testUpdateState_vibrate()
108 assertThat(mController.mVibratePref.isEnabled()).isFalse(); in testUpdateState_off()
110 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_off()
119 assertThat(mController.mVibratePref.isChecked()).isFalse(); in testUpdateState_other()
/packages/apps/Settings/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceController.java57 SelectorWithWidgetPreference mVibratePref; field in PreventRingingGesturePreferenceController
79 mVibratePref = makeRadioPreference(KEY_VIBRATE, R.string.prevent_ringing_option_vibrate); in displayPreference()
118 if (mVibratePref != null && mVibratePref.isChecked() != isVibrate) { in updateState()
119 mVibratePref.setChecked(isVibrate); in updateState()
126 mVibratePref.setEnabled(false); in updateState()
129 mVibratePref.setEnabled(true); in updateState()