summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorKensuke Miyagi <kemiyagi@google.com>2021-12-02 10:32:06 -0800
committerKensuke Miyagi <kemiyagi@google.com>2021-12-06 16:11:53 -0800
commit17c4a944eb598f84bee4327f26565dffc514f123 (patch)
tree681650986b6ff94bd9324b155cd8509d0066db53 /core/java/android/inputmethodservice/InputMethodService.java
parentf5c3a290f6115c58252783d160e79fc534351f2b (diff)
Fix race condition betweeen Tuner APIs and with onReclaimResources
- Added acquire/releaseLock() in ITunerResourceManager.aidl for Tuner API implementations to utilize. - Added more lock around resource related operations that have race condition with releaseAll() in Tuner.java - This fix addresses race condition when Tuner object dies as well. - Added these calls into Tuner API implementations Also, suppress FLAG_ONEWAY warning for onReclaimResources as it is only called against OEM/SoC packages that are part of image that goes throug Google certification. Bug: 206725267 Bug: 206726459 Bug: 206723996 Test: TunerTest#testResourceReclaimedDifferentProcess() and testResourceReclaimedDifferentThread() Change-Id: Ic9aee1e15f53b2d4984c3b4214a392c2c4d5731e
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions