Home
last modified time | relevance | path

Searched refs:mVibrator (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Nfc/src/com/android/nfc/
DP2pEventManager.java38 final Vibrator mVibrator; field in P2pEventManager
52 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in P2pEventManager()
87 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pNfcTapRequested()
104 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pSendConfirmationRequested()
115 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pSendComplete()
126 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pHandoverNotSupported()
136 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pHandoverBusy()
144 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pReceiveComplete()
200 mVibrator.vibrate(VIBRATION_PATTERN, -1); in onP2pResumeSend()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAudioAndHapticFeedbackManager.java36 private Vibrator mVibrator; field in AudioAndHapticFeedbackManager
58 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in initInternal()
68 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator()
72 if (mVibrator == null) { in vibrate()
75 mVibrator.vibrate(milliseconds); in vibrate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVibrateOnTouchPreferenceControllerTest.java55 private Vibrator mVibrator; field in VibrateOnTouchPreferenceControllerTest
63 when(mActivity.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); in setUp()
64 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); in setUp()
65 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
81 when(mVibrator.hasVibrator()).thenReturn(false); in isAvailable_noHaptic_shouldReturnFalse()
DVibrationPreferenceControllerTest.java66 private Vibrator mVibrator; field in VibrationPreferenceControllerTest
80 shadowApplication.setSystemService(Context.VIBRATOR_SERVICE, mVibrator); in setUp()
85 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
97 when(mVibrator.hasVibrator()).thenReturn(false); in testIsAvailable_notSystemDoesNotHave()
DNotificationVolumePreferenceControllerTest.java48 private Vibrator mVibrator; field in NotificationVolumePreferenceControllerTest
59 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); in setUp()
DRingVolumePreferenceControllerTest.java49 private Vibrator mVibrator; field in RingVolumePreferenceControllerTest
64 shadowContext.setSystemService(Context.VIBRATOR_SERVICE, mVibrator); in setUp()
/packages/apps/Settings/src/com/android/settings/notification/
DRingVolumePreferenceController.java45 private Vibrator mVibrator; field in RingVolumePreferenceController
59 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in RingVolumePreferenceController()
60 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
61 mVibrator = null; in RingVolumePreferenceController()
DVibrationPreferenceController.java32 private final Vibrator mVibrator; field in VibrationPreferenceController
36 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in VibrationPreferenceController()
51 && mVibrator != null in isAvailable()
52 && mVibrator.hasVibrator(); in isAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRingVolumePreferenceController.java45 private Vibrator mVibrator; field in RingVolumePreferenceController
59 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in RingVolumePreferenceController()
60 if (mVibrator != null && !mVibrator.hasVibrator()) { in RingVolumePreferenceController()
61 mVibrator = null; in RingVolumePreferenceController()
DVibrationPreferenceController.java32 private final Vibrator mVibrator; field in VibrationPreferenceController
36 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in VibrationPreferenceController()
51 && mVibrator != null in isAvailable()
52 && mVibrator.hasVibrator(); in isAvailable()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DVibratorWrapper.java50 private final Vibrator mVibrator; field in VibratorWrapper
56 mVibrator = context.getSystemService(Vibrator.class); in VibratorWrapper()
57 mHasVibrator = mVibrator.hasVibrator(); in VibratorWrapper()
81 UI_HELPER_EXECUTOR.execute(() -> mVibrator.vibrate(vibrationEffect)); in vibrate()
/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java143 private final Vibrator mVibrator; field in Ringer
191 mVibrator = vibrator; in Ringer()
371 mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES); in maybeStartVibration()
375 mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES); in maybeStartVibration()
453 mVibrator.cancel(); in stopRinging()
508 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled()
513 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context), in isVibratorEnabled()
521 if (!mVibrator.hasVibrator()) { in getVibrateWhenRinging()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java53 private final Vibrator mVibrator; field in EmergencyTonePlayer
62 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in EmergencyTonePlayer()
92 mVibrator.vibrate(VIBRATE_PATTERN, 0, VIBRATION_ATTRIBUTES); in startVibrate()
99 mVibrator.cancel(); in stopVibrate()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java129 private Vibrator mVibrator; field in CellBroadcastAlertAudio
204 mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); in onCreate()
441 mVibrator.vibrate(effect, attr); in playAlertTone()
603 mVibrator.cancel(); in stop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DVibrationIntensityPreferenceController.java39 protected final Vibrator mVibrator; field in VibrationIntensityPreferenceController
49 mVibrator = mContext.getSystemService(Vibrator.class); in VibrationIntensityPreferenceController()
DNotificationVibrationIntensityPreferenceController.java41 return mVibrator.getDefaultNotificationVibrationIntensity(); in getDefaultIntensity()
DHapticFeedbackIntensityPreferenceController.java42 return mVibrator.getDefaultHapticFeedbackIntensity(); in getDefaultIntensity()
DRingVibrationIntensityPreferenceController.java42 return mVibrator.getDefaultRingVibrationIntensity(); in getDefaultIntensity()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintEnrollEnrolling.java101 private Vibrator mVibrator; field in FingerprintEnrollEnrolling
138 mVibrator = getSystemService(Vibrator.class); in onCreate()
343 mVibrator.vibrate(VIBRATE_EFFECT_ERROR, FINGERPRINT_ENROLLING_SONFICATION_ATTRIBUTES); in showError()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrolling.java102 private Vibrator mVibrator; field in FingerprintEnrollEnrolling
139 mVibrator = getSystemService(Vibrator.class); in onCreate()
347 mVibrator.vibrate(VIBRATE_EFFECT_ERROR, FINGERPRINT_ENROLLING_SONFICATION_ATTRIBUTES); in showError()
/packages/apps/Settings/src/com/android/settings/accessibility/
DVibrationIntensityPreferenceController.java39 protected final Vibrator mVibrator; field in VibrationIntensityPreferenceController
50 mVibrator = mContext.getSystemService(Vibrator.class); in VibrationIntensityPreferenceController()
DNotificationVibrationIntensityPreferenceController.java41 return mVibrator.getDefaultNotificationVibrationIntensity(); in getDefaultIntensity()
DRingVibrationIntensityPreferenceController.java42 return mVibrator.getDefaultRingVibrationIntensity(); in getDefaultIntensity()
DHapticFeedbackIntensityPreferenceController.java42 return mVibrator.getDefaultHapticFeedbackIntensity(); in getDefaultIntensity()
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java186 private Vibrator mVibrator = null; field in StkAppService
2261 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); in playTone()
2273 mVibrator.vibrate(timeout); in playTone()
2320 if (mVibrator != null) { in handleStopTone()
2321 mVibrator.cancel(); in handleStopTone()
2322 mVibrator = null; in handleStopTone()

12