Home
last modified time | relevance | path

Searched refs:hasVibrator (Results 1 – 25 of 36) 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()
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/
DFullScreenMagnificationVibrationHelperTest.java65 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/
DCombinedVibrationTest.java261 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/
DVibratorHelperTest.kt45 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/
DNullVibrator.java35 public boolean hasVibrator() { in hasVibrator() method in NullVibrator
DCombinedVibration.java153 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)) {
DSystemVibratorManager.java219 public boolean hasVibrator() { in hasVibrator() method in SystemVibratorManager.SingleVibrator
DSystemVibrator.java97 public boolean hasVibrator() { in hasVibrator() method in SystemVibrator
DVibrator.java211 public abstract boolean hasVibrator(); in hasVibrator() method in Vibrator
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/
DEmptyVibrator.kt31 override fun hasVibrator(): Boolean = true in hasAmplitudeControl() method in com.android.systemui.haptics.EmptyVibrator
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DShutdownThreadTest.java98 when(mVibratorMock.hasVibrator()).thenReturn(true); in setUp()
163 when(mVibratorMock.hasVibrator()).thenReturn(false); in testNoVibrator()
/frameworks/base/services/tests/vibrator/utils/android/os/test/
DFakeVibrator.java41 public boolean hasVibrator() { in hasVibrator() method in FakeVibrator
/frameworks/native/include/input/
DInputDevice.h326 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/
DFullScreenMagnificationVibrationHelper.java55 if (mVibrator != null && mVibrator.hasVibrator() && isEdgeHapticSettingEnabled()) { in vibrateIfSettingEnabled()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibrator.java90 public boolean hasVibrator() { in hasVibrator() method in InputDeviceVibrator
/frameworks/base/core/java/android/view/
DInputDevice.java504 @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/
Dandroid_view_InputDevice.cpp89 deviceInfo.hasVibrator(), deviceInfo.hasMic(), in android_view_InputDevice_create()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DInputDeviceDelegateTest.java330 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/
DBiometricsUnlockControllerTest.java151 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/
DVolumeDialogController.java47 boolean hasVibrator(); in hasVibrator() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java730 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()) {
DVolumeDialogControllerImpl.java215 mHasVibrator = mVibrator.hasVibrator(); in VolumeDialogControllerImpl()
416 public boolean hasVibrator() { in hasVibrator() method in VolumeDialogControllerImpl
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java155 mHasVibrator = vibrator != null && vibrator.hasVibrator(); in LegacyGlobalActions()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java254 if ((vibrator != null) && vibrator.hasVibrator()) { in performAccessibilityShortcut()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java739 if (!mVibratorHelper.hasVibrator() && screenOff) { in onBiometricAuthFailed()

12