Home
last modified time | relevance | path

Searched refs:scaleLinearly (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DRampSegmentTest.java137 assertEquals(0f, initial.scaleLinearly(1f).getStartAmplitude(), TOLERANCE); in testScaleLinearly()
138 assertEquals(0f, initial.scaleLinearly(0.5f).getStartAmplitude(), TOLERANCE); in testScaleLinearly()
139 assertEquals(0f, initial.scaleLinearly(1.5f).getStartAmplitude(), TOLERANCE); in testScaleLinearly()
140 assertEquals(0f, initial.scaleLinearly(1.5f).scaleLinearly(2 / 3f).getStartAmplitude(), in testScaleLinearly()
142 assertEquals(0f, initial.scaleLinearly(0.8f).scaleLinearly(1.25f).getStartAmplitude(), in testScaleLinearly()
145 assertEquals(1f, initial.scaleLinearly(1f).getEndAmplitude(), TOLERANCE); in testScaleLinearly()
146 assertEquals(0.5f, initial.scaleLinearly(0.5f).getEndAmplitude(), TOLERANCE); in testScaleLinearly()
147 assertEquals(1f, initial.scaleLinearly(1.5f).getEndAmplitude(), TOLERANCE); in testScaleLinearly()
148 assertEquals(0.8f, initial.scaleLinearly(0.8f).getEndAmplitude(), TOLERANCE); in testScaleLinearly()
150 assertEquals(0.8f, initial.scaleLinearly(1.5f).scaleLinearly(0.8f).getEndAmplitude(), in testScaleLinearly()
[all …]
DPrimitiveSegmentTest.java136 assertEquals(1f, initial.scaleLinearly(1).getScale(), TOLERANCE); in testScaleLinearly()
137 assertEquals(0.5f, initial.scaleLinearly(0.5f).getScale(), TOLERANCE); in testScaleLinearly()
138 assertEquals(1f, initial.scaleLinearly(1.5f).getScale(), TOLERANCE); in testScaleLinearly()
139 assertEquals(0.8f, initial.scaleLinearly(0.8f).getScale(), TOLERANCE); in testScaleLinearly()
141 assertEquals(1f, initial.scaleLinearly(0.8f).scaleLinearly(1.25f).getScale(), TOLERANCE); in testScaleLinearly()
145 assertEquals(0f, initial.scaleLinearly(1).getScale(), TOLERANCE); in testScaleLinearly()
146 assertEquals(0f, initial.scaleLinearly(0.5f).getScale(), TOLERANCE); in testScaleLinearly()
147 assertEquals(0f, initial.scaleLinearly(1.5f).getScale(), TOLERANCE); in testScaleLinearly()
148 assertEquals(0f, initial.scaleLinearly(1.5f).scaleLinearly(2 / 3f).getScale(), TOLERANCE); in testScaleLinearly()
149 assertEquals(0f, initial.scaleLinearly(0.8f).scaleLinearly(1.25f).getScale(), TOLERANCE); in testScaleLinearly()
DStepSegmentTest.java147 assertEquals(1f, initial.scaleLinearly(1).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
148 assertEquals(0.5f, initial.scaleLinearly(0.5f).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
149 assertEquals(1f, initial.scaleLinearly(1.5f).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
150 assertEquals(0.8f, initial.scaleLinearly(0.8f).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
152 assertEquals(1f, initial.scaleLinearly(0.8f).scaleLinearly(1.25f).getAmplitude(), in testScaleLinearly_fullAmplitude()
157 assertEquals(0f, initial.scaleLinearly(1).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
158 assertEquals(0f, initial.scaleLinearly(0.5f).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
159 assertEquals(0f, initial.scaleLinearly(1.5f).getAmplitude(), TOLERANCE); in testScaleLinearly_fullAmplitude()
166 assertEquals(VibrationEffect.DEFAULT_AMPLITUDE, initial.scaleLinearly(1).getAmplitude(), in testScaleLinearly_defaultAmplitude()
168 assertEquals(VibrationEffect.DEFAULT_AMPLITUDE, initial.scaleLinearly(0.5f).getAmplitude(), in testScaleLinearly_defaultAmplitude()
[all …]
DPrebakedSegmentTest.java112 assertSame(prebaked, prebaked.scaleLinearly(0.5f)); in testScaleLinearly_ignoresAndReturnsSameEffect()
/frameworks/base/core/java/android/os/vibrator/
DRampSegment.java162 public RampSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in RampSegment
163 float newStartAmplitude = VibrationEffect.scaleLinearly(mStartAmplitude, scaleFactor); in scaleLinearly()
164 float newEndAmplitude = VibrationEffect.scaleLinearly(mEndAmplitude, scaleFactor); in scaleLinearly()
DPrimitiveSegment.java112 public PrimitiveSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in PrimitiveSegment
113 float newScale = VibrationEffect.scaleLinearly(mScale, scaleFactor); in scaleLinearly()
DStepSegment.java150 public StepSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in StepSegment
154 float newAmplitude = VibrationEffect.scaleLinearly(mAmplitude, scaleFactor); in scaleLinearly()
DVibrationEffectSegment.java119 public abstract <T extends VibrationEffectSegment> T scaleLinearly(float scaleFactor); in scaleLinearly() method in VibrationEffectSegment
DPrebakedSegment.java140 public PrebakedSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in PrebakedSegment
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java166 .scaleLinearly(adaptiveScale)); in scale()
/frameworks/base/core/java/android/os/
DVibrationEffect.java641 public static float scaleLinearly(float intensity, float scaleFactor) { in scaleLinearly() method in VibrationEffect