Loading services/core/java/com/android/server/wm/DeferredDisplayUpdater.java +19 −12 Original line number Diff line number Diff line Loading @@ -171,6 +171,8 @@ public class DeferredDisplayUpdater implements DisplayUpdater { mDisplayContent.mInitialDisplayHeight); final int fromRotation = mDisplayContent.getRotation(); mDisplayContent.mAtmService.deferWindowLayout(); try { onStartCollect.run(); ProtoLog.d(WM_DEBUG_WINDOW_TRANSITIONS, Loading @@ -184,6 +186,11 @@ public class DeferredDisplayUpdater implements DisplayUpdater { mDisplayContent.mTransitionController.requestStartTransition(transition, /* startTask= */ null, /* remoteTransition= */ null, displayChange); } } finally { // Run surface placement after requestStartTransition, so shell side can receive // the transition request before handling task info changes. mDisplayContent.mAtmService.continueWindowLayout(); } }); } Loading services/core/java/com/android/server/wm/DisplayContent.java +6 −1 Original line number Diff line number Diff line Loading @@ -6175,7 +6175,12 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp * @param onDisplayChangeApplied callback that is called when the changes are applied */ void requestDisplayUpdate(@NonNull Runnable onDisplayChangeApplied) { mAtmService.deferWindowLayout(); try { mDisplayUpdater.updateDisplayInfo(onDisplayChangeApplied); } finally { mAtmService.continueWindowLayout(); } } void onDisplayInfoUpdated(@NonNull DisplayInfo newDisplayInfo) { Loading Loading
services/core/java/com/android/server/wm/DeferredDisplayUpdater.java +19 −12 Original line number Diff line number Diff line Loading @@ -171,6 +171,8 @@ public class DeferredDisplayUpdater implements DisplayUpdater { mDisplayContent.mInitialDisplayHeight); final int fromRotation = mDisplayContent.getRotation(); mDisplayContent.mAtmService.deferWindowLayout(); try { onStartCollect.run(); ProtoLog.d(WM_DEBUG_WINDOW_TRANSITIONS, Loading @@ -184,6 +186,11 @@ public class DeferredDisplayUpdater implements DisplayUpdater { mDisplayContent.mTransitionController.requestStartTransition(transition, /* startTask= */ null, /* remoteTransition= */ null, displayChange); } } finally { // Run surface placement after requestStartTransition, so shell side can receive // the transition request before handling task info changes. mDisplayContent.mAtmService.continueWindowLayout(); } }); } Loading
services/core/java/com/android/server/wm/DisplayContent.java +6 −1 Original line number Diff line number Diff line Loading @@ -6175,7 +6175,12 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp * @param onDisplayChangeApplied callback that is called when the changes are applied */ void requestDisplayUpdate(@NonNull Runnable onDisplayChangeApplied) { mAtmService.deferWindowLayout(); try { mDisplayUpdater.updateDisplayInfo(onDisplayChangeApplied); } finally { mAtmService.continueWindowLayout(); } } void onDisplayInfoUpdated(@NonNull DisplayInfo newDisplayInfo) { Loading