summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2022-04-29 18:03:34 +0000
committer Kweku Adams <kwekua@google.com> 2022-04-29 18:20:51 +0000
commitd31226793513ef7f9c83c2fcac6a24b9dc48aa36 (patch)
treeae04a3b4e7b67a3ed182c40a5ff92f3b5ff5897d /libs/androidfw/AttributeResolution.cpp
parent50f19f212e927ab5ccf44231a06506d2b126a5ba (diff)
Fix bucket change issues.
1. Prevent invalid state when tests call a method written for tests. The test method (forceIdleState) would force the app into the RARE bucket, regardless of the app's exemption status. However, on actual devices, the app's min bucket is taken into account before the bucket is changed. Change the test method to also consider the min bucket before changing the app's bucket. 2. Actually notify app standby listeners when the bucket changes in all instances. 3. Tell batterystats when an app is forced into idle. Previously, we were only ever telling batterystats when an app is no longer idle, so batterystats was never told when an app became idle. Bug: 162862794 Bug: 227993380 Test: atest --rerun-until-failure 100 com.android.cts.net.HostsideRestrictBackgroundNetworkTests --use-modules-in Change-Id: If517c1b3063af6758ab7a7a4cf7f1f67decba90c
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions