Loading core/java/android/view/SurfaceControl.java +3 −0 Original line number Diff line number Diff line Loading @@ -2660,6 +2660,9 @@ public final class SurfaceControl implements Parcelable { */ @NonNull public Transaction merge(@NonNull Transaction other) { if (this == other) { return this; } mResizedSurfaces.putAll(other.mResizedSurfaces); other.mResizedSurfaces.clear(); nativeMergeTransaction(mNativeObject, other.mNativeObject); Loading services/core/java/com/android/server/wm/AppWindowToken.java +6 −6 Original line number Diff line number Diff line Loading @@ -2005,7 +2005,7 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree } layoutLetterbox(winHint); if (mLetterbox != null && mLetterbox.needsApplySurfaceChanges()) { mLetterbox.applySurfaceChanges(mPendingTransaction); mLetterbox.applySurfaceChanges(getPendingTransaction()); } } Loading Loading @@ -3059,13 +3059,13 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree if (mSurfaceControl != null) { if (show && !mLastSurfaceShowing) { mPendingTransaction.show(mSurfaceControl); getPendingTransaction().show(mSurfaceControl); } else if (!show && mLastSurfaceShowing) { mPendingTransaction.hide(mSurfaceControl); getPendingTransaction().hide(mSurfaceControl); } } if (mThumbnail != null) { mThumbnail.setShowing(mPendingTransaction, show); mThumbnail.setShowing(getPendingTransaction(), show); } mLastSurfaceShowing = show; super.prepareSurfaces(); Loading Loading @@ -3225,8 +3225,8 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree private void updateColorTransform() { if (mSurfaceControl != null && mLastAppSaturationInfo != null) { mPendingTransaction.setColorTransform(mSurfaceControl, mLastAppSaturationInfo.mMatrix, mLastAppSaturationInfo.mTranslation); getPendingTransaction().setColorTransform(mSurfaceControl, mLastAppSaturationInfo.mMatrix, mLastAppSaturationInfo.mTranslation); mWmService.scheduleAnimationLocked(); } } Loading services/core/java/com/android/server/wm/DisplayContent.java +12 −6 Original line number Diff line number Diff line Loading @@ -3339,7 +3339,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo final SurfaceControl newParent = shouldAttachToDisplay ? mWindowingLayer : computeImeParent(); if (newParent != null) { mPendingTransaction.reparent(mImeWindowsContainers.mSurfaceControl, newParent); getPendingTransaction().reparent(mImeWindowsContainers.mSurfaceControl, newParent); scheduleAnimation(); } } Loading Loading @@ -3746,7 +3746,8 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo mPortalWindowHandle.touchableRegion.getBounds(mTmpRect); if (!mTmpBounds.equals(mTmpRect)) { mPortalWindowHandle.touchableRegion.set(mTmpBounds); mPendingTransaction.setInputWindowInfo(mParentSurfaceControl, mPortalWindowHandle); getPendingTransaction().setInputWindowInfo( mParentSurfaceControl, mPortalWindowHandle); } } } Loading Loading @@ -4834,18 +4835,23 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo try { final ScreenRotationAnimation screenRotationAnimation = mWmService.mAnimator.getScreenRotationAnimationLocked(mDisplayId); final Transaction transaction = getPendingTransaction(); if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) { screenRotationAnimation.getEnterTransformation().getMatrix().getValues(mTmpFloats); mPendingTransaction.setMatrix(mWindowingLayer, transaction.setMatrix(mWindowingLayer, mTmpFloats[Matrix.MSCALE_X], mTmpFloats[Matrix.MSKEW_Y], mTmpFloats[Matrix.MSKEW_X], mTmpFloats[Matrix.MSCALE_Y]); mPendingTransaction.setPosition(mWindowingLayer, transaction.setPosition(mWindowingLayer, mTmpFloats[Matrix.MTRANS_X], mTmpFloats[Matrix.MTRANS_Y]); mPendingTransaction.setAlpha(mWindowingLayer, transaction.setAlpha(mWindowingLayer, screenRotationAnimation.getEnterTransformation().getAlpha()); } super.prepareSurfaces(); // TODO: Once we totally eliminate global transaction we will pass transaction in here // rather than merging to global. SurfaceControl.mergeToGlobalTransaction(transaction); } finally { Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER); } Loading Loading @@ -5001,7 +5007,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo if (mPortalWindowHandle == null) { mPortalWindowHandle = createPortalWindowHandle(sc.toString()); } mPendingTransaction.setInputWindowInfo(sc, mPortalWindowHandle) getPendingTransaction().setInputWindowInfo(sc, mPortalWindowHandle) .reparent(mWindowingLayer, sc).reparent(mOverlayLayer, sc); } Loading services/core/java/com/android/server/wm/Task.java +1 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,7 @@ class Task extends WindowContainer<AppWindowToken> implements ConfigurationConta setOrientation(SCREEN_ORIENTATION_UNSET); } @Override DisplayContent getDisplayContent() { return mStack != null ? mStack.getDisplayContent() : null; } Loading services/core/java/com/android/server/wm/TaskScreenshotAnimatable.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ class TaskScreenshotAnimatable implements SurfaceAnimator.Animatable { @Override public SurfaceControl.Transaction getPendingTransaction() { return mTask.mPendingTransaction; return mTask.getPendingTransaction(); } @Override Loading Loading
core/java/android/view/SurfaceControl.java +3 −0 Original line number Diff line number Diff line Loading @@ -2660,6 +2660,9 @@ public final class SurfaceControl implements Parcelable { */ @NonNull public Transaction merge(@NonNull Transaction other) { if (this == other) { return this; } mResizedSurfaces.putAll(other.mResizedSurfaces); other.mResizedSurfaces.clear(); nativeMergeTransaction(mNativeObject, other.mNativeObject); Loading
services/core/java/com/android/server/wm/AppWindowToken.java +6 −6 Original line number Diff line number Diff line Loading @@ -2005,7 +2005,7 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree } layoutLetterbox(winHint); if (mLetterbox != null && mLetterbox.needsApplySurfaceChanges()) { mLetterbox.applySurfaceChanges(mPendingTransaction); mLetterbox.applySurfaceChanges(getPendingTransaction()); } } Loading Loading @@ -3059,13 +3059,13 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree if (mSurfaceControl != null) { if (show && !mLastSurfaceShowing) { mPendingTransaction.show(mSurfaceControl); getPendingTransaction().show(mSurfaceControl); } else if (!show && mLastSurfaceShowing) { mPendingTransaction.hide(mSurfaceControl); getPendingTransaction().hide(mSurfaceControl); } } if (mThumbnail != null) { mThumbnail.setShowing(mPendingTransaction, show); mThumbnail.setShowing(getPendingTransaction(), show); } mLastSurfaceShowing = show; super.prepareSurfaces(); Loading Loading @@ -3225,8 +3225,8 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree private void updateColorTransform() { if (mSurfaceControl != null && mLastAppSaturationInfo != null) { mPendingTransaction.setColorTransform(mSurfaceControl, mLastAppSaturationInfo.mMatrix, mLastAppSaturationInfo.mTranslation); getPendingTransaction().setColorTransform(mSurfaceControl, mLastAppSaturationInfo.mMatrix, mLastAppSaturationInfo.mTranslation); mWmService.scheduleAnimationLocked(); } } Loading
services/core/java/com/android/server/wm/DisplayContent.java +12 −6 Original line number Diff line number Diff line Loading @@ -3339,7 +3339,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo final SurfaceControl newParent = shouldAttachToDisplay ? mWindowingLayer : computeImeParent(); if (newParent != null) { mPendingTransaction.reparent(mImeWindowsContainers.mSurfaceControl, newParent); getPendingTransaction().reparent(mImeWindowsContainers.mSurfaceControl, newParent); scheduleAnimation(); } } Loading Loading @@ -3746,7 +3746,8 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo mPortalWindowHandle.touchableRegion.getBounds(mTmpRect); if (!mTmpBounds.equals(mTmpRect)) { mPortalWindowHandle.touchableRegion.set(mTmpBounds); mPendingTransaction.setInputWindowInfo(mParentSurfaceControl, mPortalWindowHandle); getPendingTransaction().setInputWindowInfo( mParentSurfaceControl, mPortalWindowHandle); } } } Loading Loading @@ -4834,18 +4835,23 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo try { final ScreenRotationAnimation screenRotationAnimation = mWmService.mAnimator.getScreenRotationAnimationLocked(mDisplayId); final Transaction transaction = getPendingTransaction(); if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) { screenRotationAnimation.getEnterTransformation().getMatrix().getValues(mTmpFloats); mPendingTransaction.setMatrix(mWindowingLayer, transaction.setMatrix(mWindowingLayer, mTmpFloats[Matrix.MSCALE_X], mTmpFloats[Matrix.MSKEW_Y], mTmpFloats[Matrix.MSKEW_X], mTmpFloats[Matrix.MSCALE_Y]); mPendingTransaction.setPosition(mWindowingLayer, transaction.setPosition(mWindowingLayer, mTmpFloats[Matrix.MTRANS_X], mTmpFloats[Matrix.MTRANS_Y]); mPendingTransaction.setAlpha(mWindowingLayer, transaction.setAlpha(mWindowingLayer, screenRotationAnimation.getEnterTransformation().getAlpha()); } super.prepareSurfaces(); // TODO: Once we totally eliminate global transaction we will pass transaction in here // rather than merging to global. SurfaceControl.mergeToGlobalTransaction(transaction); } finally { Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER); } Loading Loading @@ -5001,7 +5007,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo if (mPortalWindowHandle == null) { mPortalWindowHandle = createPortalWindowHandle(sc.toString()); } mPendingTransaction.setInputWindowInfo(sc, mPortalWindowHandle) getPendingTransaction().setInputWindowInfo(sc, mPortalWindowHandle) .reparent(mWindowingLayer, sc).reparent(mOverlayLayer, sc); } Loading
services/core/java/com/android/server/wm/Task.java +1 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,7 @@ class Task extends WindowContainer<AppWindowToken> implements ConfigurationConta setOrientation(SCREEN_ORIENTATION_UNSET); } @Override DisplayContent getDisplayContent() { return mStack != null ? mStack.getDisplayContent() : null; } Loading
services/core/java/com/android/server/wm/TaskScreenshotAnimatable.java +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ class TaskScreenshotAnimatable implements SurfaceAnimator.Animatable { @Override public SurfaceControl.Transaction getPendingTransaction() { return mTask.mPendingTransaction; return mTask.getPendingTransaction(); } @Override Loading