summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2022-03-29 12:13:23 -0700
committer Sudheer Shanka <sudheersai@google.com> 2022-04-15 09:38:26 +0000
commit28d4a8f2aff809d910ece4aaccbe80bacf08dd52 (patch)
tree06b92fdcb17886e73e9300ba792939049846b7b0 /api/api.go
parent63a7d711c72698cdaa362333149d32cd2d85d154 (diff)
Optimize the handling of disabling doze state.
When we are handling the callback for doze-disabled state, we don't have to recompute the network rules for all uids anymore since we started keeping track of individual restriction state for each uid. We can remove the doze restriction state from only blocked uids. We can also do the same when we are handling the doze-enabled state (and even other restrictions) but since NPMS doesn't get callbacks for every uid procstate change, it is possible we can miss blocking certain uids network. So, for now limiting the change to only doze-disabled state. Bug: 206518114 Test: tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Change-Id: I53e40af53aa00ff493e8e5050908220ae4dad729 Merged-In: I53e40af53aa00ff493e8e5050908220ae4dad729
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions