Home
last modified time | relevance | path

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

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
DHapticFeedbackController.java26 private Vibrator mVibrator; field in HapticFeedbackController
44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE); in start()
56 mVibrator = null; in stop()
65 if (mVibrator != null && mIsGloballyEnabled) { in tryVibrate()
69 mVibrator.vibrate(VIBRATE_LENGTH_MS); in tryVibrate()
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java51 @Mock Vibrator mVibrator; field in BuzzBeepBlinkTest
76 mService.setVibrator(mVibrator); in setUp()
189 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyNeverVibrate()
194 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrate()
199 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrateLooped()
204 verify(mVibrator, times(1)).cancel(); in verifyStopVibrate()
208 verify(mVibrator, never()).cancel(); in verifyNeverStopVibrate()
420 Mockito.reset(mVibrator); in testVibratTwice()
436 Mockito.reset(mVibrator); in testHonorAlertOnlyOnceForBuzz()
476 Mockito.reset(mVibrator); in testQuietUpdateDoesNotCancelVibrateFromOther()
[all …]
/frameworks/base/core/java/android/view/
DInputDevice.java63 private Vibrator mVibrator; // guarded by mMotionRanges during initialization field in InputDevice
749 if (mVibrator == null) { in getVibrator()
751 mVibrator = InputManager.getInstance().getInputDeviceVibrator(mId); in getVibrator()
753 mVibrator = NullVibrator.getInstance(); in getVibrator()
756 return mVibrator; in getVibrator()
/frameworks/base/core/java/com/android/internal/widget/
DRotarySelector.java117 private Vibrator mVibrator; field in RotarySelector
683 if (mVibrator == null) {
684 mVibrator = (android.os.Vibrator) getContext()
687 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
DSlidingTab.java78 private Vibrator mVibrator; field in SlidingTab
828 if (mVibrator == null) {
829 mVibrator = (android.os.Vibrator) getContext()
832 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java48 Vibrator mVibrator; field in NotificationTestList
73 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); in onCreate()
869 mVibrator.vibrate(new long[] { 250, 1000, 500, 2000 }, -1);
876 mVibrator.vibrate(new long[] { 250, 1000, 500 }, 1);
883 mVibrator.vibrate(3000);
890 mVibrator.vibrate(100000);
897 mVibrator.cancel();
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogController.java96 private final Vibrator mVibrator; field in VolumeDialogController
119 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in VolumeDialogController()
120 mHasVibrator = mVibrator != null && mVibrator.hasVibrator(); in VolumeDialogController()
243 mVibrator.vibrate(VIBRATE_HINT_DURATION); in vibrate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java138 private Vibrator mVibrator; field in MLand
193 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); in MLand()
384 mVibrator.vibrate(ms, mAudioAttrs); in thump()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java233 Vibrator mVibrator; field in NotificationManagerService
505 mVibrator.cancel();
662 mVibrator.cancel(); in clearVibrateLocked()
893 mVibrator = vibrator; in setVibrator()
916 mVibrator = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); in onStart()
2895 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), in buzzBeepBlinkLocked()
2907 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), in buzzBeepBlinkLocked()
3309 mVibrator.cancel(); in cancelNotificationLocked()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java318 Vibrator mVibrator; // Vibrator for giving feedback of orientation changes field in PhoneWindowManager
1737 mVibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); in init()
7170 if (!mVibrator.hasVibrator()) { in performHapticFeedbackLw()
7218 mVibrator.vibrate(owningUid, owningPackage, pattern[0], VIBRATION_ATTRIBUTES); in performHapticFeedbackLw()
7221 mVibrator.vibrate(owningUid, owningPackage, pattern, -1, VIBRATION_ATTRIBUTES); in performHapticFeedbackLw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java537 private Vibrator mVibrator; field in PhoneStatusBar
930 mVibrator = mContext.getSystemService(Vibrator.class); in makeStatusBarView()
4600 mVibrator.vibrate(new long[]{0, 750L}, -1 /* repeat */); in vibrateForCameraGesture()