summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author David Stevens <stevensd@google.com> 2024-09-27 12:52:34 +0900
committer Eric Lok <lokeric@google.com> 2025-02-18 07:14:07 +0000
commit289d36c44005ca335635dd20405967803cc4f784 (patch)
tree9a2f68893d0f2fe13f916b68df5546cc2af94aa1 /libs/androidfw/Util.cpp
parent3e8f31fbeb593168e27fac571fd00d8c02c6189f (diff)
Implement perceptible tasks
Add a hidden API to allow specifying that a task is perceptible. All activities in the task will have an oom_adj score of initially perceptible, and they will be treated as active for the purpose of computing ActivityManager#isUidActive(). oom_adj is downgraded to previous_app after a timeout period (currently 5min) Bug: 370890207 Test: atest com.android.server.am.MockingOomAdjusterTests#testPerceptibleAdjustment + Manual testing Flag: com.android.server.am.perceptible_tasks Change-Id: I3cbc2c4d0fb8cac9d3bce906aaa32579d41b2987
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions