Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/vibrator/
DStepSegment.java140 float newAmplitude = VibrationEffect.scale(mAmplitude, scaleFactor); in scale() local
141 if (Float.compare(newAmplitude, mAmplitude) == 0) { in scale()
144 return new StepSegment(newAmplitude, mFrequencyHz, mDuration); in scale()
154 float newAmplitude = VibrationEffect.scaleLinearly(mAmplitude, scaleFactor); in scaleLinearly() local
155 if (Float.compare(newAmplitude, mAmplitude) == 0) { in scaleLinearly()
158 return new StepSegment(newAmplitude, mFrequencyHz, mDuration); in scaleLinearly()