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

Commit 88aef756 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Show user running state in dumpsys user.

Test: Manual test with: watch adb shell dumpsys user
Change-Id: I38f36331b95e2602b09d60bee75a65f62cf85a86
parent 6f3bc058
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ public final class UserState {
        state = newState;
    }

    static String stateToString(int state) {
    public static String stateToString(int state) {
        switch (state) {
            case STATE_BOOTING: return "BOOTING";
            case STATE_RUNNING_LOCKED: return "RUNNING_LOCKED";
+6 −0
Original line number Diff line number Diff line
@@ -3389,6 +3389,12 @@ public class UserManagerService extends IUserManager.Stub {
                        pw.print(" <partial>");
                    }
                    pw.println();
                    pw.print("    State: ");
                    final int state;
                    synchronized (mUserStates) {
                        state = mUserStates.get(userId, -1);
                    }
                    pw.println(UserState.stateToString(state));
                    pw.print("    Created: ");
                    if (userInfo.creationTime == 0) {
                        pw.println("<unknown>");