Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/vibrator/
DClippingAmplitudeAndFrequencyAdapter.java64 return Float.isNaN(info.getResonantFrequencyHz()) ? 0 : info.getResonantFrequencyHz(); in clampFrequency()
DStepToRampAdapter.java79 if (Float.isNaN(info.getResonantFrequencyHz())) { in fillEmptyFrequency()
82 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
DSplitSegmentsAdapter.java110 if (Float.isNaN(info.getResonantFrequencyHz())) { in fillEmptyFrequency()
113 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
DRampToStepAdapter.java99 if (Float.isNaN(info.getResonantFrequencyHz())) { in fillEmptyFrequency()
102 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DMultiVibratorInfoTest.java176 assertTrue(Float.isNaN(info.getResonantFrequencyHz())); in testGetQFactorAndResonantFrequency_differentValues_returnsNaN()
185 assertTrue(Float.isNaN(info.getResonantFrequencyHz())); in testGetQFactorAndResonantFrequency_differentValues_returnsNaN()
208 assertEquals(11f, info.getResonantFrequencyHz(), TEST_TOLERANCE); in testGetQFactorAndResonantFrequency_sameValues_returnsValue()
/frameworks/base/core/java/android/os/vibrator/
DMultiVibratorInfo.java210 VibratorInfo::getResonantFrequencyHz); in frequencyProfileIntersection()
/frameworks/base/core/java/android/os/
DVibrator.java273 return getInfo().getResonantFrequencyHz(); in getResonantFrequency()
DVibratorInfo.java433 public float getResonantFrequencyHz() { in getResonantFrequencyHz() method in VibratorInfo
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java432 assertEquals(123.f, info.getResonantFrequencyHz(), 0.01 /*tolerance*/); in getVibratorInfo_vibratorFailedLoadAfterSystemReady_returnsInfoForVibrator()
457 assertEquals(123.f, info.getResonantFrequencyHz(), 0.01 /*tolerance*/); in getVibratorInfo_vibratorSuccessfulLoadBeforeSystemReady_returnsInfoForVibrator()
476 assertEquals(123.f, info.getResonantFrequencyHz(), 0.01 /*tolerance*/); in getVibratorInfo_vibratorFailedThenSuccessfulLoad_returnsNullThenInfo()