Loading services/core/java/com/android/server/wm/ActivityRecord.java +10 −10 Original line number Diff line number Diff line Loading @@ -1846,20 +1846,20 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mLetterboxUiController.onMovedToDisplay(mDisplayContent.getDisplayId()); } void layoutLetterbox(WindowState winHint) { mLetterboxUiController.layoutLetterbox(winHint); void layoutLetterboxIfNeeded(WindowState winHint) { mLetterboxUiController.layoutLetterboxIfNeeded(winHint); } boolean hasWallpaperBackgroundForLetterbox() { return mLetterboxUiController.hasWallpaperBackgroundForLetterbox(); } void updateLetterboxSurface(WindowState winHint, Transaction t) { mLetterboxUiController.updateLetterboxSurface(winHint, t); void updateLetterboxSurfaceIfNeeded(WindowState winHint, Transaction t) { mLetterboxUiController.updateLetterboxSurfaceIfNeeded(winHint, t); } void updateLetterboxSurface(WindowState winHint) { mLetterboxUiController.updateLetterboxSurface(winHint); void updateLetterboxSurfaceIfNeeded(WindowState winHint) { mLetterboxUiController.updateLetterboxSurfaceIfNeeded(winHint); } /** Gets the letterbox insets. The insets will be empty if there is no letterbox. */ Loading Loading @@ -4546,7 +4546,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A } super.removeChild(child); checkKeyguardFlagsChanged(); updateLetterboxSurface(child); updateLetterboxSurfaceIfNeeded(child); } void setAppLayoutChanges(int changes, String reason) { Loading Loading @@ -6036,7 +6036,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (destroyedSomething) { final DisplayContent dc = getDisplayContent(); dc.assignWindowLayers(true /*setLayoutNeeded*/); updateLetterboxSurface(null); updateLetterboxSurfaceIfNeeded(null); } } Loading Loading @@ -7688,7 +7688,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A } if (mNeedsLetterboxedAnimation) { updateLetterboxSurface(findMainWindow(), t); updateLetterboxSurfaceIfNeeded(findMainWindow(), t); mNeedsAnimationBoundsLayer = true; } Loading Loading @@ -7856,7 +7856,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mNeedsAnimationBoundsLayer = false; if (mNeedsLetterboxedAnimation) { mNeedsLetterboxedAnimation = false; updateLetterboxSurface(findMainWindow(), t); updateLetterboxSurfaceIfNeeded(findMainWindow(), t); } if (mAnimatingActivityRegistry != null) { Loading services/core/java/com/android/server/wm/DisplayContent.java +1 −1 Original line number Diff line number Diff line Loading @@ -1127,7 +1127,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp final ActivityRecord activity = w.mActivityRecord; if (activity != null && activity.isVisibleRequested()) { activity.updateLetterboxSurface(w); activity.updateLetterboxSurfaceIfNeeded(w); final boolean updateAllDrawn = activity.updateDrawnWindowStates(w); if (updateAllDrawn && !mTmpUpdateAllDrawn.contains(activity)) { mTmpUpdateAllDrawn.add(activity); Loading services/core/java/com/android/server/wm/LetterboxUiController.java +5 −5 Original line number Diff line number Diff line Loading @@ -924,21 +924,21 @@ final class LetterboxUiController { return mLetterbox == null || mLetterbox.notIntersectsOrFullyContains(rect); } void updateLetterboxSurface(WindowState winHint) { updateLetterboxSurface(winHint, mActivityRecord.getSyncTransaction()); void updateLetterboxSurfaceIfNeeded(WindowState winHint) { updateLetterboxSurfaceIfNeeded(winHint, mActivityRecord.getSyncTransaction()); } void updateLetterboxSurface(WindowState winHint, Transaction t) { void updateLetterboxSurfaceIfNeeded(WindowState winHint, Transaction t) { if (shouldNotLayoutLetterbox(winHint)) { return; } layoutLetterbox(winHint); layoutLetterboxIfNeeded(winHint); if (mLetterbox != null && mLetterbox.needsApplySurfaceChanges()) { mLetterbox.applySurfaceChanges(t); } } void layoutLetterbox(WindowState w) { void layoutLetterboxIfNeeded(WindowState w) { if (shouldNotLayoutLetterbox(w)) { return; } Loading services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -1332,7 +1332,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP updateSourceFrame(windowFrames.mFrame); if (mActivityRecord != null && !mIsChildWindow) { mActivityRecord.layoutLetterbox(this); mActivityRecord.layoutLetterboxIfNeeded(this); } mSurfacePlacementNeeded = true; mHaveFrame = true; Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +10 −10 Original line number Diff line number Diff line Loading @@ -1846,20 +1846,20 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mLetterboxUiController.onMovedToDisplay(mDisplayContent.getDisplayId()); } void layoutLetterbox(WindowState winHint) { mLetterboxUiController.layoutLetterbox(winHint); void layoutLetterboxIfNeeded(WindowState winHint) { mLetterboxUiController.layoutLetterboxIfNeeded(winHint); } boolean hasWallpaperBackgroundForLetterbox() { return mLetterboxUiController.hasWallpaperBackgroundForLetterbox(); } void updateLetterboxSurface(WindowState winHint, Transaction t) { mLetterboxUiController.updateLetterboxSurface(winHint, t); void updateLetterboxSurfaceIfNeeded(WindowState winHint, Transaction t) { mLetterboxUiController.updateLetterboxSurfaceIfNeeded(winHint, t); } void updateLetterboxSurface(WindowState winHint) { mLetterboxUiController.updateLetterboxSurface(winHint); void updateLetterboxSurfaceIfNeeded(WindowState winHint) { mLetterboxUiController.updateLetterboxSurfaceIfNeeded(winHint); } /** Gets the letterbox insets. The insets will be empty if there is no letterbox. */ Loading Loading @@ -4546,7 +4546,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A } super.removeChild(child); checkKeyguardFlagsChanged(); updateLetterboxSurface(child); updateLetterboxSurfaceIfNeeded(child); } void setAppLayoutChanges(int changes, String reason) { Loading Loading @@ -6036,7 +6036,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A if (destroyedSomething) { final DisplayContent dc = getDisplayContent(); dc.assignWindowLayers(true /*setLayoutNeeded*/); updateLetterboxSurface(null); updateLetterboxSurfaceIfNeeded(null); } } Loading Loading @@ -7688,7 +7688,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A } if (mNeedsLetterboxedAnimation) { updateLetterboxSurface(findMainWindow(), t); updateLetterboxSurfaceIfNeeded(findMainWindow(), t); mNeedsAnimationBoundsLayer = true; } Loading Loading @@ -7856,7 +7856,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A mNeedsAnimationBoundsLayer = false; if (mNeedsLetterboxedAnimation) { mNeedsLetterboxedAnimation = false; updateLetterboxSurface(findMainWindow(), t); updateLetterboxSurfaceIfNeeded(findMainWindow(), t); } if (mAnimatingActivityRegistry != null) { Loading
services/core/java/com/android/server/wm/DisplayContent.java +1 −1 Original line number Diff line number Diff line Loading @@ -1127,7 +1127,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp final ActivityRecord activity = w.mActivityRecord; if (activity != null && activity.isVisibleRequested()) { activity.updateLetterboxSurface(w); activity.updateLetterboxSurfaceIfNeeded(w); final boolean updateAllDrawn = activity.updateDrawnWindowStates(w); if (updateAllDrawn && !mTmpUpdateAllDrawn.contains(activity)) { mTmpUpdateAllDrawn.add(activity); Loading
services/core/java/com/android/server/wm/LetterboxUiController.java +5 −5 Original line number Diff line number Diff line Loading @@ -924,21 +924,21 @@ final class LetterboxUiController { return mLetterbox == null || mLetterbox.notIntersectsOrFullyContains(rect); } void updateLetterboxSurface(WindowState winHint) { updateLetterboxSurface(winHint, mActivityRecord.getSyncTransaction()); void updateLetterboxSurfaceIfNeeded(WindowState winHint) { updateLetterboxSurfaceIfNeeded(winHint, mActivityRecord.getSyncTransaction()); } void updateLetterboxSurface(WindowState winHint, Transaction t) { void updateLetterboxSurfaceIfNeeded(WindowState winHint, Transaction t) { if (shouldNotLayoutLetterbox(winHint)) { return; } layoutLetterbox(winHint); layoutLetterboxIfNeeded(winHint); if (mLetterbox != null && mLetterbox.needsApplySurfaceChanges()) { mLetterbox.applySurfaceChanges(t); } } void layoutLetterbox(WindowState w) { void layoutLetterboxIfNeeded(WindowState w) { if (shouldNotLayoutLetterbox(w)) { return; } Loading
services/core/java/com/android/server/wm/WindowState.java +1 −1 Original line number Diff line number Diff line Loading @@ -1332,7 +1332,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP updateSourceFrame(windowFrames.mFrame); if (mActivityRecord != null && !mIsChildWindow) { mActivityRecord.layoutLetterbox(this); mActivityRecord.layoutLetterboxIfNeeded(this); } mSurfacePlacementNeeded = true; mHaveFrame = true; Loading