summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2022-10-18 16:49:26 +0100
committer Lais Andrade <lsandrade@google.com> 2022-10-19 14:53:34 +0100
commit546dd659054de251ff64f4b3b4c9c72f0fe514d4 (patch)
tree8a3cd34e6c35c057bdb637fffced5b68d4593514 /libs/androidfw/ResourceTimer.cpp
parent2e1bc7cab3818c35ea4359311c34ffba71d70c06 (diff)
Allow upcoming vibration when current one if being cancelled
The vibration cancellation at VibratorManagerService is asynchronous and might take some time before it sets the current Vibration status to the cancelled one requested. If a new binder call to vibrate arrived before the status is updated then the new vibration might be ignored for the current one, even though it's already being cancelled. Add a check to the cancel signal sent to the VibrationStepConductor before deciding to ignore new vibrations in favor of the ongoing. Bug: 249032223 Test: VibratorManagerServiceTest Change-Id: I8151d9ee0e30b7115e9cb3d6bcd272da2806b45c
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions