summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2024-02-12 16:36:12 -0800
committer Suprabh Shukla <suprabh@google.com> 2024-02-14 15:17:27 -0800
commit75215f12f4baf443c8d3aa020484d06ed99ef571 (patch)
tree2429d19d2fbcf571a28c3e6669e0e68e8d1cc8fb /libs/input/PointerController.cpp
parent5a8e66fdace29f2be1d07b048be40f72c9e408f3 (diff)
Filter out uninteresting UidObserver callbacks in NPMS
NPMS depends on three different process state thresholds for evaluating network access. But holding the common lock for evaluating the network rules may cause a lot of contention on the handler as uid changes are frequent. Separating out a fast check to filter out uninteresting proc-state callbacks before posting to the handler for full evaluation of the rules. This is especially useful when we use no cutpoint for the uid observer registration. This also fixes an inconsistency where changes crossing TOP_THRESHOLD_STATE may not be received if the app transitioned from some process-states below BFGS. Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest Test: atest CtsHostsideNetworkTests Bug: 319728914 Change-Id: Ia7a5aef1ce9705a55912749985c7ee950c24ac84
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions