Home
last modified time | relevance | path

Searched refs:getEffectStrength (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationScalerTest.java192 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_STRONG); in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
197 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_MEDIUM); in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
201 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_LIGHT); in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
206 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_MEDIUM); in scale_withPrebakedSegment_setsEffectStrengthBasedOnSettings()
217 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_STRONG); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
222 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_MEDIUM); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
226 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_LIGHT); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
231 assertEquals(scaled.getEffectStrength(), VibrationEffect.EFFECT_STRENGTH_LIGHT); in scale_withPrebakedEffect_setsEffectStrengthBasedOnSettings()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java145 int newEffectStrength = getEffectStrength(usageHint); in scale()
188 return prebaked.applyEffectStrength(getEffectStrength(usageHint)); in scale()
258 private int getEffectStrength(int usageHint) { in getEffectStrength() method in VibrationScaler
DVibratorController.java227 prebaked.getEffectStrength()); in updateAlwaysOn()
276 prebaked.getEffectStrength(), vibrationId); in on()
DVibration.java446 proto.write(PrebakedSegmentProto.EFFECT_STRENGTH, segment.getEffectStrength()); in dumpEffect()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DPrebakedSegmentTest.java45 assertEquals(VibrationEffect.EFFECT_STRENGTH_MEDIUM, prebaked.getEffectStrength()); in testCreation()
88 assertEquals(VibrationEffect.EFFECT_STRENGTH_LIGHT, light.getEffectStrength()); in testApplyEffectStrength()
94 assertEquals(VibrationEffect.EFFECT_STRENGTH_STRONG, strong.getEffectStrength()); in testApplyEffectStrength()
/frameworks/base/core/java/android/os/vibrator/
DPrebakedSegment.java65 public int getEffectStrength() { in getEffectStrength() method in PrebakedSegment
/frameworks/base/core/api/
Dtest-current.txt2708 method public int getEffectStrength();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt39489 Landroid/os/VibrationEffect$Prebaked;->getEffectStrength()I