@@ -7391,8 +7391,11 @@ private final int performLayoutLockedInner(boolean initial, boolean updateInputW
73917391 final int N = mWindows .size ();
73927392 int i ;
73937393
7394- if (DEBUG_LAYOUT ) Slog .v (TAG , "performLayout: needed="
7395- + mLayoutNeeded + " dw=" + dw + " dh=" + dh );
7394+ if (DEBUG_LAYOUT ) {
7395+ Slog .v (TAG , "-------------------------------------" );
7396+ Slog .v (TAG , "performLayout: needed="
7397+ + mLayoutNeeded + " dw=" + dw + " dh=" + dh );
7398+ }
73967399
73977400 mPolicy .beginLayoutLw (dw , dh , mRotation );
73987401
@@ -7409,19 +7412,20 @@ private final int performLayoutLockedInner(boolean initial, boolean updateInputW
74097412 // Don't do layout of a window if it is not visible, or
74107413 // soon won't be visible, to avoid wasting time and funky
74117414 // changes while a window is animating away.
7412- final AppWindowToken atoken = win .mAppToken ;
7413- final boolean gone = win .mViewVisibility == View .GONE
7414- || !win .mRelayoutCalled
7415- || (atoken == null && win .mRootToken .hidden )
7416- || (atoken != null && atoken .hiddenRequested )
7417- || win .mAttachedHidden
7418- || win .mExiting || win .mDestroying ;
7415+ final boolean gone = win .isGoneForLayoutLw ();
74197416
74207417 if (DEBUG_LAYOUT && !win .mLayoutAttached ) {
7421- Slog .v (TAG , "First pass " + win
7418+ Slog .v (TAG , "1ST PASS " + win
74227419 + ": gone=" + gone + " mHaveFrame=" + win .mHaveFrame
74237420 + " mLayoutAttached=" + win .mLayoutAttached );
7424- if (gone ) Slog .v (TAG , " (mViewVisibility="
7421+ final AppWindowToken atoken = win .mAppToken ;
7422+ if (gone ) Slog .v (TAG , " GONE: mViewVisibility="
7423+ + win .mViewVisibility + " mRelayoutCalled="
7424+ + win .mRelayoutCalled + " hidden="
7425+ + win .mRootToken .hidden + " hiddenRequested="
7426+ + (atoken != null && atoken .hiddenRequested )
7427+ + " mAttachedHidden=" + win .mAttachedHidden );
7428+ else Slog .v (TAG , " VIS: mViewVisibility="
74257429 + win .mViewVisibility + " mRelayoutCalled="
74267430 + win .mRelayoutCalled + " hidden="
74277431 + win .mRootToken .hidden + " hiddenRequested="
@@ -7443,7 +7447,7 @@ private final int performLayoutLockedInner(boolean initial, boolean updateInputW
74437447 win .prelayout ();
74447448 mPolicy .layoutWindowLw (win , win .mAttrs , null );
74457449 win .mLayoutSeq = seq ;
7446- if (DEBUG_LAYOUT ) Slog .v (TAG , "-> mFrame="
7450+ if (DEBUG_LAYOUT ) Slog .v (TAG , " LAYOUT: mFrame="
74477451 + win .mFrame + " mContainingFrame="
74487452 + win .mContainingFrame + " mDisplayFrame="
74497453 + win .mDisplayFrame );
@@ -7461,7 +7465,7 @@ private final int performLayoutLockedInner(boolean initial, boolean updateInputW
74617465 WindowState win = mWindows .get (i );
74627466
74637467 if (win .mLayoutAttached ) {
7464- if (DEBUG_LAYOUT ) Slog .v (TAG , "Second pass " + win
7468+ if (DEBUG_LAYOUT ) Slog .v (TAG , "2ND PASS " + win
74657469 + " mHaveFrame=" + win .mHaveFrame
74667470 + " mViewVisibility=" + win .mViewVisibility
74677471 + " mRelayoutCalled=" + win .mRelayoutCalled );
@@ -7479,7 +7483,7 @@ private final int performLayoutLockedInner(boolean initial, boolean updateInputW
74797483 win .prelayout ();
74807484 mPolicy .layoutWindowLw (win , win .mAttrs , win .mAttachedWindow );
74817485 win .mLayoutSeq = seq ;
7482- if (DEBUG_LAYOUT ) Slog .v (TAG , "-> mFrame="
7486+ if (DEBUG_LAYOUT ) Slog .v (TAG , " LAYOUT: mFrame="
74837487 + win .mFrame + " mContainingFrame="
74847488 + win .mContainingFrame + " mDisplayFrame="
74857489 + win .mDisplayFrame );
0 commit comments