summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-11-02 22:39:19 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-11-02 14:41:56 +0000
commitfbb75b3eee7f7cc8826ddff122fb1d7cfd52450e (patch)
tree514d7dc12331455d5e427224e69cbee4d66b6a88 /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent318be1a4319d70fa43efc637088ca360078bc659 (diff)
Remove lock for internal isGetTasksAllowed
The method only checks recents and permission. The former is a field which won't change since boot. The latter doesn't involve any WM stuffs. Other places also use it without lock. This avoids unnecessary lock contention when calling ActivityManager# getRunningAppProcesses, getProcessMemoryInfo, getRunningServices. Bug: 204870457 Test: Test: CtsWindowManagerDeviceTestCases Change-Id: Ie1f1d1f58543cf25197f42caa01565039ced4b32
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions