/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | VibratorHelper.java | 81 if (!hasVibrator()) { in vibrate() 94 if (!hasVibrator()) { in vibrate() 104 if (!hasVibrator()) { in vibrate() 114 if (!hasVibrator()) { in vibrate() 124 if (!hasVibrator()) { in vibrate() 133 public boolean hasVibrator() { in hasVibrator() method in VibratorHelper 134 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator() 141 if (!hasVibrator()) { in cancel()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationVibrationHelperTest.java | 65 when(mMockVibrator.hasVibrator()).thenReturn(true); in edgeHapticSettingEnabled_vibrate() 75 when(mMockVibrator.hasVibrator()).thenReturn(true); in edgeHapticSettingDisabled_doNotVibrate() 85 when(mMockVibrator.hasVibrator()).thenReturn(false); in hasNoVibrator_doNotVibrate() 95 when(mMockVibrator.hasVibrator()).thenReturn(true); in notSupportVibrationEffect_vibrateOneShotEffect()
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | CombinedVibrationTest.java | 261 assertTrue(effect.hasVibrator(0)); in testHasVibratorMono_returnsTrueForAnyVibrator() 262 assertTrue(effect.hasVibrator(1)); in testHasVibratorMono_returnsTrueForAnyVibrator() 270 assertFalse(effect.hasVibrator(0)); in testHasVibratorStereo_returnsOnlyTheIdsSet() 271 assertTrue(effect.hasVibrator(1)); in testHasVibratorStereo_returnsOnlyTheIdsSet() 272 assertFalse(effect.hasVibrator(2)); in testHasVibratorStereo_returnsOnlyTheIdsSet() 283 assertFalse(effect.hasVibrator(0)); in testHasVibratorSequential_returnsNestedVibrators() 284 assertTrue(effect.hasVibrator(1)); in testHasVibratorSequential_returnsNestedVibrators() 285 assertTrue(effect.hasVibrator(2)); in testHasVibratorSequential_returnsNestedVibrators()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | VibratorHelperTest.kt | 45 whenever(vibrator.hasVibrator()).thenReturn(true) in setup() 106 assertThat(vibratorHelper.hasVibrator()).isTrue() in testHasVibrator() 107 verify(vibrator).hasVibrator() in testHasVibrator() 118 verify(vibrator).hasVibrator() in verifyAsync()
|
/frameworks/base/core/java/android/os/ |
D | NullVibrator.java | 35 public boolean hasVibrator() { in hasVibrator() method in NullVibrator
|
D | CombinedVibration.java | 153 public abstract boolean hasVibrator(int vibratorId); in hasVibrator() method in CombinedVibration 423 public boolean hasVibrator(int vibratorId) { in hasVibrator() method in CombinedVibration.Mono 604 public boolean hasVibrator(int vibratorId) { 831 public boolean hasVibrator(int vibratorId) { 834 if (mEffects.get(i).hasVibrator(vibratorId)) {
|
D | SystemVibratorManager.java | 219 public boolean hasVibrator() { in hasVibrator() method in SystemVibratorManager.SingleVibrator
|
D | SystemVibrator.java | 97 public boolean hasVibrator() { in hasVibrator() method in SystemVibrator
|
D | Vibrator.java | 211 public abstract boolean hasVibrator(); in hasVibrator() method in Vibrator
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/ |
D | EmptyVibrator.kt | 31 override fun hasVibrator(): Boolean = true in hasAmplitudeControl() method in com.android.systemui.haptics.EmptyVibrator
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | ShutdownThreadTest.java | 98 when(mVibratorMock.hasVibrator()).thenReturn(true); in setUp() 163 when(mVibratorMock.hasVibrator()).thenReturn(false); in testNoVibrator()
|
/frameworks/base/services/tests/vibrator/utils/android/os/test/ |
D | FakeVibrator.java | 41 public boolean hasVibrator() { in hasVibrator() method in FakeVibrator
|
/frameworks/native/include/input/ |
D | InputDevice.h | 326 inline void setVibrator(bool hasVibrator) { mHasVibrator = hasVibrator; } in setVibrator() argument 327 inline bool hasVibrator() const { return mHasVibrator; } in hasVibrator() function
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationVibrationHelper.java | 55 if (mVibrator != null && mVibrator.hasVibrator() && isEdgeHapticSettingEnabled()) { in vibrateIfSettingEnabled()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceVibrator.java | 90 public boolean hasVibrator() { in hasVibrator() method in InputDeviceVibrator
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 504 @Nullable String keyboardLayoutType, boolean hasVibrator, boolean hasMicrophone, in InputDevice() argument 529 mHasVibrator = hasVibrator; in InputDevice() 685 public Builder setHasVibrator(boolean hasVibrator) { in setHasVibrator() argument 686 mHasVibrator = hasVibrator; in setHasVibrator()
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 89 deviceInfo.hasVibrator(), deviceInfo.hasMic(), in android_view_InputDevice_create()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | InputDeviceDelegateTest.java | 330 private InputDevice createInputDevice(int id, boolean hasVibrator) { in createInputDevice() argument 335 .setHasVibrator(hasVibrator) in createInputDevice()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | BiometricsUnlockControllerTest.java | 151 when(mVibratorHelper.hasVibrator()).thenReturn(true); in setUp() 472 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_notInteractive_showLockScreen() 486 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_dreaming_showLockScreen()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | VolumeDialogController.java | 47 boolean hasVibrator(); in hasVibrator() method
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 730 mShowVibrate = mController.hasVibrator(); in initDimens() 897 final boolean hasVibrator = mController.hasVibrator(); in initRow() 899 if (hasVibrator) { in initRow() 1252 final boolean hasVibrator = mController.hasVibrator(); in initRingerH() 1254 if (hasVibrator) { in initRingerH() 1797 if (mController.hasVibrator()) { 1991 if (mController.hasVibrator()) {
|
D | VolumeDialogControllerImpl.java | 215 mHasVibrator = mVibrator.hasVibrator(); in VolumeDialogControllerImpl() 416 public boolean hasVibrator() { in hasVibrator() method in VolumeDialogControllerImpl
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | LegacyGlobalActions.java | 155 mHasVibrator = vibrator != null && vibrator.hasVibrator(); in LegacyGlobalActions()
|
/frameworks/base/core/java/com/android/internal/accessibility/ |
D | AccessibilityShortcutController.java | 254 if ((vibrator != null) && vibrator.hasVibrator()) { in performAccessibilityShortcut()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | BiometricUnlockController.java | 739 if (!mVibratorHelper.hasVibrator() && screenOff) { in onBiometricAuthFailed()
|