Searched refs:amplitude (Results 1 – 14 of 14) sorted by relevance
/device/google/coral/vibrator/ |
D | Vibrator.cpp | 74 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()
|
D | Vibrator.h | 120 Return<Status> setAmplitude(uint8_t amplitude) override; 143 Return<Status> setEffectAmplitude(uint8_t amplitude, uint8_t maximum);
|
/device/google/coral/vibrator/tests/ |
D | utils.h | 31 static inline EffectScale amplitudeToScale(EffectAmplitude amplitude) { in amplitudeToScale() argument 32 return toScale(amplitude, UINT8_MAX); in amplitudeToScale()
|
D | test-vibrator.cpp | 340 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/ |
D | Vibrator.cpp | 98 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()
|
D | Vibrator.h | 40 Return<Status> setAmplitude(uint8_t amplitude) override;
|
/device/google/wahoo/vibrator/ |
D | Vibrator.cpp | 143 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()
|
D | Vibrator.h | 42 Return<Status> setAmplitude(uint8_t amplitude) override;
|
/device/google/bonito/vibrator/ |
D | Vibrator.cpp | 135 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()
|
D | Vibrator.h | 55 Return<Status> setAmplitude(uint8_t amplitude) override;
|
/device/google/coral/vibrator/bench/ |
D | benchmark.cpp | 111 uint8_t amplitude = std::rand() ?: 1; 114 mVibrator->setAmplitude(amplitude);
|
/device/google/muskie/ |
D | synaptics_dsxv26.idc | 29 touch.pressure.calibration = amplitude
|
/device/google/taimen/ |
D | touchscreen.idc | 29 touch.pressure.calibration = amplitude
|
/device/google/crosshatch/audio/ |
D | Test1_Crosshatch_5_10_2018_onsite_final_remove_actisonic.tuning | 722 "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,
|