Loading services/core/java/com/android/server/wm/AppTransition.java +12 −16 Original line number Diff line number Diff line Loading @@ -760,26 +760,24 @@ public class AppTransition implements Dump { a = createAspectScaledThumbnailEnterNonFullscreenAnimationLocked( containingFrame, surfaceInsets, taskId); } else { mTmpFromClipRect.set(containingFrame); // exclude top screen decor (status bar) region from the source clip. mTmpFromClipRect.top = contentInsets.top; // App window scaling up to become full screen mTmpToClipRect.set(containingFrame); if (orientation == Configuration.ORIENTATION_PORTRAIT) { // In portrait, we scale the width and clip to the top/left square scale = thumbWidth / appWidth; scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbHeight = (int) (thumbHeight / scale); mTmpFromClipRect.set(containingFrame); mTmpFromClipRect.bottom = (mTmpFromClipRect.top + unscaledThumbHeight); mTmpToClipRect.set(containingFrame); mTmpFromClipRect.bottom = mTmpFromClipRect.top + unscaledThumbHeight; } else { // In landscape, we scale the height and clip to the top/left square scale = thumbHeight / (appHeight - contentInsets.top); scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbWidth = (int) (thumbWidth / scale); mTmpFromClipRect.set(containingFrame); mTmpFromClipRect.right = (mTmpFromClipRect.left + unscaledThumbWidth); mTmpToClipRect.set(containingFrame); mTmpFromClipRect.right = mTmpFromClipRect.left + unscaledThumbWidth; } // exclude top screen decor (status bar) region from the source clip. mTmpFromClipRect.top = contentInsets.top; mNextAppTransitionInsets.set(contentInsets); Loading Loading @@ -821,25 +819,23 @@ public class AppTransition implements Dump { } case THUMBNAIL_TRANSITION_EXIT_SCALE_DOWN: { // App window scaling down from full screen mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); // exclude top screen decor (status bar) region from the destination clip. mTmpToClipRect.top = contentInsets.top; if (orientation == Configuration.ORIENTATION_PORTRAIT) { // In portrait, we scale the width and clip to the top/left square scale = thumbWidth / appWidth; scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbHeight = (int) (thumbHeight / scale); mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); mTmpToClipRect.bottom = (mTmpToClipRect.top + unscaledThumbHeight); mTmpToClipRect.bottom = mTmpToClipRect.top + unscaledThumbHeight; } else { // In landscape, we scale the height and clip to the top/left square scale = thumbHeight / (appHeight - contentInsets.top); scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbWidth = (int) (thumbWidth / scale); mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); mTmpToClipRect.right = (mTmpToClipRect.left + unscaledThumbWidth); mTmpToClipRect.right = mTmpToClipRect.left + unscaledThumbWidth; } // exclude top screen decor (status bar) region from the destination clip. mTmpToClipRect.top = contentInsets.top; mNextAppTransitionInsets.set(contentInsets); Loading services/core/java/com/android/server/wm/WindowStateAnimator.java +0 −2 Original line number Diff line number Diff line Loading @@ -1190,8 +1190,6 @@ class WindowStateAnimator { mDtDy = tmpFloats[Matrix.MSCALE_Y]; float x = tmpFloats[Matrix.MTRANS_X]; float y = tmpFloats[Matrix.MTRANS_Y]; int w = frame.width(); int h = frame.height(); mWin.mShownPosition.set((int) x, (int) y); // Now set the alpha... but because our current hardware Loading Loading
services/core/java/com/android/server/wm/AppTransition.java +12 −16 Original line number Diff line number Diff line Loading @@ -760,26 +760,24 @@ public class AppTransition implements Dump { a = createAspectScaledThumbnailEnterNonFullscreenAnimationLocked( containingFrame, surfaceInsets, taskId); } else { mTmpFromClipRect.set(containingFrame); // exclude top screen decor (status bar) region from the source clip. mTmpFromClipRect.top = contentInsets.top; // App window scaling up to become full screen mTmpToClipRect.set(containingFrame); if (orientation == Configuration.ORIENTATION_PORTRAIT) { // In portrait, we scale the width and clip to the top/left square scale = thumbWidth / appWidth; scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbHeight = (int) (thumbHeight / scale); mTmpFromClipRect.set(containingFrame); mTmpFromClipRect.bottom = (mTmpFromClipRect.top + unscaledThumbHeight); mTmpToClipRect.set(containingFrame); mTmpFromClipRect.bottom = mTmpFromClipRect.top + unscaledThumbHeight; } else { // In landscape, we scale the height and clip to the top/left square scale = thumbHeight / (appHeight - contentInsets.top); scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbWidth = (int) (thumbWidth / scale); mTmpFromClipRect.set(containingFrame); mTmpFromClipRect.right = (mTmpFromClipRect.left + unscaledThumbWidth); mTmpToClipRect.set(containingFrame); mTmpFromClipRect.right = mTmpFromClipRect.left + unscaledThumbWidth; } // exclude top screen decor (status bar) region from the source clip. mTmpFromClipRect.top = contentInsets.top; mNextAppTransitionInsets.set(contentInsets); Loading Loading @@ -821,25 +819,23 @@ public class AppTransition implements Dump { } case THUMBNAIL_TRANSITION_EXIT_SCALE_DOWN: { // App window scaling down from full screen mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); // exclude top screen decor (status bar) region from the destination clip. mTmpToClipRect.top = contentInsets.top; if (orientation == Configuration.ORIENTATION_PORTRAIT) { // In portrait, we scale the width and clip to the top/left square scale = thumbWidth / appWidth; scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbHeight = (int) (thumbHeight / scale); mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); mTmpToClipRect.bottom = (mTmpToClipRect.top + unscaledThumbHeight); mTmpToClipRect.bottom = mTmpToClipRect.top + unscaledThumbHeight; } else { // In landscape, we scale the height and clip to the top/left square scale = thumbHeight / (appHeight - contentInsets.top); scaledTopDecor = (int) (scale * contentInsets.top); int unscaledThumbWidth = (int) (thumbWidth / scale); mTmpFromClipRect.set(containingFrame); mTmpToClipRect.set(containingFrame); mTmpToClipRect.right = (mTmpToClipRect.left + unscaledThumbWidth); mTmpToClipRect.right = mTmpToClipRect.left + unscaledThumbWidth; } // exclude top screen decor (status bar) region from the destination clip. mTmpToClipRect.top = contentInsets.top; mNextAppTransitionInsets.set(contentInsets); Loading
services/core/java/com/android/server/wm/WindowStateAnimator.java +0 −2 Original line number Diff line number Diff line Loading @@ -1190,8 +1190,6 @@ class WindowStateAnimator { mDtDy = tmpFloats[Matrix.MSCALE_Y]; float x = tmpFloats[Matrix.MTRANS_X]; float y = tmpFloats[Matrix.MTRANS_Y]; int w = frame.width(); int h = frame.height(); mWin.mShownPosition.set((int) x, (int) y); // Now set the alpha... but because our current hardware Loading