Searched refs:mHwApi (Results 1 – 5 of 5) sorted by relevance
/device/google/bonito/vibrator/ |
D | Vibrator.cpp | 71 : mHwApi(std::move(hwapi)), mShortLraPeriod(short_lra_period), mLongLraPeriod(long_lra_period) { in Vibrator() 81 mHwApi.lpTriggerEffect << 1 << std::endl; in Vibrator() 82 if (!mHwApi.lpTriggerEffect) { in Vibrator() 89 mHwApi.ctrlLoop << LOOP_MODE_OPEN << std::endl; in on() 90 mHwApi.duration << timeoutMs << std::endl; in on() 91 if (!mHwApi.duration) { in on() 97 mHwApi.mode << WAVEFORM_MODE << std::endl; in on() 98 mHwApi.lraWaveShape << SINE_WAVE << std::endl; in on() 99 mHwApi.odClamp << mShortVoltageMax << std::endl; in on() 100 mHwApi.olLraPeriod << mShortLraPeriod << std::endl; in on() [all …]
|
D | Vibrator.h | 69 HwApi mHwApi; variable
|
/device/google/coral/vibrator/ |
D | Vibrator.cpp | 80 : mHwApi(std::move(hwapi)), mHwCal(std::move(hwcal)) { in Vibrator() 84 if (!mHwApi->setState(true)) { in Vibrator() 89 mHwApi->setF0(caldata); in Vibrator() 92 mHwApi->setRedc(caldata); in Vibrator() 95 mHwApi->setQ(caldata); in Vibrator() 99 mHwApi->setEffectIndex(WAVEFORM_SIMPLE_EFFECT_INDEX); in Vibrator() 100 mHwApi->getEffectDuration(&effectDuration); in Vibrator() 109 mHwApi->setGpioFallIndex(WAVEFORM_SIMPLE_EFFECT_INDEX); in Vibrator() 110 mHwApi->setGpioFallScale(scaleFall); in Vibrator() 111 mHwApi->setGpioRiseIndex(WAVEFORM_SIMPLE_EFFECT_INDEX); in Vibrator() [all …]
|
D | Vibrator.h | 154 std::unique_ptr<HwApi> mHwApi; variable
|
/device/google/coral/vibrator/tests/ |
D | test-hwapi.cpp | 52 mHwApi = std::make_unique<HwApi>(); in SetUp() 95 std::unique_ptr<Vibrator::HwApi> mHwApi; member in android::hardware::vibrator::V1_3::implementation::HwApiTest 122 EXPECT_TRUE(func(*mHwApi)); in TEST_P() 151 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() 164 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() 194 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P() 222 EXPECT_TRUE(func(*mHwApi, true)); in TEST_P() 232 EXPECT_TRUE(func(*mHwApi, false)); in TEST_P() 262 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P() 300 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
|