summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/7/changes
diff options
context:
space:
mode:
authorLais Andrade <lsandrade@google.com>2021-01-20 13:05:58 +0000
committerLais Andrade <lsandrade@google.com>2021-01-20 22:04:00 +0000
commitda188d450b5004526cd1b6d4dfa3f7b2b9014599 (patch)
tree5ef63e9bece5c68f37e572ec4e4c864106a2a75a /docs/html/sdk/api_diff/7/changes
parentee605b646562fa32cccceb18c610fc8c37df1ed7 (diff)
Fix ANR caused by VibrationThread
The awaitUntil method that waits for vibration completion is waiting on a CountDownLatch in a block synchrnized on the VibrationThread. This causes any call to VibrationThread.cancel() to lock on this wait block and triggers ANR when vibration is cancelled by the main thread. The awaitUntil methods should only wait on the VibrationThread instance so the calls to cancel() will notify and interrupt this wait. Changed the VibrationThreadTest to test the cancel call on a longer vibration pattern, that should cause the test to fail if the Thread is not cancelled right away (i.e. similar conditions that would trigger an ANR on the main thread). Fix: 177974811 Test: VibrationThread Change-Id: Id4346e60292e96df26f5c12e2e088bbf83f416c8
Diffstat (limited to 'docs/html/sdk/api_diff/7/changes')
0 files changed, 0 insertions, 0 deletions