OSDN Git Service

Call notifyStartupCompleted from reportFullyDrawn
authorMathieu Chartier <mathieuc@google.com>
Thu, 7 Mar 2019 17:05:44 +0000 (09:05 -0800)
committerMathieu Chartier <mathieuc@google.com>
Wed, 13 Mar 2019 05:01:58 +0000 (05:01 +0000)
ART will now know when startup is startup is finished.

Test: manual
Bug: 120671223
Bug: 123377072

(cherry-picked from commit 63e14c10b3f7b2c9709b98cb9f128a2a817d4968)

Merged-In: I1134f66792bddc9ab33606fa4c2807b3918d5261
Change-Id: I1134f66792bddc9ab33606fa4c2807b3918d5261

core/java/android/app/Activity.java

index 4b4611e..5f99d6a 100644 (file)
@@ -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) {
             }
         }