Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ecfc26c authored by Lais Andrade's avatar Lais Andrade
Browse files

Fix VibrationThread handling of IVibrator errors

The vibration playback is ignoring the HAL result for vibrate requests,
causing the vibration to continue even after one of the steps
is unsupported or failed.

This also causes the vibration request to be reported as successful in
the vibrator service dumpsys, which makes debugging difficult when the
user reports no vibration was actually performed by the device.

This fix introduces a new status code for HAL errors and updates the
VibrationThread to stop the vibration steps once a step reports
unsupported or failed status.

Bug: 419572960
Flag: android.os.vibrator.vibration_thread_handling_hal_failure
Test: VibrationThreadTest
Change-Id: Ib6a8ea6041185212d07204b2ee24e0d592c51083
parent b7e63c3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment