/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
H A D | HapticFeedbackController.java | 29 private Vibrator mVibrator; field in class:HapticFeedbackController 47 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE); 59 mVibrator = null; 68 if (mVibrator != null && mIsGloballyEnabled) { 72 mVibrator.vibrate(VIBRATE_LENGTH_MS);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | VibratorHelper.java | 31 private final Vibrator mVibrator; field in class:VibratorHelper 49 mVibrator = context.getSystemService(Vibrator.class); 60 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */),
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | BuzzBeepBlinkTest.java | 84 @Mock Vibrator mVibrator; field in class:BuzzBeepBlinkTest 144 mService.setVibrator(mVibrator); 345 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (VibrationEffect) anyObject(), 350 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), argThat(mVibrateOnceMatcher), 355 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), argThat(mVibrateLoopMatcher), 360 verify(mVibrator, timeout(MAX_VIBRATION_DELAY).times(1)).vibrate(anyInt(), anyString(), 365 verify(mVibrator, times(1)).cancel(); 369 verify(mVibrator, never()).cancel(); 605 verify(mVibrator, timeout(MAX_VIBRATION_DELAY).times(1)).vibrate(anyInt(), anyString(), 639 verify(mVibrator, timeou [all...] |
/frameworks/base/core/java/android/view/ |
H A D | InputDevice.java | 65 private Vibrator mVibrator; // guarded by mMotionRanges during initialization field in class:InputDevice 761 if (mVibrator == null) { 763 mVibrator = InputManager.getInstance().getInputDeviceVibrator(mId); 765 mVibrator = NullVibrator.getInstance(); 768 return mVibrator;
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | NotificationTestList.java | 56 Vibrator mVibrator; field in class:NotificationTestList 81 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); 856 mVibrator.vibrate(new long[] { 250, 1000, 500, 2000 }, -1); 863 mVibrator.vibrate(new long[] { 250, 1000, 500 }, 1); 870 mVibrator.vibrate(3000); 877 mVibrator.vibrate(100000); 884 mVibrator.cancel();
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
H A D | AccessibilityShortcutControllerTest.java | 102 private @Mock Vibrator mVibrator; field in class:AccessibilityShortcutControllerTest 113 when(mVibrator.hasVibrator()).thenReturn(true); 117 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); 295 verify(mVibrator).vibrate(aryEq(VIBRATOR_PATTERN_LONG), eq(-1), anyObject());
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | VibratorService.java | 124 private Vibrator mVibrator; field in class:VibratorService 371 mVibrator = mContext.getSystemService(Vibrator.class); 727 defaultIntensity = mVibrator.getDefaultNotificationVibrationIntensity(); 729 defaultIntensity = mVibrator.getDefaultHapticFeedbackIntensity(); 885 mVibrator.getDefaultHapticFeedbackIntensity(), UserHandle.USER_CURRENT); 888 mVibrator.getDefaultNotificationVibrationIntensity(), UserHandle.USER_CURRENT);
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | Notifier.java | 120 private final Vibrator mVibrator; field in class:Notifier 167 mVibrator = mContext.getSystemService(Vibrator.class); 777 mVibrator.vibrate(WIRELESS_CHARGING_VIBRATION_EFFECT, VIBRATION_ATTRIBUTES);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SlidingTab.java | 78 private Vibrator mVibrator; field in class:SlidingTab 828 if (mVibrator == null) { 829 mVibrator = (android.os.Vibrator) getContext() 832 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialogControllerImpl.java | 118 private final Vibrator mVibrator; field in class:VolumeDialogControllerImpl 149 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); 150 mHasVibrator = mVibrator != null && mVibrator.hasVibrator(); 330 mVibrator.vibrate(effect, SONIFICIATION_VIBRATION_ATTRIBUTES);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 138 private Vibrator mVibrator; field in class:MLand 193 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); 384 mVibrator.vibrate(ms, mAudioAttrs);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationManagerService.java | 315 Vibrator mVibrator; field in class:NotificationManagerService 679 mVibrator.cancel(); 932 mVibrator.cancel(); 1246 mVibrator = vibrator; 1374 mVibrator = (Vibrator) getContext().getSystemService(Context.VIBRATOR_SERVICE); 4937 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), 4941 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(), 5459 mVibrator.cancel();
|
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 461 private Vibrator mVibrator; field in class:AudioService 726 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); 727 mHasVibrator = mVibrator == null ? false : mVibrator.hasVibrator(); 2571 mVibrator.vibrate(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBar.java | 536 private Vibrator mVibrator; field in class:StatusBar 1035 mVibrator = mContext.getSystemService(Vibrator.class); 4553 mVibrator.vibrate(mCameraLaunchGestureVibePattern, -1 /* repeat */);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | PhoneWindowManager.java | 466 Vibrator mVibrator; // Vibrator for giving feedback of orientation changes field in class:PhoneWindowManager 2253 mVibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); 8043 if (!mVibrator.hasVibrator()) { 8066 mVibrator.vibrate(owningUid, owningPackage, effect, VIBRATION_ATTRIBUTES);
|