Loading data/etc/services.core.protolog.json +6 −0 Original line number Diff line number Diff line Loading @@ -4453,6 +4453,12 @@ "group": "WM_DEBUG_BACK_PREVIEW", "at": "com\/android\/server\/wm\/BackNavigationController.java" }, "1946983717": { "message": "Waiting for screen on due to %s", "level": "VERBOSE", "group": "WM_DEBUG_STATES", "at": "com\/android\/server\/wm\/TaskFragment.java" }, "1947239194": { "message": "Deferring rotation, still finishing previous rotation", "level": "VERBOSE", Loading services/core/java/com/android/server/wm/TaskFragment.java +8 −4 Original line number Diff line number Diff line Loading @@ -926,10 +926,14 @@ class TaskFragment extends WindowContainer<WindowContainer> { boolean sleepIfPossible(boolean shuttingDown) { boolean shouldSleep = true; if (mResumedActivity != null) { if (!shuttingDown && mResumedActivity.canTurnScreenOn()) { ProtoLog.v(WM_DEBUG_STATES, "Waiting for screen on due to %s", mResumedActivity); } else { // Still have something resumed; can't sleep until it is paused. ProtoLog.v(WM_DEBUG_STATES, "Sleep needs to pause %s", mResumedActivity); startPausing(false /* userLeaving */, true /* uiSleeping */, null /* resuming */, "sleep"); } shouldSleep = false; } else if (mPausingActivity != null) { // Still waiting for something to pause; can't sleep yet. Loading Loading
data/etc/services.core.protolog.json +6 −0 Original line number Diff line number Diff line Loading @@ -4453,6 +4453,12 @@ "group": "WM_DEBUG_BACK_PREVIEW", "at": "com\/android\/server\/wm\/BackNavigationController.java" }, "1946983717": { "message": "Waiting for screen on due to %s", "level": "VERBOSE", "group": "WM_DEBUG_STATES", "at": "com\/android\/server\/wm\/TaskFragment.java" }, "1947239194": { "message": "Deferring rotation, still finishing previous rotation", "level": "VERBOSE", Loading
services/core/java/com/android/server/wm/TaskFragment.java +8 −4 Original line number Diff line number Diff line Loading @@ -926,10 +926,14 @@ class TaskFragment extends WindowContainer<WindowContainer> { boolean sleepIfPossible(boolean shuttingDown) { boolean shouldSleep = true; if (mResumedActivity != null) { if (!shuttingDown && mResumedActivity.canTurnScreenOn()) { ProtoLog.v(WM_DEBUG_STATES, "Waiting for screen on due to %s", mResumedActivity); } else { // Still have something resumed; can't sleep until it is paused. ProtoLog.v(WM_DEBUG_STATES, "Sleep needs to pause %s", mResumedActivity); startPausing(false /* userLeaving */, true /* uiSleeping */, null /* resuming */, "sleep"); } shouldSleep = false; } else if (mPausingActivity != null) { // Still waiting for something to pause; can't sleep yet. Loading