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

Commit dbabf37f authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Even more debug for bug 17721767." into lmp-mr1-dev

parents 24328660 de313753
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2373,6 +2373,8 @@ public final class ActivityManagerService extends ActivityManagerNative
            }
            applyUpdateLockStateLocked(r);
        }
        EventLog.writeEvent(EventLogTags.AM_FOCUSED_ACTIVITY, mCurrentUserId,
                mFocusedActivity == null ? "NULL" : mFocusedActivity.shortComponentName);
    }
    final void clearFocusedActivity(ActivityRecord r) {
+5 −1
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ public final class ActivityStackSupervisor implements DisplayListener {

    void moveHomeStack(boolean toFront) {
        ArrayList<ActivityStack> stacks = mHomeStack.mStacks;
        int topNdx = stacks.size() - 1;
        final int topNdx = stacks.size() - 1;
        if (topNdx <= 0) {
            return;
        }
@@ -414,6 +414,10 @@ public final class ActivityStackSupervisor implements DisplayListener {
            if (DEBUG_STACK) Slog.d(TAG, "moveHomeTask: topStack old=" + topStack + " new="
                    + mFocusedStack);
        }
        EventLog.writeEvent(EventLogTags.AM_HOME_STACK_MOVED,
                mCurrentUser, toFront ? 1 : 0, stacks.get(topNdx).getStackId(),
                mFocusedStack == null ? -1 : mFocusedStack.getStackId());

        if (mService.mBooting || !mService.mBooted) {
            final ActivityRecord r = topRunningActivityLocked();
            if (r != null && r.idle) {
+6 −0
Original line number Diff line number Diff line
@@ -89,3 +89,9 @@ option java_package com.android.server.am

# Activity fully drawn time
30042 am_activity_fully_drawn_time (User|1|5),(Token|1|5),(Component Name|3),(time|2|3)

# Activity focused
30043 am_focused_activity (User|1|5),(Component Name|3)

# Home Stack brought to front or rear
30044 am_home_stack_moved (User|1|5),(To Front|1|5),(Top Stack Id|1|5),(Focused Stack Id|1|5)