Loading services/core/java/com/android/server/wm/DisplayContent.java +12 −1 Original line number Diff line number Diff line Loading @@ -409,6 +409,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo private InputMonitor mInputMonitor; /** Caches the value whether told display manager that we have content. */ private boolean mLastHasContent; /** * The input method window for this display. */ Loading Loading @@ -3092,8 +3095,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo forAllWindows(mApplySurfaceChangesTransaction, true /* traverseTopToBottom */); prepareSurfaces(); mLastHasContent = mTmpApplySurfaceChangesTransactionState.displayHasContent; mService.mDisplayManagerInternal.setDisplayProperties(mDisplayId, mTmpApplySurfaceChangesTransactionState.displayHasContent, mLastHasContent, mTmpApplySurfaceChangesTransactionState.preferredRefreshRate, mTmpApplySurfaceChangesTransactionState.preferredModeId, true /* inTraversal, must call performTraversalInTrans... below */); Loading Loading @@ -4267,4 +4271,11 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo InputMonitor getInputMonitor() { return mInputMonitor; } /** * @return Cached value whether we told display manager that we have content. */ boolean getLastHasContent() { return mLastHasContent; } } services/core/java/com/android/server/wm/WindowStateAnimator.java +11 −9 Original line number Diff line number Diff line Loading @@ -1176,6 +1176,7 @@ class WindowStateAnimator { if (mIsWallpaper) { w.dispatchWallpaperVisibility(true); } if (!w.getDisplayContent().getLastHasContent()) { // This draw means the difference between unique content and mirroring. // Run another pass through performLayout to set mHasContent in the // LogicalDisplay. Loading @@ -1186,6 +1187,7 @@ class WindowStateAnimator { "showSurfaceRobustlyLocked " + w, mAnimator.getPendingLayoutChanges(w.getDisplayId())); } } } else { w.setOrientationChanging(false); } Loading Loading
services/core/java/com/android/server/wm/DisplayContent.java +12 −1 Original line number Diff line number Diff line Loading @@ -409,6 +409,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo private InputMonitor mInputMonitor; /** Caches the value whether told display manager that we have content. */ private boolean mLastHasContent; /** * The input method window for this display. */ Loading Loading @@ -3092,8 +3095,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo forAllWindows(mApplySurfaceChangesTransaction, true /* traverseTopToBottom */); prepareSurfaces(); mLastHasContent = mTmpApplySurfaceChangesTransactionState.displayHasContent; mService.mDisplayManagerInternal.setDisplayProperties(mDisplayId, mTmpApplySurfaceChangesTransactionState.displayHasContent, mLastHasContent, mTmpApplySurfaceChangesTransactionState.preferredRefreshRate, mTmpApplySurfaceChangesTransactionState.preferredModeId, true /* inTraversal, must call performTraversalInTrans... below */); Loading Loading @@ -4267,4 +4271,11 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo InputMonitor getInputMonitor() { return mInputMonitor; } /** * @return Cached value whether we told display manager that we have content. */ boolean getLastHasContent() { return mLastHasContent; } }
services/core/java/com/android/server/wm/WindowStateAnimator.java +11 −9 Original line number Diff line number Diff line Loading @@ -1176,6 +1176,7 @@ class WindowStateAnimator { if (mIsWallpaper) { w.dispatchWallpaperVisibility(true); } if (!w.getDisplayContent().getLastHasContent()) { // This draw means the difference between unique content and mirroring. // Run another pass through performLayout to set mHasContent in the // LogicalDisplay. Loading @@ -1186,6 +1187,7 @@ class WindowStateAnimator { "showSurfaceRobustlyLocked " + w, mAnimator.getPendingLayoutChanges(w.getDisplayId())); } } } else { w.setOrientationChanging(false); } Loading