summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorYtai Ben-Tsvi <ytai@google.com>2022-03-22 11:20:47 -0700
committerYtai Ben-Tsvi <ytai@google.com>2022-03-29 11:05:42 -0700
commit14fd844c53c51ddf9c3c5c97f01f076a3585adcd (patch)
tree25dda4d032b44ae5d99fcacda8fd6ce8fd8e4d04 /core/java/android/inputmethodservice/InputMethodService.java
parent6782f9314283326f28afee1af1b88b440859aa1c (diff)
Fix concurrent capture handler
As demonstrated in the bug, some conditions could cause an abort event to be delivered after a stop(), causing a violation of the HAL protocol. This change adds a lot of different test cases to validate the thread-safety of this module and then fixes the SUT to pass them. The thread-safety approach of concurrent capture handler has been revised and simplified. Test: atest SoundTriggerHalConcurrentCaptureHandlerTest Test: Locally forced "no concurrent capture", reproed the bug, then applied the fix and make sure it no longer repros. Fixes: 223922855 Change-Id: I1bd3e3c56b3b42246930427890f26289b7d202f7
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions