Home
last modified time | relevance | path

Searched refs:applyEffectStrength (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A DPrebakedSegmentTest.java91 PrebakedSegment light = medium.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT); in testApplyEffectStrength()
97 PrebakedSegment strong = medium.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG); in testApplyEffectStrength()
103 assertSame(medium, medium.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_MEDIUM)); in testApplyEffectStrength()
105 assertSame(medium, medium.applyEffectStrength(1000)); in testApplyEffectStrength()
H A DPrimitiveSegmentTest.java93 primitive.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG)); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
H A DStepSegmentTest.java114 assertSame(step, step.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG)); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
H A DRampSegmentTest.java116 assertSame(ramp, ramp.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG)); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationScaler.java113 effect = effect.applyEffectStrength(newEffectStrength).resolve(mDefaultVibrationAmplitude); in scale()
143 return prebaked.applyEffectStrength(newEffectStrength); in scale()
/aosp14/frameworks/base/core/java/android/os/vibrator/
H A DVibrationEffectSegment.java123 public abstract <T extends VibrationEffectSegment> T applyEffectStrength(int effectStrength); in applyEffectStrength() method in VibrationEffectSegment
H A DPrimitiveSegment.java108 public PrimitiveSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() method in PrimitiveSegment
H A DStepSegment.java150 public StepSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() method in StepSegment
H A DPrebakedSegment.java138 public PrebakedSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() method in PrebakedSegment
H A DRampSegment.java168 public RampSegment applyEffectStrength(int effectStrength) { in applyEffectStrength() method in RampSegment
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DVibrationEffectTest.java680 VibrationEffect.Composed applied = DEFAULT_ONE_SHOT.applyEffectStrength( in testApplyEffectStrengthOneShot()
687 VibrationEffect.Composed applied = TEST_WAVEFORM.applyEffectStrength( in testApplyEffectStrengthWaveform()
695 .applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT); in testApplyEffectStrengthPrebaked()
705 assertEquals(effect, effect.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT)); in testApplyEffectStrengthComposed()
710 .applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT); in testApplyEffectStrengthComposed()
/aosp14/frameworks/base/core/java/android/os/
H A DVibrationEffect.java576 public <T extends VibrationEffect> T applyEffectStrength(int effectStrength) { in applyEffectStrength() method in VibrationEffect
848 public Composed applyEffectStrength(int effectStrength) { in applyEffectStrength() method in VibrationEffect.Composed
852 scaledSegments.add(mSegments.get(i).applyEffectStrength(effectStrength)); in applyEffectStrength()