Lines Matching refs:mHwApi

193     : 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()
275 if (mHwApi->hasAspEnable() || hasHapticAlsaDevice()) { in getCapabilities()
278 if (mHwApi->hasPwle()) { in getCapabilities()
288 mHwApi->setF0Offset(0); in off()
289 if (!mHwApi->setActivate(0)) { in off()
306 mHwApi->setF0Offset(mF0Offset); in on()
350 if (mHwApi->hasAspEnable()) { in setExternalControl()
351 if (!mHwApi->setAspEnable(!enabled)) { in setExternalControl()
367 if (mHwApi->hasAspEnable()) { in setExternalControl()
368 if (!mHwApi->setAspEnable(enabled)) { in setExternalControl()
472 mHwApi->setActivate(0); in on()
474 mHwApi->setEffectIndex(effectIndex); in on()
475 mHwApi->setDuration(timeoutMs); in on()
476 mHwApi->setActivate(1); in on()
486 if (!mHwApi->setEffectScale(scale)) { in setEffectAmplitude()
498 if (!mHwApi->setGlobalScale(scale)) { in setGlobalAmplitude()
527 mHwApi->setGpioRiseIndex(effectIndex); in alwaysOnEnable()
528 mHwApi->setGpioRiseScale(scale); in alwaysOnEnable()
531 mHwApi->setGpioFallIndex(effectIndex); in alwaysOnEnable()
532 mHwApi->setGpioFallScale(scale); in alwaysOnEnable()
541 mHwApi->setGpioRiseIndex(0); in alwaysOnDisable()
544 mHwApi->setGpioFallIndex(0); in alwaysOnDisable()
624 if (!mHwApi->getAvailablePwleSegments(&segments)) { in getPwleCompositionSizeMax()
650 if (!mHwApi->setPwle(pwleQueue)) { in setPwle()
802 mHwApi->setEffectIndex(WAVEFORM_UNSAVED_TRIGGER_QUEUE_INDEX); in composePwle()
805 mHwApi->setDuration(MAX_TIME_MS); in composePwle()
807 mHwApi->setActivate(1); in composePwle()
847 mHwApi->debug(fd); in dump()
999 if (!mHwApi->setEffectQueue(effectQueue)) { in setEffectQueue()
1064 mHwApi->pollVibeState(false); in waitForComplete()
1065 mHwApi->setActivate(false); in waitForComplete()