Home
last modified time | relevance | path

Searched refs:hasVibrator (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/app/settings/
DSoundSettingsFragment.java97 if (hasVibrator()) { in onCreate()
216 return hasVibrator() && (vibrateWhenRingingSetting == DO_VIBRATION_FOR_CALLS); in shouldVibrateWhenRinging()
230 private boolean hasVibrator() { in hasVibrator() method in SoundSettingsFragment
232 return vibrator != null && vibrator.hasVibrator(); in hasVibrator()
/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java259 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in shouldVibrate()
264 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in shouldVibrate()
272 if (!mVibrator.hasVibrator()) { in getVibrateWhenRinging()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.java140 final boolean hasVibrator = ((Vibrator) timerVibrate.getContext() in onCreatePreferences()
141 .getSystemService(VIBRATOR_SERVICE)).hasVibrator(); in onCreatePreferences()
142 timerVibrate.setVisible(hasVibrator); in onCreatePreferences()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAudioAndHapticFeedbackManager.java67 public boolean hasVibrator() { in hasVibrator() method in AudioAndHapticFeedbackManager
68 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java212 final boolean hasVibrator = AudioAndHapticFeedbackManager.getInstance().hasVibrator(); in readVibrationEnabled()
213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled()
DPreferencesSettingsFragment.java64 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
DAdvancedSettingsFragment.java63 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DGameControllerPreferenceControllerTest.java82 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(true); in testIsAvailable_hasDeviceWithVibrator_shouldReturnTrue()
92 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(false); in testIsAvailable_hasNoVibratingDevice_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVibrateOnTouchPreferenceControllerTest.java68 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
85 when(mVibrator.hasVibrator()).thenReturn(false); in isAvailable_noHaptic_shouldReturnFalse()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java74 private ExpandedAlarmViewHolder(View itemView, boolean hasVibrator) { in ExpandedAlarmViewHolder() argument
77 mHasVibrator = hasVibrator; in ExpandedAlarmViewHolder()
522 mHasVibrator = ((Vibrator) context.getSystemService(VIBRATOR_SERVICE)).hasVibrator(); in Factory()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java216 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationWhenRinging()
221 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationOnlyWhenNotRinging()
/packages/apps/Settings/src/com/android/settings/notification/
DVibrateOnTouchPreferenceController.java46 return vibrator != null && vibrator.hasVibrator(); in hasHaptic()
DRingVolumePreferenceController.java65 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DGameControllerPreferenceController.java79 if (device != null && !device.isVirtual() && device.getVibrator().hasVibrator()) { in isAvailable()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.java98 if (v.hasVibrator()) { in setAlarmVibrationEnabled()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java162 if (vibrator == null || !vibrator.hasVibrator()) { in onCreate()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java820 if (vibrator.hasVibrator()) { in loadSettings()
/packages/services/Car/car-support-lib/
Dproguard-release.flags5099 public abstract boolean hasVibrator();