Skip to content
Commit 9934c33d authored by Lais Andrade's avatar Lais Andrade
Browse files

Move all interaction with vibrator HAL outside VibrationThread lock

The calls to the Vibrator HAL (on, perform, compose, off) are done from
within synchronized blocks of code in VibrationThread. This makes calls
to cancel the thread or native callbacks wait for HAL interactions,
which might have a latency.

Fix this by moving all calls to the HAL to the thread main look and out
of any synchronized block.

Also added a regression test for this scenario.

Bug: 185191271
Fix: 189489898
Test: VibrationThreadTest
Change-Id: I1aaf0ef7162abd15adfb4a8ac62b9798d67ac592
parent 33f631ad
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