summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2018-11-13 14:34:05 -0800
committerVishnu Nair <vishnun@google.com>2018-11-13 14:34:05 -0800
commit9ba31654615cdd41b9b2400afac8526aa79e3e6c (patch)
tree6d85f4a43782fe015f2aedfe33c6f1ed280ef526 /tools/aapt2/java/JavaClassGenerator.cpp
parent8e3554a156f069bab111789f1cbc9a69090a505d (diff)
AM: Fix invalid hot launch app metrics seen with quickstep
When quickstep is enabled, and the home button is pressed, AML receives two launches. The second launch is always incomplete. When an activity is then launched, the Launcher activity is treated as a trampoline activity and the launch will be reported as a hot launch with inflated times. The second launch is incomplete because we never get a window's drawn message for the second launch. We solve this by keeping track of windows drawn state in the Activity Record. If an activity is launched and its windows are already drawn, then we abort the launch metrics. Test: manual test with quickstep Test: atest ActivityMetricsLoggerTest Bug: 119221454 Change-Id: Id34a1c42c9b2ea356757109fedf5e2a1a3b020c8 (cherry picked from commit c1d2ff60f0f95cdfdfe8d89c9326ae5f16e7adc4)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions