Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DVibratorInfo.java602 int floorIndex = (int) Math.floor(position); in getMaxAmplitude() local
604 if (floorIndex < 0 || floorIndex >= mMaxAmplitudes.length) { in getMaxAmplitude()
614 if (floorIndex != ceilIndex && ceilIndex < mMaxAmplitudes.length) { in getMaxAmplitude()
616 return MathUtils.min(mMaxAmplitudes[floorIndex], mMaxAmplitudes[ceilIndex]); in getMaxAmplitude()
618 return mMaxAmplitudes[floorIndex]; in getMaxAmplitude()