Merge "[DO NOT MERGE] cs40l26: Report the duration time when using DOUBLE_CLICK effect" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot 2023-01-04 09:28:43 +00:00 committed by Android (Google) Code Review
commit f5f7641fb3

View file

@ -1508,6 +1508,10 @@ ndk::ScopedAStatus Vibrator::getCompoundDetails(Effect effect, EffectStrength st
} }
*outTimeMs = timeMs; *outTimeMs = timeMs;
mFfEffects[WAVEFORM_COMPOSE].replay.length = static_cast<uint16_t>(timeMs);
if (mIsDual) {
mFfEffectsDual[WAVEFORM_COMPOSE].replay.length = static_cast<uint16_t>(timeMs);
}
return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok();
} }