Home
last modified time | relevance | path

Searched refs:hasVibrator (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java81 if (!hasVibrator()) { in vibrate()
94 if (!hasVibrator()) { in vibrate()
104 if (!hasVibrator()) { in vibrate()
114 if (!hasVibrator()) { in vibrate()
123 public boolean hasVibrator() { in hasVibrator() method in VibratorHelper
124 return mVibrator != null && mVibrator.hasVibrator(); in hasVibrator()
131 if (!hasVibrator()) { in cancel()
/frameworks/base/core/tests/coretests/src/android/os/
DCombinedVibrationTest.java264 assertTrue(effect.hasVibrator(0)); in testHasVibratorMono_returnsTrueForAnyVibrator()
265 assertTrue(effect.hasVibrator(1)); in testHasVibratorMono_returnsTrueForAnyVibrator()
273 assertFalse(effect.hasVibrator(0)); in testHasVibratorStereo_returnsOnlyTheIdsSet()
274 assertTrue(effect.hasVibrator(1)); in testHasVibratorStereo_returnsOnlyTheIdsSet()
275 assertFalse(effect.hasVibrator(2)); in testHasVibratorStereo_returnsOnlyTheIdsSet()
286 assertFalse(effect.hasVibrator(0)); in testHasVibratorSequential_returnsNestedVibrators()
287 assertTrue(effect.hasVibrator(1)); in testHasVibratorSequential_returnsNestedVibrators()
288 assertTrue(effect.hasVibrator(2)); in testHasVibratorSequential_returnsNestedVibrators()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DVibratorHelperTest.kt45 whenever(vibrator.hasVibrator()).thenReturn(true) in setup()
94 assertThat(vibratorHelper.hasVibrator()).isTrue() in testHasVibrator()
95 verify(vibrator).hasVibrator() in testHasVibrator()
106 verify(vibrator).hasVibrator() in verifyAsync()
/frameworks/base/core/java/android/os/
DCombinedVibration.java131 public abstract boolean hasVibrator(int vibratorId); in hasVibrator() method in CombinedVibration
343 public boolean hasVibrator(int vibratorId) { in hasVibrator() method in CombinedVibration.Mono
475 public boolean hasVibrator(int vibratorId) {
651 public boolean hasVibrator(int vibratorId) {
654 if (mEffects.get(i).hasVibrator(vibratorId)) {
DNullVibrator.java35 public boolean hasVibrator() { in hasVibrator() method in NullVibrator
DSystemVibratorManager.java202 public boolean hasVibrator() { in hasVibrator() method in SystemVibratorManager.SingleVibrator
DVibrator.java201 public abstract boolean hasVibrator(); in hasVibrator() method in Vibrator
DSystemVibrator.java109 public boolean hasVibrator() { in hasVibrator() method in SystemVibrator
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DFakeVibrator.java33 public boolean hasVibrator() { in hasVibrator() method in FakeVibrator
DInputDeviceDelegateTest.java335 private InputDevice createInputDevice(int id, boolean hasVibrator) { in createInputDevice() argument
340 .setHasVibrator(hasVibrator) in createInputDevice()
/frameworks/native/include/input/
DInputDevice.h309 inline void setVibrator(bool hasVibrator) { mHasVibrator = hasVibrator; } in setVibrator() argument
310 inline bool hasVibrator() const { return mHasVibrator; } in hasVibrator() function
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DBiometricsUnlockControllerTest.java145 when(mVibratorHelper.hasVibrator()).thenReturn(true); in setUp()
445 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_notInteractive_showLockScreen()
461 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_notInteractive_showLockScreen_doNotListenOccludingApps()
477 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_dreaming_showLockScreen()
493 when(mVibratorHelper.hasVibrator()).thenReturn(false); in onFPFailureNoHaptics_dreaming_showLockScreen_doNotListeOccludingApps()
/frameworks/base/core/jni/
Dandroid_view_InputDevice.cpp90 deviceInfo.hasVibrator(), deviceInfo.hasMic(), in android_view_InputDevice_create()
/frameworks/base/core/java/android/view/
DInputDevice.java473 @Nullable String keyboardLayoutType, boolean hasVibrator, boolean hasMicrophone, in InputDevice() argument
497 mHasVibrator = hasVibrator; in InputDevice()
638 public Builder setHasVibrator(boolean hasVibrator) { in setHasVibrator() argument
639 mHasVibrator = hasVibrator; in setHasVibrator()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibrator.java90 public boolean hasVibrator() { in hasVibrator() method in InputDeviceVibrator
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java710 mShowVibrate = mController.hasVibrator(); in initDimens()
873 final boolean hasVibrator = mController.hasVibrator(); in initRow()
875 if (hasVibrator) { in initRow()
1213 final boolean hasVibrator = mController.hasVibrator(); in initRingerH()
1215 if (hasVibrator) { in initRingerH()
1745 if (mController.hasVibrator()) {
1964 if (mController.hasVibrator()) {
DVolumeDialogControllerImpl.java212 mHasVibrator = mVibrator.hasVibrator(); in VolumeDialogControllerImpl()
412 public boolean hasVibrator() { in hasVibrator() method in VolumeDialogControllerImpl
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialogController.java47 boolean hasVibrator(); in hasVibrator() method
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationStepConductor.java109 if (effect.hasVibrator(availableVibrators.keyAt(i))) { in VibrationStepConductor()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java243 if ((vibrator != null) && vibrator.hasVibrator()) { in performAccessibilityShortcut()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java706 if (vibrator.hasVibrator()) { in rebootOrShutdown()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java155 mHasVibrator = vibrator != null && vibrator.hasVibrator(); in LegacyGlobalActions()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java137 when(mVibrator.hasVibrator()).thenReturn(true); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java705 if (!mVibratorHelper.hasVibrator() && (screenOff || (mUpdateMonitor.isDreaming() in onBiometricAuthFailed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java418 mHasVibrator = vibrator.hasVibrator(); in GlobalActionsDialogLite()

12