summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-10-22 19:14:00 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-10-22 22:27:11 +0800
commita04091abbe5cd17e342343932adc161cc11cff15 (patch)
treef821729a3b9eb1fef4c38ca31ccbbec266c577f1 /rs/java/android/renderscript/ProgramStore.java
parent95e87963d2bd18b7ce58c48a2f56f2d8f22d3134 (diff)
Fix process state of top app while device is sleeping
The assumption of commit 550ec7d is wrong. The top app record is still needed for assigning PROCESS_STATE_TOP_SLEEPING while device is sleeping. Because this change reverts 550ec7d, to fix original problem (171060345) that top app is not updated if there is an order change of activity while device is sleeping, a new invocation of updateTopApp is added for the case both mResumedActivity and prevTopActivity are null. So the process of the next top non-resumed activity can still be set as top app. Bug: 159104503 Bug: 171060345 Fixes: 171383274 Test: ActivityTaskManagerServiceTests#testUpdateSleep CtsStatsdAtomHostTestCases:ProcStateAtomTests#testTopSleeping CtsAppTestCases:ActivityManagerTest#testKillingPidsOnImperceptible Change-Id: I9e6d530b3be9a73f281a8e1dfa135259853a380c
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions