/packages/apps/Nfc/src/com/android/nfc/ |
D | P2pEventManager.java | 38 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/ |
D | AudioAndHapticFeedbackManager.java | 36 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/ |
D | VibrateOnTouchPreferenceControllerTest.java | 55 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()
|
D | VibrationPreferenceControllerTest.java | 66 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()
|
D | NotificationVolumePreferenceControllerTest.java | 48 private Vibrator mVibrator; field in NotificationVolumePreferenceControllerTest 59 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); in setUp()
|
D | RingVolumePreferenceControllerTest.java | 49 private Vibrator mVibrator; field in RingVolumePreferenceControllerTest 64 shadowContext.setSystemService(Context.VIBRATOR_SERVICE, mVibrator); in setUp()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RingVolumePreferenceController.java | 45 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()
|
D | VibrationPreferenceController.java | 32 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/ |
D | RingVolumePreferenceController.java | 45 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()
|
D | VibrationPreferenceController.java | 32 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/ |
D | VibratorWrapper.java | 50 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/ |
D | Ringer.java | 143 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/ |
D | EmergencyTonePlayer.java | 53 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/ |
D | CellBroadcastAlertAudio.java | 129 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/ |
D | VibrationIntensityPreferenceController.java | 39 protected final Vibrator mVibrator; field in VibrationIntensityPreferenceController 49 mVibrator = mContext.getSystemService(Vibrator.class); in VibrationIntensityPreferenceController()
|
D | NotificationVibrationIntensityPreferenceController.java | 41 return mVibrator.getDefaultNotificationVibrationIntensity(); in getDefaultIntensity()
|
D | HapticFeedbackIntensityPreferenceController.java | 42 return mVibrator.getDefaultHapticFeedbackIntensity(); in getDefaultIntensity()
|
D | RingVibrationIntensityPreferenceController.java | 42 return mVibrator.getDefaultRingVibrationIntensity(); in getDefaultIntensity()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintEnrollEnrolling.java | 101 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/ |
D | FingerprintEnrollEnrolling.java | 102 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/ |
D | VibrationIntensityPreferenceController.java | 39 protected final Vibrator mVibrator; field in VibrationIntensityPreferenceController 50 mVibrator = mContext.getSystemService(Vibrator.class); in VibrationIntensityPreferenceController()
|
D | NotificationVibrationIntensityPreferenceController.java | 41 return mVibrator.getDefaultNotificationVibrationIntensity(); in getDefaultIntensity()
|
D | RingVibrationIntensityPreferenceController.java | 42 return mVibrator.getDefaultRingVibrationIntensity(); in getDefaultIntensity()
|
D | HapticFeedbackIntensityPreferenceController.java | 42 return mVibrator.getDefaultHapticFeedbackIntensity(); in getDefaultIntensity()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkAppService.java | 186 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()
|