summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-04-12 16:55:11 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-04-13 01:12:33 +0800
commit17e38420c3c2a2a4c57a1effe0f9c7e3ea36b8fc (patch)
tree806f124d6e71b81da691bec9dece5b1f086e0b4c /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4f1adafc680df3c8d85b5467f5fa9921b7197346 (diff)
Ensure to update top process state when launching activity
- Combine addPackage, clearWaitingToKill and updateProcessInfo into onStartActivity that reduces the amount of messages and acquiring lock. - Invoke onStartActivity after setting activity state to ensure oom adjustment uses the latest state (currently the order is ensured by lock contention but it is too implicit). - Make the message of onStartActivity always enqueue at front so the process can gain the top state earlier. Test: AppLaunchTest Bug: 123043091 Change-Id: Id8d00273a5dc88526c3c158c49423c15fb99a0d5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions