commit | 1784919feaece918feb663a981b177b39e8aee7b | [log] [tgz] |
---|---|---|
author | Xiang Wang <xwxw@google.com> | Mon Oct 16 14:50:54 2023 -0700 |
committer | Xiang Wang <xwxw@google.com> | Tue Oct 24 11:53:24 2023 -0700 |
tree | d4525bafb25c1b82d2020d1c3c0a386ff77cb04e | |
parent | 87256704ab665981463d3cdead8f4d76a1f9f777 [diff] |
Stop global locking on session calls and UID state cache Instead we lock on each session for its own operations, and check session internal state instead of the global UID cache so they don't block on each other for reports. Only the UidObserver will interrupt and iterate all sessions for updates, but only lock one session at a time. Bug: 304839503 Test: atest HintManagerServiceTest Change-Id: If18af5440f1d36a96854fe48f1bf280dde403a83