summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2017-05-12 17:27:46 +0200
committerJorim Jaggi <jjaggi@google.com>2017-05-16 17:26:54 +0200
commitcf4411df43be9b1532ce30f398ef42c8750e7510 (patch)
tree6d5fc7baf84e9de1f47b2585997b334650194a57 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd5f195fdb2c7f05801e1f1e82adf0d006e370bf6 (diff)
Optimize hot launching recents
Rearrange how we generate the transition specs, which involves creating a thumbnail on the mainthread (about 10ms on large devices): First, we put launching the activity onto a handler thread (with default priority), to free up the main thread. Then, we immediately start generating the thumbnail such that when the future calls us we have the generated spec already handy. For that we need to be able to supply a specs future into ActivityOptions, to avoid race conditions. Furthermore we need to make sure not to call into WM while creating specs, to avoid WM lock contention. Test: App -> Recents -> Same app, inspect app transition logs Test: Double tap recents for quick switching Bug: 32668632 Change-Id: Ic6ec65c2560f67cade3b5ddde9f79ee13e9ba32c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions