summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2024-02-27 08:27:11 +0000
committer Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2024-02-27 08:27:11 +0000
commit720474d1ecf05d84ae75f628a051fdfec8a726ab (patch)
tree577a194b5839ddc54d8eabffde8fdadad9e39fb0 /libs/input/PointerController.cpp
parent8095041dd897d2ed3cf63af75d83b634788c9959 (diff)
Remove UidStateCallbackInfo when uid is gone
A bug was introduced by recent changes to filter out redundant process state changes. NPMS was caching UidStateCallbackInfo objects per uid and not clearing it or resetting the procStateSeq when the uid went away. This resulted in state-changes not being processed after app restarts. For example, if an app exited from TOP, it would lose network access due to some rules, but the last UidStateCallbackInfo would stay at TOP. If the same app restarted, the change would be filtered out as uninteresting even though the network rules require an update. Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest Bug: 326370901 Bug: 326675380 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cafca44d84955504857e337fced3bef2912802bd) Merged-In: I016435abcfd5300f33374e5d5c144b25f81728b4 Change-Id: I016435abcfd5300f33374e5d5c144b25f81728b4
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions