/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 110 val hasVibrator: Boolean = (it.getContext() in onCreatePreferences() constant 111 .getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in onCreatePreferences() 112 it.setVisible(hasVibrator) in onCreatePreferences()
|
D | SettingsActivity.java | 140 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/ |
D | AudioAndHapticFeedbackManager.java | 67 public boolean hasVibrator() { in hasVibrator() method in AudioAndHapticFeedbackManager 68 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VibrateOnTouchPreferenceControllerTest.java | 65 when(mVibrator.hasVibrator()).thenReturn(true); in setUp() 81 when(mVibrator.hasVibrator()).thenReturn(false); in isAvailable_noHaptic_shouldReturnFalse()
|
D | VibrationPreferenceControllerTest.java | 85 when(mVibrator.hasVibrator()).thenReturn(true); in setUp() 97 when(mVibrator.hasVibrator()).thenReturn(false); in testIsAvailable_notSystemDoesNotHave()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceControllerTest.java | 82 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/ |
D | Settings.java | 212 final boolean hasVibrator = AudioAndHapticFeedbackManager.getInstance().hasVibrator(); in readVibrationEnabled() 213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled()
|
D | PreferencesSettingsFragment.java | 64 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
|
D | AdvancedSettingsFragment.java | 63 if (!AudioAndHapticFeedbackManager.getInstance().hasVibrator()) { in onCreate()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 508 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled() 513 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled() 521 if (!mVibrator.hasVibrator()) { in getVibrateWhenRinging()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.java | 74 private ExpandedAlarmViewHolder(View itemView, boolean hasVibrator) { in ExpandedAlarmViewHolder() argument 77 mHasVibrator = hasVibrator; in ExpandedAlarmViewHolder() 522 mHasVibrator = ((Vibrator) context.getSystemService(VIBRATOR_SERVICE)).hasVibrator(); in Factory()
|
D | ExpandedAlarmViewHolder.kt | 489 (context.getSystemService(VIBRATOR_SERVICE) as Vibrator).hasVibrator() in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | VibrateOnTouchPreferenceController.java | 47 return vibrator != null && vibrator.hasVibrator(); in hasHaptic()
|
D | VibrationPreferenceController.java | 52 && mVibrator.hasVibrator(); in isAvailable()
|
D | RingVolumePreferenceController.java | 60 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | VibrateOnTouchPreferenceController.java | 47 return vibrator != null && vibrator.hasVibrator(); in hasHaptic()
|
D | VibrationPreferenceController.java | 52 && mVibrator.hasVibrator(); in isAvailable()
|
D | RingVolumePreferenceController.java | 60 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | VibratorWrapper.java | 57 mHasVibrator = mVibrator.hasVibrator(); in VibratorWrapper()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | GameControllerPreferenceController.java | 74 if (device != null && !device.isVirtual() && device.getVibrator().hasVibrator()) { in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceController.java | 74 if (device != null && !device.isVirtual() && device.getVibrator().hasVibrator()) { in getAvailabilityStatus()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | RingerTest.java | 433 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationWhenRinging() 438 when(mockVibrator.hasVibrator()).thenReturn(true); in enableVibrationOnlyWhenNotRinging()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.kt | 92 if (v.hasVibrator()) { in setAlarmVibrationEnabled()
|
D | AlarmTimeClickHandler.java | 98 if (v.hasVibrator()) { in setAlarmVibrationEnabled()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 161 if (vibrator == null || !vibrator.hasVibrator()) { in onCreate()
|