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

Commit 9fa41441 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Android (Google) Code Review
Browse files

Merge "Remove redundant RuntimeExceptions from ProtoLogs" into main

parents 3dba1ffb 0feb3a6b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5408,8 +5408,7 @@ class Task extends TaskFragment {
        }

        // Slot the activity into the history root task and proceed
        ProtoLog.i(WM_DEBUG_ADD_REMOVE, "Adding activity %s to task %s callers: %s", r,
                activityTask, new RuntimeException("here"));
        ProtoLog.i(WM_DEBUG_ADD_REMOVE, "Adding activity %s to task %s", r, activityTask);

        if (isActivityTypeHomeOrRecents() && getActivityBelow(r) == null) {
            // If this is the first activity, don't do any fancy animations,
+12 −20
Original line number Diff line number Diff line
@@ -2661,9 +2661,8 @@ public class WindowManagerService extends IWindowManager.Stub
            win.mInRelayout = true;

            win.setViewVisibility(viewVisibility);
            ProtoLog.i(WM_DEBUG_SCREEN_ON,
                    "Relayout %s: oldVis=%d newVis=%d. %s", win, oldVisibility,
                            viewVisibility, new RuntimeException());
            ProtoLog.i(WM_DEBUG_SCREEN_ON, "Relayout %s: oldVis=%d newVis=%d", win, oldVisibility,
                    viewVisibility);
            if (becameVisible) {
                onWindowVisible(win);
            }
@@ -4028,10 +4027,8 @@ public class WindowManagerService extends IWindowManager.Stub
    public void enableScreenAfterBoot() {
        synchronized (mGlobalLock) {
            ProtoLog.i(WM_DEBUG_BOOT, "enableScreenAfterBoot: mDisplayEnabled=%b "
                            + "mForceDisplayEnabled=%b mShowingBootMessages=%b mSystemBooted=%b. "
                            + "%s",
                    mDisplayEnabled, mForceDisplayEnabled, mShowingBootMessages, mSystemBooted,
                    new RuntimeException("here"));
                            + "mForceDisplayEnabled=%b mShowingBootMessages=%b mSystemBooted=%b",
                    mDisplayEnabled, mForceDisplayEnabled, mShowingBootMessages, mSystemBooted);
            if (mSystemBooted) {
                return;
            }
@@ -4056,10 +4053,8 @@ public class WindowManagerService extends IWindowManager.Stub

    void enableScreenIfNeededLocked() {
        ProtoLog.i(WM_DEBUG_BOOT, "enableScreenIfNeededLocked: mDisplayEnabled=%b "
                        + "mForceDisplayEnabled=%b mShowingBootMessages=%b mSystemBooted=%b. "
                        + "%s",
                mDisplayEnabled, mForceDisplayEnabled, mShowingBootMessages, mSystemBooted,
                new RuntimeException("here"));
                        + "mForceDisplayEnabled=%b mShowingBootMessages=%b mSystemBooted=%b",
                mDisplayEnabled, mForceDisplayEnabled, mShowingBootMessages, mSystemBooted);
        if (mDisplayEnabled) {
            return;
        }
@@ -4091,9 +4086,8 @@ public class WindowManagerService extends IWindowManager.Stub
        synchronized (mGlobalLock) {
            ProtoLog.i(WM_DEBUG_BOOT, "performEnableScreen: mDisplayEnabled=%b"
                            + " mForceDisplayEnabled=%b" + " mShowingBootMessages=%b"
                            + " mSystemBooted=%b. %s", mDisplayEnabled,
                    mForceDisplayEnabled, mShowingBootMessages, mSystemBooted,
                    new RuntimeException("here"));
                            + " mSystemBooted=%b", mDisplayEnabled, mForceDisplayEnabled,
                    mShowingBootMessages, mSystemBooted);
            if (mDisplayEnabled) {
                return;
            }
@@ -4187,9 +4181,8 @@ public class WindowManagerService extends IWindowManager.Stub
        synchronized (mGlobalLock) {
            ProtoLog.i(WM_DEBUG_BOOT, "showBootMessage: msg=%s always=%b"
                            + " mAllowBootMessages=%b mShowingBootMessages=%b"
                            + " mSystemBooted=%b. %s", msg, always, mAllowBootMessages,
                    mShowingBootMessages, mSystemBooted,
                    new RuntimeException("here"));
                            + " mSystemBooted=%b", msg, always, mAllowBootMessages,
                    mShowingBootMessages, mSystemBooted);
            if (!mAllowBootMessages) {
                return;
            }
@@ -4213,9 +4206,8 @@ public class WindowManagerService extends IWindowManager.Stub
    public void hideBootMessagesLocked() {
        ProtoLog.i(WM_DEBUG_BOOT, "hideBootMessagesLocked: mDisplayEnabled=%b"
                        + " mForceDisplayEnabled=%b mShowingBootMessages=%b"
                        + " mSystemBooted=%b. %s", mDisplayEnabled, mForceDisplayEnabled,
                mShowingBootMessages, mSystemBooted,
                new RuntimeException("here"));
                        + " mSystemBooted=%b", mDisplayEnabled, mForceDisplayEnabled,
                mShowingBootMessages, mSystemBooted);
        if (mShowingBootMessages) {
            mShowingBootMessages = false;
            mPolicy.hideBootMessages();
+1 −2
Original line number Diff line number Diff line
@@ -385,8 +385,7 @@ class WindowStateAnimator {
                logWithStack(TAG, "Window " + this + " destroying surface "
                        + mSurfaceControl + ", session " + mSession);
            }
            ProtoLog.i(WM_SHOW_SURFACE_ALLOC, "SURFACE DESTROY: %s. %s",
                    mWin, new RuntimeException());
            ProtoLog.i(WM_SHOW_SURFACE_ALLOC, "SURFACE DESTROY: %s", mWin);
            destroySurface(t);
            if (mWallpaperControllerLocked.isWallpaperTarget(mWin)) {
                mWin.requestUpdateWallpaperIfNeeded();