Call notifyStartupCompleted from reportFullyDrawn
ART will now know when startup is startup is finished.
Test: manual
Bug: 120671223
Bug: 123377072
(cherry-picked from commit 63e14c10b3)
Merged-In: I1134f66792bddc9ab33606fa4c2807b3918d5261
Change-Id: I1134f66792bddc9ab33606fa4c2807b3918d5261
This commit is contained in:
@@ -131,6 +131,8 @@ import com.android.internal.app.ToolbarActionBar;
|
||||
import com.android.internal.app.WindowDecorActionBar;
|
||||
import com.android.internal.policy.PhoneWindow;
|
||||
|
||||
import dalvik.system.VMRuntime;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.PrintWriter;
|
||||
import java.lang.annotation.Retention;
|
||||
@@ -2052,6 +2054,7 @@ public class Activity extends ContextThemeWrapper
|
||||
mDoReportFullyDrawn = false;
|
||||
try {
|
||||
ActivityManager.getService().reportActivityFullyDrawn(mToken, mRestoredFromBundle);
|
||||
VMRuntime.getRuntime().notifyStartupCompleted();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user