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

Commit a5fe7201 authored by Jackson Michael's avatar Jackson Michael Committed by Jackson Michael Moreira Miranda
Browse files

Main trace for "start user"

Inserting a main trace for "start user" to facilitate the analysis of a regression

Bug: 259407252
Test: Manual test
Change-Id: I3a61f030ab24e9a464f3f9ab82ae6491bef9b27c
parent 7a298821
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
@@ -2153,6 +2153,8 @@ final class ActivityManagerShellCommand extends ShellCommand {
        boolean success;
        String displaySuffix;

        Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "shell_runStartUser" + userId);
        try {
            if (displayId == Display.INVALID_DISPLAY) {
                success = mInterface.startUserInBackgroundWithListener(userId, waiter);
                displaySuffix = "";
@@ -2167,6 +2169,9 @@ final class ActivityManagerShellCommand extends ShellCommand {
            if (wait && success) {
                success = waiter.waitForFinish(USER_OPERATION_TIMEOUT_MS);
            }
        } finally {
            Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
        }

        if (success) {
            pw.println("Success: user started" + displaySuffix);