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

Commit 4bd26bef authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add event logging for UserState transitions."

parents a3fa8135 97c6d3d4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,3 +112,5 @@ option java_package com.android.server.am
# Report changing memory conditions (Values are ProcessStats.ADJ_MEM_FACTOR* constants)
30050 am_mem_factor (Current|1|5),(Previous|1|5)

# UserState has changed
30051 am_user_state_changed (id|1|5),(state|1|5)
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ public final class UserState {
    public boolean setState(int oldState, int newState) {
        if (state == oldState) {
            setState(newState);
            EventLogTags.writeAmUserStateChanged(mHandle.getIdentifier(), newState);
            return true;
        } else {
            Slog.w(TAG, "Expected user " + mHandle.getIdentifier() + " in state "