OSDN Git Service

ActivityMetricsLogger: Fix cold launches treated incorrectly as invalid transitions
authorVishnu Nair <vishnun@google.com>
Fri, 12 Apr 2019 20:51:40 +0000 (13:51 -0700)
committerVishnu Nair <vishnun@google.com>
Fri, 12 Apr 2019 22:52:43 +0000 (15:52 -0700)
commit194c64f921a56a149385f8f4e381e22cf773eb53
tree1a877c68b3b424d4b145141cd3457c59aa9ea49e
parent8e3183e12657e05fc799a62b51828c20e43c0b43
ActivityMetricsLogger: Fix cold launches treated incorrectly as invalid transitions

In some cases where the process is killed and the activity is launched, its start result will be
START_TASK_TO_FRONT if its TaskRecord already exists. In this case the launch should be treated
as a COLD launch since the process will be created.

Bug: 130401938
Test: atest ActivityMetricsLoggerTests
Change-Id: I2841fe198d189be692c38f94829604bd1e4aa3b5
services/core/java/com/android/server/wm/ActivityMetricsLogger.java