/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | RampSegmentTest.java | 137 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 …]
|
D | PrimitiveSegmentTest.java | 136 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()
|
D | StepSegmentTest.java | 147 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 …]
|
D | PrebakedSegmentTest.java | 112 assertSame(prebaked, prebaked.scaleLinearly(0.5f)); in testScaleLinearly_ignoresAndReturnsSameEffect()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | RampSegment.java | 162 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()
|
D | PrimitiveSegment.java | 112 public PrimitiveSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in PrimitiveSegment 113 float newScale = VibrationEffect.scaleLinearly(mScale, scaleFactor); in scaleLinearly()
|
D | StepSegment.java | 150 public StepSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in StepSegment 154 float newAmplitude = VibrationEffect.scaleLinearly(mAmplitude, scaleFactor); in scaleLinearly()
|
D | VibrationEffectSegment.java | 119 public abstract <T extends VibrationEffectSegment> T scaleLinearly(float scaleFactor); in scaleLinearly() method in VibrationEffectSegment
|
D | PrebakedSegment.java | 140 public PrebakedSegment scaleLinearly(float scaleFactor) { in scaleLinearly() method in PrebakedSegment
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationScaler.java | 166 .scaleLinearly(adaptiveScale)); in scale()
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 641 public static float scaleLinearly(float intensity, float scaleFactor) { in scaleLinearly() method in VibrationEffect
|