Home
last modified time | relevance | path

Searched refs:mHwApi (Results 1 – 9 of 9) sorted by relevance

/hardware/google/pixel/vibrator/drv2624/
DVibrator.cpp66 : mHwApi(std::move(hwapi)), mHwCal(std::move(hwcal)) { in Vibrator()
71 if (!mHwApi->setState(true)) { in Vibrator()
76 mHwApi->setAutocal(autocal); in Vibrator()
105 mHwApi->setOlLraPeriod(lraPeriod); in Vibrator()
117 if (mHwApi->hasRtpInput()) { in getCapabilities()
134 mHwApi->setCtrlLoop(toUnderlying(loopMode)); in on()
135 if (!mHwApi->setDuration(timeoutMs)) { in on()
140 mHwApi->setMode(mode); in on()
142 mHwApi->setLraWaveShape(toUnderlying(config->shape)); in on()
143 mHwApi->setOdClamp(config->odClamp); in on()
[all …]
DVibrator.h177 std::unique_ptr<HwApi> mHwApi; variable
/hardware/google/pixel/vibrator/cs40l25/
DVibrator.cpp214 : mHwApi(std::move(hwapi)), in Vibrator()
223 if (!mHwApi->setState(true)) {
229 mHwApi->setF0(caldata);
238 mHwApi->setRedc(caldata);
242 mHwApi->setQ(caldata);
278 mHwApi->getEffectCount(&effectCount);
281 mHwApi->setEffectIndex(effectIndex);
283 if (mHwApi->getEffectDuration(&effectDuration)) {
288 mHwApi->setClabEnable(true);
311 if (mHwApi->hasEffectScale()) { in getCapabilities()
[all …]
DVibrator.h234 std::unique_ptr<HwApi> mHwApi; variable
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-hwapi.cpp73 mHwApi = std::make_unique<HwApi>(); in SetUp()
122 std::unique_ptr<Vibrator::HwApi> mHwApi; member in aidl::android::hardware::vibrator::HwApiTest
148 EXPECT_TRUE(func(*mHwApi)); in TEST_P()
178 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
191 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
221 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
253 EXPECT_TRUE(func(*mHwApi, true)); in TEST_P()
263 EXPECT_TRUE(func(*mHwApi, false)); in TEST_P()
293 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
338 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
/hardware/google/pixel/vibrator/cs40l26/tests/
Dtest-hwapi.cpp62 mHwApi = std::make_unique<HwApi>(); in SetUp()
111 std::unique_ptr<Vibrator::HwApi> mHwApi; member in aidl::android::hardware::vibrator::HwApiTest
137 EXPECT_TRUE(func(*mHwApi)); in TEST_P()
165 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
195 EXPECT_TRUE(func(*mHwApi, true)); in TEST_P()
205 EXPECT_TRUE(func(*mHwApi, false)); in TEST_P()
235 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
265 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
/hardware/google/pixel/vibrator/cs40l26/
DVibrator.cpp176 : mHwApi(std::move(hwapi)), in Vibrator()
217 if (!mHwApi->setFFEffect(&mFfEffects[effectIndex], mEffectDurations[effectIndex])) {
243 mHwApi->setF0(caldata);
253 mHwApi->setRedc(caldata);
257 mHwApi->setQ(caldata);
278 mHwApi->setF0CompEnable(mHwCal->isF0CompEnabled());
279 mHwApi->setRedcCompEnable(mHwCal->isRedcCompEnabled());
281 mHasPassthroughHapticDevice = mHwApi->isPassthroughI2sHapticSupported();
301 mHwApi->setMinOnOffInterval(MIN_ON_OFF_INTERVAL_US);
307 mHwApi->enableDbc();
[all …]
DVibrator.h245 std::unique_ptr<HwApi> mHwApi; variable
/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-hwapi.cpp73 mHwApi = HwApi::Create(); in SetUp()
134 std::unique_ptr<Vibrator::HwApi> mHwApi; member in aidl::android::hardware::vibrator::HwApiTest
200 EXPECT_TRUE(func(*mHwApi)); in TEST_P()
226 EXPECT_TRUE(func(*mHwApi, true)); in TEST_P()
236 EXPECT_TRUE(func(*mHwApi, false)); in TEST_P()
271 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
304 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
338 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
377 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()