Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DVibratorInfo.java502 private final float[] mMaxAmplitudes; field in VibratorInfo.FrequencyMapping
532 mMaxAmplitudes = new float[maxAmplitudes == null ? 0 : maxAmplitudes.length]; in FrequencyMapping()
534 System.arraycopy(maxAmplitudes, 0, mMaxAmplitudes, 0, maxAmplitudes.length); in FrequencyMapping()
538 minFrequencyHz + frequencyResolutionHz * (mMaxAmplitudes.length - 1); in FrequencyMapping()
604 if (floorIndex < 0 || floorIndex >= mMaxAmplitudes.length) { in getMaxAmplitude()
605 if (mMaxAmplitudes.length > 0) { in getMaxAmplitude()
607 Log.w(TAG, "Max amplitudes has " + 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()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DFakeVibratorControllerProvider.java66 private float[] mMaxAmplitudes; field in FakeVibratorControllerProvider
172 mMaxAmplitudes)); in getInfo()
285 mMaxAmplitudes = maxAmplitudes; in setMaxAmplitudes()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h229 mMaxAmplitudes}; in get()
253 HalResult<std::vector<float>> mMaxAmplitudes = HalResult<std::vector<float>>::failed(MSG);
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp162 if (mInfoCache.mMaxAmplitudes.isFailed()) { in getInfo()
163 mInfoCache.mMaxAmplitudes = getMaxAmplitudesInternal(); in getInfo()