Searched refs:getAbsoluteFrequency (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibratorInfoTest.java | 226 assertTrue(Float.isNaN(info.getAbsoluteFrequency(-1))); in testAbsoluteFrequency_emptyMappingReturnsNaN() 227 assertTrue(Float.isNaN(info.getAbsoluteFrequency(0))); in testAbsoluteFrequency_emptyMappingReturnsNaN() 228 assertTrue(Float.isNaN(info.getAbsoluteFrequency(1))); in testAbsoluteFrequency_emptyMappingReturnsNaN() 235 assertEquals(TEST_RESONANT_FREQUENCY, info.getAbsoluteFrequency(0), TEST_TOLERANCE); in testAbsoluteFrequency_validRangeReturnsOriginalValue() 238 assertEquals(125, info.getAbsoluteFrequency(-1), TEST_TOLERANCE); in testAbsoluteFrequency_validRangeReturnsOriginalValue() 239 assertEquals(175, info.getAbsoluteFrequency(1), TEST_TOLERANCE); in testAbsoluteFrequency_validRangeReturnsOriginalValue() 240 assertEquals(155, info.getAbsoluteFrequency(0.2f), TEST_TOLERANCE); in testAbsoluteFrequency_validRangeReturnsOriginalValue() 241 assertEquals(140, info.getAbsoluteFrequency(-0.4f), TEST_TOLERANCE); in testAbsoluteFrequency_validRangeReturnsOriginalValue() 244 assertEquals(50, info.getAbsoluteFrequency(info.getFrequencyRange().getLower()), in testAbsoluteFrequency_validRangeReturnsOriginalValue() 246 assertEquals(200, info.getAbsoluteFrequency(info.getFrequencyRange().getUpper()), in testAbsoluteFrequency_validRangeReturnsOriginalValue()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | ClippingAmplitudeAndFrequencyAdapter.java | 58 info.getAbsoluteFrequency(clampedFrequency), in apply() 68 info.getAbsoluteFrequency(clampedStartFrequency), in apply() 69 info.getAbsoluteFrequency(clampedEndFrequency), in apply()
|
/frameworks/base/core/java/android/os/ |
D | VibratorInfo.java | 389 public float getAbsoluteFrequency(float relativeFrequency) { in getAbsoluteFrequency() method in VibratorInfo
|