summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-10-19 16:51:59 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-10-19 21:10:27 +0800
commit550ec7d7040cd2fd3109964df6270b5c7c635b42 (patch)
treec84494c356c2a49c9143e0bd15ad031953c8755a /rs/java/android/renderscript/ProgramStore.java
parenta3eea61e3aa91c10a82bc2d201570ffa93da06af (diff)
Fix that the top process is not cleared after device sleeps
Commit 8f7dd59 makes getTopApp lock-free by the field mTopApp. And it is updated when the top activity is changed. When making device sleep, the given top resumed activity is null and the pausing activity is chosen. But there won't be next top activity change to replace the mTopApp of previous pausing activity. That causes the process stays on top state. This change clears mTopApp when pausing the top activity for sleeping. This also aligns the condition in OomAdjuster that if the current top state is not PROCESS_STATE_TOP, there won't be a top process. Fixes: 171060345 Test: atest ActivityTaskManagerServiceTests#testUpdateSleep CtsStatsdAtomHostTestCases:ProcStateAtomTests#testTopSleeping Change-Id: Ie96113ab4002a559a5af974f83b36f56f28ff438
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions