Home
last modified time | relevance | path

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

/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/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt109 val hasVibrator: Boolean = (it.getContext() in onCreatePreferences() constant
110 .getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in onCreatePreferences()
111 it.setVisible(hasVibrator) in onCreatePreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVibrateOnTouchPreferenceControllerTest.java65 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
81 when(mVibrator.hasVibrator()).thenReturn(false); in isAvailable_noHaptic_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DGameControllerPreferenceControllerTest.java82 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(true); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable()
92 when(mInputDevice.getVibrator().hasVibrator()).thenReturn(false); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled()
/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/services/Telecomm/src/com/android/server/telecom/
DRinger.java488 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled()
493 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled()
501 if (!mVibrator.hasVibrator()) { in getVibrateWhenRinging()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DVibrationPreferenceControllerTest.java90 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
102 when(mVibrator.hasVibrator()).thenReturn(false); in testIsAvailable_notSystemDoesNotHave()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DCheckers.java37 assertThat(v.hasVibrator()).isTrue(); in checkVibratorSupported()
DAtomTests.java539 if (vib.hasVibrator()) { in testVibratorState()
/packages/apps/Settings/src/com/android/settings/notification/
DVibrateOnTouchPreferenceController.java47 return vibrator != null && vibrator.hasVibrator(); in hasHaptic()
DRingVolumePreferenceController.java60 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
/packages/apps/Settings/src/com/android/settings/notification/app/
DVibrationPreferenceController.java55 && mVibrator.hasVibrator(); in isAvailable()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DVibratorWrapper.java57 mHasVibrator = mVibrator.hasVibrator(); in VibratorWrapper()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DGameControllerPreferenceController.java74 if (device != null && !device.isVirtual() && device.getVibrator().hasVibrator()) { in getAvailabilityStatus()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java442 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationWhenRinging()
447 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationOnlyWhenNotRinging()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.kt91 if (v.hasVibrator()) { in setAlarmVibrationEnabled()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java161 if (vibrator == null || !vibrator.hasVibrator()) { in onCreate()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java692 boolean supportVibration = (vibrator != null) && vibrator.hasVibrator(); in updatePreferenceVisibility()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.kt489 (context.getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in <lambda>()