/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
D | HapticFeedbackController.java | 26 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/ |
D | BuzzBeepBlinkTest.java | 51 @Mock Vibrator mVibrator; field in BuzzBeepBlinkTest 76 mService.setVibrator(mVibrator); in setUp() 190 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyNeverVibrate() 195 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrate() 200 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), (long[]) anyObject(), in verifyVibrateLooped() 205 verify(mVibrator, times(1)).cancel(); in verifyStopVibrate() 209 verify(mVibrator, never()).cancel(); in verifyNeverStopVibrate() 421 Mockito.reset(mVibrator); in testVibratTwice() 437 Mockito.reset(mVibrator); in testHonorAlertOnlyOnceForBuzz() 477 Mockito.reset(mVibrator); in testQuietUpdateDoesNotCancelVibrateFromOther() [all …]
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 63 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/ |
D | RotarySelector.java | 117 private Vibrator mVibrator; field in RotarySelector 683 if (mVibrator == null) { 684 mVibrator = (android.os.Vibrator) getContext() 687 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
|
D | SlidingTab.java | 78 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/ |
D | NotificationTestList.java | 48 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/ |
D | VolumeDialogController.java | 96 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/ |
D | MLand.java | 138 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/ |
D | NotificationManagerService.java | 233 Vibrator mVibrator; field in NotificationManagerService 506 mVibrator.cancel(); 663 mVibrator.cancel(); in clearVibrateLocked() 902 mVibrator = vibrator; in setVibrator() 930 mVibrator = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); in onStart() 2913 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), in buzzBeepBlinkLocked() 2925 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), in buzzBeepBlinkLocked() 3337 mVibrator.cancel(); in cancelNotificationLocked()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 324 Vibrator mVibrator; // Vibrator for giving feedback of orientation changes field in PhoneWindowManager 1753 mVibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); in init() 7332 if (!mVibrator.hasVibrator()) { in performHapticFeedbackLw() 7380 mVibrator.vibrate(owningUid, owningPackage, pattern[0], VIBRATION_ATTRIBUTES); in performHapticFeedbackLw() 7383 mVibrator.vibrate(owningUid, owningPackage, pattern, -1, VIBRATION_ATTRIBUTES); in performHapticFeedbackLw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBar.java | 547 private Vibrator mVibrator; field in PhoneStatusBar 970 mVibrator = mContext.getSystemService(Vibrator.class); in makeStatusBarView() 4774 mVibrator.vibrate(new long[]{0, 400}, -1 /* repeat */); in vibrateForCameraGesture()
|