/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | VibratorPerfTest.java | 37 private Vibrator mVibrator; field in VibratorPerfTest 42 mVibrator = context.getSystemService(Vibrator.class); in setUp() 49 mVibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in testEffectClick() 57 mVibrator.vibrate(VibrationEffect.createOneShot(SECONDS.toMillis(2), in testOneShot() 67 mVibrator.vibrate(VibrationEffect.createWaveform(timings, -1)); in testWaveform() 75 mVibrator.vibrate( in testCompose() 88 mVibrator.areEffectsSupported(effects); in testAreEffectsSupported() 98 mVibrator.arePrimitivesSupported(primitives); in testArePrimitivesSupported()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | VibratorHelperTest.java | 45 @Mock private Vibrator mVibrator; field in VibratorHelperTest 52 getContext().addMockSystemService(Vibrator.class, mVibrator); in setUp() 78 when(mVibrator.hasFrequencyControl()).thenReturn(false); in createVibration_insistent_createsRepeatingVibration() 82 when(mVibrator.hasFrequencyControl()).thenReturn(true); in createVibration_insistent_createsRepeatingVibration() 89 when(mVibrator.hasFrequencyControl()).thenReturn(false); in createVibration_nonInsistent_createsSingleShotVibration() 93 when(mVibrator.hasFrequencyControl()).thenReturn(true); in createVibration_nonInsistent_createsSingleShotVibration()
|
D | BuzzBeepBlinkTest.java | 106 @Mock Vibrator mVibrator; field in BuzzBeepBlinkTest 151 getContext().addMockSystemService(Vibrator.class, mVibrator); in setUp() 158 when(mVibrator.hasFrequencyControl()).thenReturn(false); in setUp() 420 verify(mVibrator, never()).vibrate(anyInt(), anyString(), any(), anyString(), in verifyNeverVibrate() 448 verify(mVibrator, verification).vibrate(eq(Process.SYSTEM_UID), in verifyVibrate() 458 verify(mVibrator, times(1)).cancel(eq(alarmClassUsageFilter)); in verifyStopVibrate() 462 verify(mVibrator, never()).cancel(); in verifyNeverStopVibrate() 463 verify(mVibrator, never()).cancel(anyInt()); in verifyNeverStopVibrate() 948 Mockito.reset(mVibrator); in testVibrateTwice() 1058 Mockito.reset(mVibrator); in testHonorAlertOnlyOnceForBuzz() [all …]
|
D | RankingHelperTest.java | 88 @Mock Vibrator mVibrator; field in RankingHelperTest 130 when(mContext.getSystemService(Vibrator.class)).thenReturn(mVibrator); in setUp()
|
D | NotificationComparatorTest.java | 67 @Mock Vibrator mVibrator; field in NotificationComparatorTest 103 when(mContext.getSystemService(Vibrator.class)).thenReturn(mVibrator); in setUp()
|
D | NotificationRecordTest.java | 94 @Mock private Vibrator mVibrator; field in NotificationRecordTest 126 when(mMockContext.getSystemService(eq(Vibrator.class))).thenReturn(mVibrator); in setUp()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | VibratorHelper.java | 43 private final Vibrator mVibrator; field in VibratorHelper 48 mVibrator = context.getSystemService(Vibrator.class); in VibratorHelper() 88 mVibrator.vibrate(Process.SYSTEM_UID, PackageManagerService.PLATFORM_PACKAGE_NAME, in vibrate() 96 mVibrator.cancel(usageFilter); in cancelVibration()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | NotifierTest.java | 74 @Mock private Vibrator mVibrator; field in NotifierTest 94 when(mContextSpy.getSystemService(Vibrator.class)).thenReturn(mVibrator); in setUp() 111 verify(mVibrator, times(1)).vibrate(any(), any()); in testVibrateEnabled_wiredCharging() 126 verify(mVibrator, never()).vibrate(any(), any()); in testVibrateDisabled_wiredCharging() 141 verify(mVibrator, times(1)).vibrate(any(), any()); in testVibrateEnabled_wirelessCharging() 156 verify(mVibrator, never()).vibrate(any(), any()); in testVibrateDisabled_wirelessCharging() 174 verify(mVibrator, never()).vibrate(any(), any()); in testVibrateEnabled_dndOn()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | VibratorHelper.java | 38 private final Vibrator mVibrator; field in VibratorHelper 59 mVibrator = context.getSystemService(Vibrator.class); in VibratorHelper() 70 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */), in vibrate()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 79 private Vibrator mVibrator; field in VibrationSettings 144 mVibrator = mContext.getSystemService(Vibrator.class); in onSystemReady() 239 if (mVibrator != null) { in getDefaultIntensity() 241 return mVibrator.getDefaultRingVibrationIntensity(); in getDefaultIntensity() 243 return mVibrator.getDefaultNotificationVibrationIntensity(); in getDefaultIntensity() 245 return mVibrator.getDefaultHapticFeedbackIntensity(); in getDefaultIntensity() 452 return mVibrator == null ? Float.NaN : mVibrator.getHapticChannelMaximumAmplitude(); in getHapticChannelMaxVibrationAmplitude()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | LockIconViewController.java | 101 @Nullable private final Vibrator mVibrator; field in LockIconViewController 150 mVibrator = vibrator; in LockIconViewController() 485 if (mVibrator != null) { 486 mVibrator.vibrate( 501 if (mVibrator != null) { 502 mVibrator.vibrate(
|
D | KeyguardUpdateMonitor.java | 289 @Nullable private final Vibrator mVibrator; field in KeyguardUpdateMonitor 1464 if (mAcquiredHapticEnabled && mVibrator != null) { in playAcquiredHaptic() 1465 mVibrator.vibrate(UdfpsController.EFFECT_CLICK, in playAcquiredHaptic() 1788 mVibrator = vibrator; in KeyguardUpdateMonitor()
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 82 private Vibrator mVibrator; // guarded by mMotionRanges during initialization field in InputDevice 820 if (mVibrator == null) { in getVibrator() 822 mVibrator = InputManager.getInstance().getInputDeviceVibrator(mId, in getVibrator() 825 mVibrator = NullVibrator.getInstance(); in getVibrator() 828 return mVibrator; in getVibrator()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 51 Vibrator mVibrator; field in NotificationTestList 76 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE); in onCreate() 852 mVibrator.vibrate(new long[] { 250, 1000, 500, 2000 }, -1); 859 mVibrator.vibrate(new long[] { 250, 1000, 500 }, 1); 866 mVibrator.vibrate(3000); 873 mVibrator.vibrate(100000); 880 mVibrator.cancel();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 84 private Vibrator mVibrator; field in VolumeDialogControllerImplTest 113 mNotificationManager, Optional.of(mVibrator), mIAudioService, mAccessibilityManager, in setup()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | AccessibilityShortcutControllerTest.java | 118 private @Mock Vibrator mVibrator; field in AccessibilityShortcutControllerTest 132 when(mVibrator.hasVibrator()).thenReturn(true); in setUp() 136 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator); in setUp() 318 verify(mVibrator).vibrate(aryEq(VIBRATOR_PATTERN_LONG), eq(-1), anyObject()); in testOnAccessibilityShortcut_vibrates()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsController.java | 119 @Nullable private final Vibrator mVibrator; field in UdfpsController 533 mVibrator = vibrator; in UdfpsController() 594 if (mVibrator != null) { in playStartHaptic() 595 mVibrator.vibrate( in playStartHaptic()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SlidingTab.java | 79 private Vibrator mVibrator; field in SlidingTab 841 if (mVibrator == null) { 842 mVibrator = (android.os.Vibrator) getContext() 845 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | UdfpsControllerTest.java | 137 private Vibrator mVibrator; field in UdfpsControllerTest 225 mVibrator, in setUp() 541 verify(mVibrator).vibrate( in playHapticOnTouchUdfpsArea()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 128 private final Vibrator mVibrator; field in Notifier 182 mVibrator = mContext.getSystemService(Vibrator.class); in Notifier() 782 mVibrator.vibrate(CHARGING_VIBRATION_EFFECT, VIBRATION_ATTRIBUTES); in playChargingStartedFeedback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImpl.java | 138 private final Optional<Vibrator> mVibrator; field in VolumeDialogControllerImpl 202 mVibrator = optionalVibrator; in VolumeDialogControllerImpl() 203 mHasVibrator = mVibrator.isPresent() && mVibrator.get().hasVibrator(); in VolumeDialogControllerImpl() 395 mVibrator.ifPresent( in vibrate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 143 private FakeVibrator mVibrator; field in VibratorManagerServiceTest 150 mVibrator = new FakeVibrator(); in setUp() 156 when(mContextSpy.getSystemService(eq(Context.VIBRATOR_SERVICE))).thenReturn(mVibrator); in setUp() 483 mVibrator.setDefaultRingVibrationIntensity(Vibrator.VIBRATION_INTENSITY_MEDIUM); 823 mVibrator.setDefaultNotificationVibrationIntensity(Vibrator.VIBRATION_INTENSITY_LOW);
|
/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/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 174 private Vibrator mVibrator; field in KeyguardUpdateMonitorTest 1054 mVibrator); in TestableKeyguardUpdateMonitor()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 376 Vibrator mVibrator; // Vibrator for giving feedback of orientation changes field in PhoneWindowManager 1791 mVibrator = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); in init() 5155 if (!mVibrator.hasVibrator()) { in performHapticFeedback() 5169 mVibrator.vibrate(uid, packageName, effect, reason, VIBRATION_ATTRIBUTES); in performHapticFeedback() 5210 if (mVibrator.areAllPrimitivesSupported( in getVibrationEffect()
|