summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-11-08 00:00:51 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-11-15 09:19:00 +0000
commitf5a6c03fd3b8e77d7bd6990f4733c7833f4e8c23 (patch)
tree1e7bb6b945f6921a2109e40e6b83e0914719ec00 /libs/androidfw/FileStream.cpp
parent6595932508585d5d0618e5ba8dba696bccdec55e (diff)
Use foreground sched group for process showing UI while dozing
After device enters dozing mode, SystemUI will be BOUND_FOREGROUND_SERVICE + GROUP_RESTRICTED. Then jank could happen when updating the UI, e.g. add/remove notification, update clock. If AOD is not enabled, when the screen is turned on without awake, the priority will boost to PERSISTENT_UI + TOP_APP for 2s, and then before screen goes off, it will keep PERSISTENT + GROUP_DEFAULT. If AOD is enabled, the priority will also keep at least PERSISTENT + GROUP_DEFAULT. Bug: 308601407 Bug: 261162899 Test: atest DisplayPolicyTests#testVisibleProcessWhileDozing Test: Disable "Always show time and info" and turn off screen. Send a notification to turn on screen. > adb shell dumpsys activity oom | grep systemui It will show "T/ /PERU" in 2s, and then "F/ /PER" if screen is still on. After screen is off automatically by timeout, it will return to "R/ /BFGS". Test: Enable "Always show time and info" and turn off screen. > adb shell dumpsys activity oom | grep systemui It will show "F/ /PER" instead of "R/ /BFGS" Change-Id: Ic6867adc9814ea96b15074feea85b7ce1cffb9e3
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions