summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-09-08 15:57:39 -0600
committerRiddle Hsu <riddlehsu@google.com>2021-09-08 11:47:36 +0000
commit1d3084bb0e1b84a3e55948759e816d977b19709f (patch)
tree433a3f4c2cce9d4cbabaf622412e41dc1634ae3d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent08774f2ffc033d4e8186b5a7914b7e08a1fed84c (diff)
Consider process priority of unknown visibility launching app
When launching a show-when-locked activity on keyguard or switch between show-when-locked activities while keyguard is locked, because the activity visibility may be unknown before knowing whether it can show on keyguard, the device may enter sleeping state before the activity becomes visible. That causes the power mode and top process state are lost during launching the app and slow down the launch time. So add a new flag to indicate that if there are still unknown visibility records, then keep the power mode and top process state. This may improve 30% launch time for the cases. Currently it only applies when the caller is no system ui because the launch time may be affected by counting the time of double resume-stop lifecycle depends on the timing of keyguard-going-away. And the case should be addressed once keyguard remote animation is enabled in the future, that will trigger keyguard-going-away earlier. Bug: 197963579 Test: atest ActivityTaskManagerServiceTests#testUpdateSleep Change-Id: If8beb4547be8dad3748474d0813729516f502798
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions