diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-10-29 00:20:50 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-10-30 22:36:20 +0800 |
commit | 1add173dda5f743a1491b1338c6313040dd3ce04 (patch) | |
tree | 7e5d9ea12876ce69ef6e3f3d083e2af32004a841 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | f2d1d264793831f07b689e534366fb55f12174cc (diff) |
Store the existence of home and previous process
WindowProcessController can already know whether there is a home
or previous process. Though a refresh of the states require a
full oom-adj update, trimApplicationsLocked and appDiedLocked
should be frequently enough to update.
This removes potential lock contention when memFactor becomes
not ADJ_MEM_FACTOR_NORMAL when updating oom-adj. This also
reduces the dependency of internal interface across packages.
Bug: 159104503
Bug: 171989664
Test: Launch several apps and run memeater to trigger low mem.
Check the output of "adb shell dumpsys activity processes"
and set break point at AppProfiler to observe the values.
Change-Id: I2fe0eeccdde3ea687ce0d5d856beb3aee886c185
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions