Searched refs:getStartAmplitude (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | RampSegmentTest.java | 47 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/ |
D | RampToStepAdapter.java | 72 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()
|
D | SplitSegmentsAdapter.java | 83 float previousAmplitude = ramp.getStartAmplitude(); in splitRampSegment() 93 MathUtils.lerp(ramp.getStartAmplitude(), ramp.getEndAmplitude(), durationRatio); in splitRampSegment()
|
D | RampDownAdapter.java | 216 return new RampSegment(ramp.getStartAmplitude(), ramp.getEndAmplitude(), in updateDuration() 232 return ramp.getStartAmplitude() == 0 && ramp.getEndAmplitude() == 0; in isOffSegment()
|
D | ClippingAmplitudeAndFrequencyAdapter.java | 54 clampAmplitude(info, clampedStartFrequency, segment.getStartAmplitude()), in adaptToVibrator()
|
D | VibrationStats.java | 274 if ((ramp.getStartAmplitude() == 0) && (ramp.getEndAmplitude() == 0)) { in reportComposePwle()
|
D | Vibration.java | 435 proto.write(RampSegmentProto.START_AMPLITUDE, segment.getStartAmplitude()); in dumpEffect()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | RampSegment.java | 76 public float getStartAmplitude() { in getStartAmplitude() method in RampSegment
|
/frameworks/base/core/api/ |
D | test-current.txt | 2729 method public float getStartAmplitude();
|