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

Skip to content
Commit 173774c9 authored by Lais Andrade's avatar Lais Andrade
Browse files

Fix vibration finished before HAL callback

Update TurnOffVibratorStep so it will be considered part of the main
vibration steps when it's waiting for the HAL completion callback.

This keeps the ramp down steps outside the main vibration duration,
but it makes sure the vibration will be completed after a callback is
received, even if delayed compared to the expected duration.

Also fix the VibratorManagerService command line to wait for the
vibration ramp down and clean up before ending the command, to prevent
vibrations from being cancelled because of binder death.

Fix: 327608323
Test: atest VibrationThreadTest
Change-Id: I9cf0e1263f73b719de16782a85df87f740c9c5d0
parent 19954aa1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment