Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91a82aaa authored by Collin Fijalkovich's avatar Collin Fijalkovich
Browse files

Add tracepoint for reportFullyDrawn

Adds in a tracepoint for the app startup reportFullyDrawn API under the
activity manager category.

Test: Flashed build and took a trace of messages, verified RFD
tracepoint triggered.
Bug: 172604392

Change-Id: I86733f70bdd4902ec63d9922d7418c648d4089cc
parent 9d49f1e4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2701,12 +2701,18 @@ public class Activity extends ContextThemeWrapper
     */
    public void reportFullyDrawn() {
        if (mDoReportFullyDrawn) {
            if (Trace.isTagEnabled(Trace.TRACE_TAG_ACTIVITY_MANAGER)) {
                Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER,
                        "reportFullyDrawn() for " + mComponent.toShortString());
            }
            mDoReportFullyDrawn = false;
            try {
                ActivityTaskManager.getService().reportActivityFullyDrawn(
                        mToken, mRestoredFromBundle);
                VMRuntime.getRuntime().notifyStartupCompleted();
            } catch (RemoteException e) {
            } finally {
                Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
            }
        }
    }