Home
last modified time | relevance | path

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

/device/google/coral/vibrator/
DVibrator.cpp74 static uint8_t amplitudeToScale(uint8_t amplitude, uint8_t maximum) { in amplitudeToScale() function
105 amplitudeToScale(mVolLevels[WAVEFORM_CLICK_EFFECT_LEVEL], VOLTAGE_SCALE_MAX); in Vibrator()
107 amplitudeToScale(mVolLevels[WAVEFORM_HEAVY_CLICK_EFFECT_LEVEL], VOLTAGE_SCALE_MAX); in Vibrator()
165 int32_t scale = amplitudeToScale(amplitude, maximum); in setEffectAmplitude()
177 int32_t scale = amplitudeToScale(amplitude, VOLTAGE_SCALE_MAX); in setGlobalAmplitude()
/device/google/coral/vibrator/tests/
Dutils.h31 static inline EffectScale amplitudeToScale(EffectAmplitude amplitude) { in amplitudeToScale() function
Dtest-vibrator.cpp345 EXPECT_CALL(*mMockApi, setEffectScale(amplitudeToScale(amplitude))) in TEST_F()
/device/google/crosshatch/vibrator/
DVibrator.cpp98 static uint8_t amplitudeToScale(uint8_t amplitude, uint8_t maximum) { in amplitudeToScale() function
145 int32_t scale = amplitudeToScale(amplitude, UINT8_MAX); in setAmplitude()