Home
last modified time | relevance | path

Searched refs:getStartAmplitude (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DRampSegmentTest.java47 assertEquals(1f, ramp.getStartAmplitude()); in testCreation()
103 assertEquals(0f, initial.scale(1).getStartAmplitude(), TOLERANCE); in testScale()
104 assertEquals(0f, initial.scale(0.5f).getStartAmplitude(), TOLERANCE); in testScale()
105 assertEquals(0f, initial.scale(1.5f).getStartAmplitude(), TOLERANCE); in testScale()
106 assertEquals(0f, initial.scale(1.5f).scale(2 / 3f).getStartAmplitude(), TOLERANCE); in testScale()
107 assertEquals(0f, initial.scale(0.8f).scale(1.25f).getStartAmplitude(), TOLERANCE); in testScale()
123 assertEquals(0.5f, initial.scale(1).getStartAmplitude(), TOLERANCE); in testScale_halfPrimitiveScaleValue()
124 assertEquals(0.17f, initial.scale(0.5f).getStartAmplitude(), TOLERANCE); in testScale_halfPrimitiveScaleValue()
126 assertEquals(0.86f, initial.scale(1.5f).getStartAmplitude(), TOLERANCE); in testScale_halfPrimitiveScaleValue()
127 assertEquals(0.47f, initial.scale(1.5f).scale(2 / 3f).getStartAmplitude(), TOLERANCE); in testScale_halfPrimitiveScaleValue()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DRampToStepAdapter.java72 if (Float.compare(ramp.getStartAmplitude(), ramp.getEndAmplitude()) == 0) { in convertRampToSteps()
75 new StepSegment(ramp.getStartAmplitude(), in convertRampToSteps()
88 MathUtils.lerp(ramp.getStartAmplitude(), ramp.getEndAmplitude(), pos), in convertRampToSteps()
DSplitSegmentsAdapter.java83 float previousAmplitude = ramp.getStartAmplitude(); in splitRampSegment()
93 MathUtils.lerp(ramp.getStartAmplitude(), ramp.getEndAmplitude(), durationRatio); in splitRampSegment()
DRampDownAdapter.java216 return new RampSegment(ramp.getStartAmplitude(), ramp.getEndAmplitude(), in updateDuration()
232 return ramp.getStartAmplitude() == 0 && ramp.getEndAmplitude() == 0; in isOffSegment()
DClippingAmplitudeAndFrequencyAdapter.java54 clampAmplitude(info, clampedStartFrequency, segment.getStartAmplitude()), in adaptToVibrator()
DVibrationStats.java274 if ((ramp.getStartAmplitude() == 0) && (ramp.getEndAmplitude() == 0)) { in reportComposePwle()
DVibration.java435 proto.write(RampSegmentProto.START_AMPLITUDE, segment.getStartAmplitude()); in dumpEffect()
/frameworks/base/core/java/android/os/vibrator/
DRampSegment.java76 public float getStartAmplitude() { in getStartAmplitude() method in RampSegment
/frameworks/base/core/api/
Dtest-current.txt2729 method public float getStartAmplitude();