Loading apct-tests/perftests/windowmanager/src/android/wm/RelayoutPerfTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -135,7 +135,6 @@ public class RelayoutPerfTest extends WindowManagerPerfTestBase final int mHeight; final Point mOutSurfaceSize = new Point(); final SurfaceControl mOutSurfaceControl; final SurfaceControl mOutBlastSurfaceControl = new SurfaceControl(); final IntSupplier mViewVisibility; Loading @@ -158,7 +157,7 @@ public class RelayoutPerfTest extends WindowManagerPerfTestBase session.relayout(mWindow, mParams, mWidth, mHeight, mViewVisibility.getAsInt(), mFlags, mFrameNumber, mOutFrames, mOutMergedConfiguration, mOutSurfaceControl, mOutInsetsState, mOutControls, mOutSurfaceSize, mOutBlastSurfaceControl); mOutSurfaceSize); } } } Loading core/java/android/service/wallpaper/WallpaperService.java +1 −4 Original line number Diff line number Diff line Loading @@ -227,9 +227,6 @@ public abstract class WallpaperService extends Service { SurfaceControl mSurfaceControl = new SurfaceControl(); // Unused relayout out-param SurfaceControl mTmpSurfaceControl = new SurfaceControl(); final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() { { mRequestedFormat = PixelFormat.RGBX_8888; Loading Loading @@ -905,7 +902,7 @@ public abstract class WallpaperService extends Service { final int relayoutResult = mSession.relayout( mWindow, mLayout, mWidth, mHeight, View.VISIBLE, 0, -1, mWinFrames, mMergedConfiguration, mSurfaceControl, mInsetsState, mTempControls, mSurfaceSize, mTmpSurfaceControl); mInsetsState, mTempControls, mSurfaceSize); if (mSurfaceControl.isValid()) { mSurfaceHolder.mSurface.copyFrom(mSurfaceControl); } Loading core/java/android/view/IWindowSession.aidl +1 −4 Original line number Diff line number Diff line Loading @@ -98,9 +98,6 @@ interface IWindowSession { * @param outSurface Object in which is placed the new display surface. * @param insetsState The current insets state in the system. * @param outSurfaceSize The width and height of the surface control * @param outBlastSurfaceControl A BLAST SurfaceControl allocated by the WindowManager * the SurfaceControl willl be managed by the client side, but the WindowManager * may use it as a deferTransaction barrier. * * @return int Result flags: {@link WindowManagerGlobal#RELAYOUT_SHOW_FOCUS}, * {@link WindowManagerGlobal#RELAYOUT_FIRST_TIME}. Loading @@ -110,7 +107,7 @@ interface IWindowSession { int flags, long frameNumber, out ClientWindowFrames outFrames, out MergedConfiguration outMergedConfiguration, out SurfaceControl outSurfaceControl, out InsetsState insetsState, out InsetsSourceControl[] activeControls, out Point outSurfaceSize, out SurfaceControl outBlastSurfaceControl); out Point outSurfaceSize); /* * Notify the window manager that an application is relaunching and Loading core/java/android/view/SurfaceView.java +4 −4 Original line number Diff line number Diff line Loading @@ -467,7 +467,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall Transaction t = new SurfaceControl.Transaction(); t.setAlpha(mSurfaceControl, alpha); t.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frame); viewRoot.getSurfaceControl(), frame); t.apply(); } } Loading Loading @@ -827,7 +827,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall final SurfaceControl.Transaction t = new SurfaceControl.Transaction(); updateRelativeZ(t); t.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frame); viewRoot.getSurfaceControl(), frame); t.apply(); } } Loading Loading @@ -1352,7 +1352,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall Rect position, long frameNumber) { final ViewRootImpl viewRoot = getViewRootImpl(); if (frameNumber > 0 && viewRoot != null && !viewRoot.useBLAST()) { t.deferTransactionUntil(surface, viewRoot.getRenderSurfaceControl(), t.deferTransactionUntil(surface, viewRoot.getSurfaceControl(), frameNumber); } Loading Loading @@ -1470,7 +1470,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall } else { if (frameNumber > 0 && viewRoot != null && viewRoot.mSurface.isValid()) { mRtTransaction.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frameNumber); viewRoot.getSurfaceControl(), frameNumber); } mRtTransaction.hide(mSurfaceControl); if (mRtReleaseSurfaces) { Loading core/java/android/view/SyncRtSurfaceTransactionApplier.java +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class SyncRtSurfaceTransactionApplier { if (mTargetViewRootImpl == null) { return; } mTargetSc = mTargetViewRootImpl.getRenderSurfaceControl(); mTargetSc = mTargetViewRootImpl.getSurfaceControl(); mTargetViewRootImpl.registerRtFrameCallback(frame -> { if (mTargetSc == null || !mTargetSc.isValid()) { return; Loading Loading
apct-tests/perftests/windowmanager/src/android/wm/RelayoutPerfTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -135,7 +135,6 @@ public class RelayoutPerfTest extends WindowManagerPerfTestBase final int mHeight; final Point mOutSurfaceSize = new Point(); final SurfaceControl mOutSurfaceControl; final SurfaceControl mOutBlastSurfaceControl = new SurfaceControl(); final IntSupplier mViewVisibility; Loading @@ -158,7 +157,7 @@ public class RelayoutPerfTest extends WindowManagerPerfTestBase session.relayout(mWindow, mParams, mWidth, mHeight, mViewVisibility.getAsInt(), mFlags, mFrameNumber, mOutFrames, mOutMergedConfiguration, mOutSurfaceControl, mOutInsetsState, mOutControls, mOutSurfaceSize, mOutBlastSurfaceControl); mOutSurfaceSize); } } } Loading
core/java/android/service/wallpaper/WallpaperService.java +1 −4 Original line number Diff line number Diff line Loading @@ -227,9 +227,6 @@ public abstract class WallpaperService extends Service { SurfaceControl mSurfaceControl = new SurfaceControl(); // Unused relayout out-param SurfaceControl mTmpSurfaceControl = new SurfaceControl(); final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() { { mRequestedFormat = PixelFormat.RGBX_8888; Loading Loading @@ -905,7 +902,7 @@ public abstract class WallpaperService extends Service { final int relayoutResult = mSession.relayout( mWindow, mLayout, mWidth, mHeight, View.VISIBLE, 0, -1, mWinFrames, mMergedConfiguration, mSurfaceControl, mInsetsState, mTempControls, mSurfaceSize, mTmpSurfaceControl); mInsetsState, mTempControls, mSurfaceSize); if (mSurfaceControl.isValid()) { mSurfaceHolder.mSurface.copyFrom(mSurfaceControl); } Loading
core/java/android/view/IWindowSession.aidl +1 −4 Original line number Diff line number Diff line Loading @@ -98,9 +98,6 @@ interface IWindowSession { * @param outSurface Object in which is placed the new display surface. * @param insetsState The current insets state in the system. * @param outSurfaceSize The width and height of the surface control * @param outBlastSurfaceControl A BLAST SurfaceControl allocated by the WindowManager * the SurfaceControl willl be managed by the client side, but the WindowManager * may use it as a deferTransaction barrier. * * @return int Result flags: {@link WindowManagerGlobal#RELAYOUT_SHOW_FOCUS}, * {@link WindowManagerGlobal#RELAYOUT_FIRST_TIME}. Loading @@ -110,7 +107,7 @@ interface IWindowSession { int flags, long frameNumber, out ClientWindowFrames outFrames, out MergedConfiguration outMergedConfiguration, out SurfaceControl outSurfaceControl, out InsetsState insetsState, out InsetsSourceControl[] activeControls, out Point outSurfaceSize, out SurfaceControl outBlastSurfaceControl); out Point outSurfaceSize); /* * Notify the window manager that an application is relaunching and Loading
core/java/android/view/SurfaceView.java +4 −4 Original line number Diff line number Diff line Loading @@ -467,7 +467,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall Transaction t = new SurfaceControl.Transaction(); t.setAlpha(mSurfaceControl, alpha); t.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frame); viewRoot.getSurfaceControl(), frame); t.apply(); } } Loading Loading @@ -827,7 +827,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall final SurfaceControl.Transaction t = new SurfaceControl.Transaction(); updateRelativeZ(t); t.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frame); viewRoot.getSurfaceControl(), frame); t.apply(); } } Loading Loading @@ -1352,7 +1352,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall Rect position, long frameNumber) { final ViewRootImpl viewRoot = getViewRootImpl(); if (frameNumber > 0 && viewRoot != null && !viewRoot.useBLAST()) { t.deferTransactionUntil(surface, viewRoot.getRenderSurfaceControl(), t.deferTransactionUntil(surface, viewRoot.getSurfaceControl(), frameNumber); } Loading Loading @@ -1470,7 +1470,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall } else { if (frameNumber > 0 && viewRoot != null && viewRoot.mSurface.isValid()) { mRtTransaction.deferTransactionUntil(mSurfaceControl, viewRoot.getRenderSurfaceControl(), frameNumber); viewRoot.getSurfaceControl(), frameNumber); } mRtTransaction.hide(mSurfaceControl); if (mRtReleaseSurfaces) { Loading
core/java/android/view/SyncRtSurfaceTransactionApplier.java +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public class SyncRtSurfaceTransactionApplier { if (mTargetViewRootImpl == null) { return; } mTargetSc = mTargetViewRootImpl.getRenderSurfaceControl(); mTargetSc = mTargetViewRootImpl.getSurfaceControl(); mTargetViewRootImpl.registerRtFrameCallback(frame -> { if (mTargetSc == null || !mTargetSc.isValid()) { return; Loading