Home
last modified time | relevance | path

Searched refs:shouldVibrateForPowerMode (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationSettingsTest.java276 assertTrue(mVibrationSettings.shouldVibrateForPowerMode(VibrationAttributes.USAGE_ALARM)); in shouldVibrateForPowerMode_withLowPowerAndAllowedUsage_returnTrue()
277 assertTrue(mVibrationSettings.shouldVibrateForPowerMode( in shouldVibrateForPowerMode_withLowPowerAndAllowedUsage_returnTrue()
279 assertTrue(mVibrationSettings.shouldVibrateForPowerMode( in shouldVibrateForPowerMode_withLowPowerAndAllowedUsage_returnTrue()
287 assertTrue(mVibrationSettings.shouldVibrateForPowerMode(VibrationAttributes.USAGE_TOUCH)); in shouldVibrateForPowerMode_withRestrictedUsage_returnsFalseWhileInLowPowerMode()
288 assertTrue(mVibrationSettings.shouldVibrateForPowerMode( in shouldVibrateForPowerMode_withRestrictedUsage_returnsFalseWhileInLowPowerMode()
293 assertFalse(mVibrationSettings.shouldVibrateForPowerMode(VibrationAttributes.USAGE_TOUCH)); in shouldVibrateForPowerMode_withRestrictedUsage_returnsFalseWhileInLowPowerMode()
294 assertFalse(mVibrationSettings.shouldVibrateForPowerMode( in shouldVibrateForPowerMode_withRestrictedUsage_returnsFalseWhileInLowPowerMode()
/aosp12/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationSettings.java326 public boolean shouldVibrateForPowerMode(int usageHint) { in shouldVibrateForPowerMode() method in VibrationSettings
H A DVibratorManagerService.java473 if (inputDevicesChanged || !mVibrationSettings.shouldVibrateForPowerMode( in updateServiceState()
674 if (!mVibrationSettings.shouldVibrateForPowerMode(attrs.getUsage())) { in shouldIgnoreVibrationLocked()
/aosp12/frameworks/base/services/
H A Dart-profile42595 HPLcom/android/server/vibrator/VibrationSettings;->shouldVibrateForPowerMode(I)Z