summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2020-06-02 16:22:00 -0700
committerHui Yu <huiyu@google.com>2020-06-08 15:35:26 -0700
commit08ab38498984462e2bba4b73b74243fec2fa1c2d (patch)
tree81ad56804b368b222cacb25649f52039898fd581 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta15a870d4e8223eb1062633847a3310bafe1e01f (diff)
Add uid to PendingStartActivityUids when activity resumed.
Previously we add uid to PendingStartActivityUids at activity start. Now we also add uid to PendingStartActivityUids at activity resumed because we can not wait for updateOomAdj() to be run by a runnable that WindowManager send to DisplayThread at activity resumed. At ActivityManagerService.getProcessStatesAndOomScoresForPIDs(), if the ProcessRecord is in PendingStartActivityUids, we hard code the ProcessRecord to be PROCESS_STATE_TOP and FOREGROUND_APP_ADJ, ahead of result of updateOomAdj() the comes later. Bug: 155143386, 157180494 Test: Reproduce steps of 155143386, swipe between GCA and Snapchat, camera access is allowed after swipe. Change-Id: Ia11b0e3400e4df851b250beb01dcfda43580668b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions