Home
last modified time | relevance | path

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

/device/google/coral/vibrator/
DVibrator.cpp74 static uint8_t amplitudeToScale(uint8_t amplitude, uint8_t maximum) { in amplitudeToScale() argument
75 return std::round((-20 * std::log10(amplitude / static_cast<float>(maximum))) / in amplitudeToScale()
151 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude() argument
153 if (!amplitude) { in setAmplitude()
158 return setEffectAmplitude(amplitude, UINT8_MAX); in setAmplitude()
164 Return<Status> Vibrator::setEffectAmplitude(uint8_t amplitude, uint8_t maximum) { in setEffectAmplitude() argument
165 int32_t scale = amplitudeToScale(amplitude, maximum); in setEffectAmplitude()
176 uint8_t amplitude = set ? mVolLevels[VOLTAGE_GLOBAL_SCALE_LEVEL] : VOLTAGE_SCALE_MAX; in setGlobalAmplitude() local
177 int32_t scale = amplitudeToScale(amplitude, VOLTAGE_SCALE_MAX); in setGlobalAmplitude()
DVibrator.h120 Return<Status> setAmplitude(uint8_t amplitude) override;
143 Return<Status> setEffectAmplitude(uint8_t amplitude, uint8_t maximum);
/device/google/coral/vibrator/tests/
Dutils.h31 static inline EffectScale amplitudeToScale(EffectAmplitude amplitude) { in amplitudeToScale() argument
32 return toScale(amplitude, UINT8_MAX); in amplitudeToScale()
Dtest-vibrator.cpp340 EffectAmplitude amplitude = std::rand() + 1; in TEST_F() local
345 EXPECT_CALL(*mMockApi, setEffectScale(amplitudeToScale(amplitude))) in TEST_F()
349 EXPECT_EQ(Status::OK, mVibrator->setAmplitude(amplitude)); in TEST_F()
/device/google/crosshatch/vibrator/
DVibrator.cpp98 static uint8_t amplitudeToScale(uint8_t amplitude, uint8_t maximum) { in amplitudeToScale() argument
99 return std::round((-20 * std::log10(amplitude / static_cast<float>(maximum))) / in amplitudeToScale()
139 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude() argument
141 if (!amplitude) { in setAmplitude()
145 int32_t scale = amplitudeToScale(amplitude, UINT8_MAX); in setAmplitude()
DVibrator.h40 Return<Status> setAmplitude(uint8_t amplitude) override;
/device/google/wahoo/vibrator/
DVibrator.cpp143 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude() argument
145 if (amplitude == 0) { in setAmplitude()
150 std::round((amplitude - 1) / 254.0 * (MAX_RTP_INPUT - MIN_RTP_INPUT) + in setAmplitude()
DVibrator.h42 Return<Status> setAmplitude(uint8_t amplitude) override;
/device/google/bonito/vibrator/
DVibrator.cpp135 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude() argument
136 if (amplitude == 0) { in setAmplitude()
141 std::round((amplitude - 1) / 254.0 * (MAX_RTP_INPUT - MIN_RTP_INPUT) + MIN_RTP_INPUT); in setAmplitude()
DVibrator.h55 Return<Status> setAmplitude(uint8_t amplitude) override;
/device/google/coral/vibrator/bench/
Dbenchmark.cpp111 uint8_t amplitude = std::rand() ?: 1;
114 mVibrator->setAmplitude(amplitude);
/device/google/muskie/
Dsynaptics_dsxv26.idc29 touch.pressure.calibration = amplitude
/device/google/taimen/
Dtouchscreen.idc29 touch.pressure.calibration = amplitude
/device/google/crosshatch/audio/
DTest1_Crosshatch_5_10_2018_onsite_final_remove_actisonic.tuning722 "enhance_and_protect_left.Protect.Pilot tone.Sine generator sense.amplitude": 0.0177827941,
1843 "enhance_and_protect_right.Protect.Pilot tone.Sine generator sense.amplitude": 0.0177827941,