summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2018-09-05 18:52:35 -0700
committerAmith Yamasani <yamasani@google.com>2018-09-14 15:52:40 -0700
commite5bfeee745df5d411cc624fdf600721bc54b28a7 (patch)
tree73faef3cbc79543973bc5e6b389e38f9780a2ebf /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2518b2899ca62f2135adbd1fc512fe34e9ef6b93 (diff)
Keep app in high memory adjust if moving from TOP to FGS
If an app was in the TOP state and immediately moved to a foreground service state, then try harder to keep it in memory for another 20 seconds before releasing the memory to bound foreground services. Using an oom_adj value of 50 which is between "fore" and "vis". So BFGS apps might get killed ("vis") before this recently FGS'ed app. That way any app that has a lot of state in memory that it needs to persist before getting killed has a chance to do so. Also bind NotificationListeners with a special bind flag to rank them below FGS (perceptible adj) so that they can be killed before any other foreground services or bound services get killed. Bug: 110969183 Test: Manual for now. Take a bunch of portrait pictures and hit home, while being under memory pressure with a bunch of notification listeners. Change-Id: Ie8934c2331afe6450c582b209869aeca7272f58a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions