OSDN Git Service

[DO NOT MERGE] AML: Handle NoDisplayActivities correctly
authorVishnu Nair <vishnun@google.com>
Mon, 28 Jan 2019 17:30:08 +0000 (09:30 -0800)
committerVishnu Nair <vishnun@google.com>
Mon, 28 Jan 2019 17:30:08 +0000 (09:30 -0800)
commit6397dd1c922697b4cf09dd23124f67d0578328b4
tree9bfccd40bb8849ca4c2612871294735e45e9d858
parent5d378dfeacb2bf156b3763b2936c88fe55e5adc8
[DO NOT MERGE] AML: Handle NoDisplayActivities correctly

There is a race when trying to determine if the launching activity is a trampoline activity or if
its a NoDisplay activity that will never draw on screen.

If the activity becomes invisible, its visible state in ActivityRecord may not change to invisible
before the activity finishes. This is a quick fix to also check if ActivityRecord is finishing to
determine if the activity is no longer visible.

Bug: 80380150
Test: atest CtsActivityManagerDeviceTestCases:ActivityMetricsLoggerTests
Change-Id: I55251f03db7390d6a3465eff851c4635680a2e07
services/core/java/com/android/server/am/ActivityMetricsLogger.java