OSDN Git Service

fix "am start -W" hang on activity start
authorChong Zhang <chz@google.com>
Sat, 23 Apr 2016 21:33:55 +0000 (14:33 -0700)
committerChong Zhang <chz@google.com>
Sat, 23 Apr 2016 21:37:12 +0000 (14:37 -0700)
commitafb776d5447e19565c9a826a554911decb9ed92a
tree5b17dd61469b3fa5a546029781720c556486cde8
parenteefff3742de62101341128a32b227a25ed22df06
fix "am start -W" hang on activity start

Normally launch time counts from the point when the activity is
resumed, to when the first window is drawn. However the activity
could become visible before it is resumed, due to some other
activity in the same task being launched. In this case we still
need to report launch time to unblock
ActivityStarter.startActivityMayWait().

bug: 28333487
Change-Id: I445b602f495ed0c3cb669e2d81a137280317534f
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/TaskRecord.java