Home
last modified time | relevance | path

Searched refs:mHwApi (Results 1 – 8 of 8) 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.cpp193 : mHwApi(std::move(hwapi)), mHwCal(std::move(hwcal)), mAsyncHandle(std::async([] {})) { in Vibrator()
199 if (!mHwApi->setState(true)) {
204 mHwApi->setF0(caldata);
207 mHwApi->setRedc(caldata);
210 mHwApi->setQ(caldata);
245 mHwApi->getEffectCount(&effectCount);
248 mHwApi->setEffectIndex(effectIndex);
250 if (mHwApi->getEffectDuration(&effectDuration)) {
255 mHwApi->setClabEnable(true);
272 if (mHwApi->hasEffectScale()) { in getCapabilities()
[all …]
DVibrator.h204 std::unique_ptr<HwApi> mHwApi; variable
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-hwapi.cpp72 mHwApi = std::make_unique<HwApi>(); in SetUp()
121 std::unique_ptr<Vibrator::HwApi> mHwApi; member in aidl::android::hardware::vibrator::HwApiTest
147 EXPECT_TRUE(func(*mHwApi)); in TEST_P()
177 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
190 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
220 EXPECT_TRUE(func(*mHwApi, &actual)); in TEST_P()
252 EXPECT_TRUE(func(*mHwApi, true)); in TEST_P()
262 EXPECT_TRUE(func(*mHwApi, false)); in TEST_P()
292 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
335 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
/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()
/hardware/google/pixel/vibrator/cs40l26/
DVibrator.cpp217 : mHwApi(std::move(hwapi)), mHwCal(std::move(hwcal)), mAsyncHandle(std::async([] {})) { in Vibrator()
321 mHwApi->setF0(caldata);
324 mHwApi->setRedc(caldata);
327 mHwApi->setQ(caldata);
376 if (mHwApi->hasOwtFreeSpace()) { in getCapabilities()
406 mHwApi->setF0Offset(0); in off()
423 mHwApi->setF0Offset(mF0Offset); in on()
782 if (!mHwApi->setPwle(pwleQueue)) { in setPwle()
984 mHwApi->debug(fd); in dump()
1234 mHwApi->getOwtFreeSpace(&freeBytes); in uploadOwtEffect()
[all …]
DVibrator.h165 std::unique_ptr<HwApi> mHwApi; variable