diff options
author | Riddle Hsu <riddlehsu@google.com> | 2021-04-29 20:14:41 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2021-05-04 21:39:40 +0800 |
commit | a808b65309da2fce9e5410dc1cd64fc967415fe7 (patch) | |
tree | 4ad0ef728f9b5043f47cf7b04abb88e6520d9d9e /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 285e3754084cfa88abb9629a6f4f07c8cc3bb809 (diff) |
Tell activity metrics logger whether a new activity is created
That helps to distinguish hot/warm launch more accurately. In most
cases it was no problem because the previous foreground activity
needs to be pause first so the activity won't attach to process
when executing the launch request. But if all activities are
already paused and the launching activity can be resumed directly,
ATS#realStartActivityLocked will be called immediately so the
transition type becomes always hot launch. E.g. launch activity
which can occlude keyguard from lockscreen.
Also removed unused ActivityStarter#startResolvedActivity.
Bug: 186692122
Test: ActivityMetricsLoggerTests
ActivityMetricsLaunchObserverTests
Change-Id: I2bcc4bb3325c2e69e27d0deef188272c943ab6ce
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions