diff options
| author | 2024-06-07 14:31:25 +0100 | |
|---|---|---|
| committer | 2024-06-10 13:43:40 +0000 | |
| commit | 13ff2a17916fdaf675c366cc95c71ddeb1953c36 (patch) | |
| tree | d96dad32d77514d0837afa15ab0ce027a4927c4e /libs/androidfw/StringPool.cpp | |
| parent | 2cd1f3b297ec26dbecd861df4abb04b64d0eca93 (diff) | |
Fix concurrency of IVibratorCallback
Fix error when VibrationThread gets a callback from a previous vibrate
request after turning the vibrator off and on again.
This can be triggered by playing a repeating waveform with a very short
off step, for example with timings [10, 1000, 10, 1000]. One of the 1s
ON steps will be played with the vibrator off because the thread will
get the callback from a previous on() call after the vibrator was turned
off and on again.
Test: atest com.android.server.vibrator
Fix: 290585608
Change-Id: Ib790059704fdb86b2813e2c3d155cf71934cad05
Flag: NONE normal/day-to-day bugfix
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions