Loading services/core/java/com/android/server/wm/AbsAppSnapshotController.java +0 −6 Original line number Diff line number Diff line Loading @@ -382,12 +382,6 @@ abstract class AbsAppSnapshotController<TYPE extends WindowContainer, } return null; } if (activity.hasCommittedReparentToAnimationLeash()) { if (DEBUG_SCREENSHOT) { Slog.w(TAG_WM, "Failed to take screenshot. App is animating " + activity); } return null; } final WindowState mainWindow = activity.findMainWindow(); if (mainWindow == null) { Slog.w(TAG_WM, "Failed to take screenshot. No main window for " + source); Loading services/core/java/com/android/server/wm/BackNavigationController.java +1 −2 Original line number Diff line number Diff line Loading @@ -357,8 +357,7 @@ class BackNavigationController { removedWindowContainer); mBackAnimationInProgress = builder != null; if (mBackAnimationInProgress) { if (removedWindowContainer.hasCommittedReparentToAnimationLeash() || removedWindowContainer.mTransitionController.inTransition() if (removedWindowContainer.mTransitionController.inTransition() || mWindowManagerService.mSyncEngine.hasPendingSyncSets()) { ProtoLog.w(WM_DEBUG_BACK_PREVIEW, "Pending back animation due to another animation is running"); Loading services/core/java/com/android/server/wm/WindowContainer.java +0 −17 Original line number Diff line number Diff line Loading @@ -237,12 +237,6 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer< /** Total number of elements in this subtree, including our own hierarchy element. */ private int mTreeWeight = 1; /** * Indicates whether we are animating and have committed the transaction to reparent our * surface to the animation leash */ private boolean mCommittedReparentToAnimationLeash; private int mSyncTransactionCommitCallbackDepth = 0; /** Interface for {@link #isAnimating} to check which cases for the container is animating. */ Loading Loading @@ -2871,22 +2865,11 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer< } void prepareSurfaces() { // If a leash has been set when the transaction was committed, then the leash reparent has // been committed. mCommittedReparentToAnimationLeash = mSurfaceAnimator.hasLeash(); for (int i = 0; i < mChildren.size(); i++) { mChildren.get(i).prepareSurfaces(); } } /** * @return true if the reparent to animation leash transaction has been committed, false * otherwise. */ boolean hasCommittedReparentToAnimationLeash() { return mCommittedReparentToAnimationLeash; } /** * Trigger a call to prepareSurfaces from the animation thread, such that pending transactions * will be applied. Loading Loading
services/core/java/com/android/server/wm/AbsAppSnapshotController.java +0 −6 Original line number Diff line number Diff line Loading @@ -382,12 +382,6 @@ abstract class AbsAppSnapshotController<TYPE extends WindowContainer, } return null; } if (activity.hasCommittedReparentToAnimationLeash()) { if (DEBUG_SCREENSHOT) { Slog.w(TAG_WM, "Failed to take screenshot. App is animating " + activity); } return null; } final WindowState mainWindow = activity.findMainWindow(); if (mainWindow == null) { Slog.w(TAG_WM, "Failed to take screenshot. No main window for " + source); Loading
services/core/java/com/android/server/wm/BackNavigationController.java +1 −2 Original line number Diff line number Diff line Loading @@ -357,8 +357,7 @@ class BackNavigationController { removedWindowContainer); mBackAnimationInProgress = builder != null; if (mBackAnimationInProgress) { if (removedWindowContainer.hasCommittedReparentToAnimationLeash() || removedWindowContainer.mTransitionController.inTransition() if (removedWindowContainer.mTransitionController.inTransition() || mWindowManagerService.mSyncEngine.hasPendingSyncSets()) { ProtoLog.w(WM_DEBUG_BACK_PREVIEW, "Pending back animation due to another animation is running"); Loading
services/core/java/com/android/server/wm/WindowContainer.java +0 −17 Original line number Diff line number Diff line Loading @@ -237,12 +237,6 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer< /** Total number of elements in this subtree, including our own hierarchy element. */ private int mTreeWeight = 1; /** * Indicates whether we are animating and have committed the transaction to reparent our * surface to the animation leash */ private boolean mCommittedReparentToAnimationLeash; private int mSyncTransactionCommitCallbackDepth = 0; /** Interface for {@link #isAnimating} to check which cases for the container is animating. */ Loading Loading @@ -2871,22 +2865,11 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer< } void prepareSurfaces() { // If a leash has been set when the transaction was committed, then the leash reparent has // been committed. mCommittedReparentToAnimationLeash = mSurfaceAnimator.hasLeash(); for (int i = 0; i < mChildren.size(); i++) { mChildren.get(i).prepareSurfaces(); } } /** * @return true if the reparent to animation leash transaction has been committed, false * otherwise. */ boolean hasCommittedReparentToAnimationLeash() { return mCommittedReparentToAnimationLeash; } /** * Trigger a call to prepareSurfaces from the animation thread, such that pending transactions * will be applied. Loading