Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java +1 −2 Original line number Diff line number Diff line Loading @@ -1114,8 +1114,7 @@ public class PipTransition extends PipTransitionController { destinationBounds, sourceHintRect); } if (!mPipOrganizer.shouldAttachMenuEarly()) { mTransitions.getMainExecutor().executeDelayed( () -> mPipMenuController.attach(leash), 0); mPipMenuController.attach(leash); } if (taskInfo.pictureInPictureParams != null Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java +5 −2 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ public class PhonePipMenuController implements PipMenuController { */ @Override public void attach(SurfaceControl leash) { mLeash = leash; mLeash = new SurfaceControl(leash, "PhonePipMenuController"); attachPipMenuView(); } Loading @@ -177,8 +177,11 @@ public class PhonePipMenuController implements PipMenuController { public void detach() { hideMenu(); detachPipMenuView(); if (mLeash != null) { mLeash.release(); mLeash = null; } } void attachPipMenuView() { // In case detach was not called (e.g. PIP unexpectedly closed) Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipMenuController.java +5 −2 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ public class TvPipMenuController implements PipMenuController, TvPipMenuView.Lis throw new IllegalStateException("Delegate is not set."); } mLeash = leash; mLeash = new SurfaceControl(leash, "TvPipMenuController"); attachPipMenu(/* showEduText */ true); } Loading Loading @@ -294,8 +294,11 @@ public class TvPipMenuController implements PipMenuController, TvPipMenuView.Lis public void detach() { detachPipMenu(); switchToMenuMode(MODE_NO_MENU); if (mLeash != null) { mLeash.release(); mLeash = null; } } @Override public void setAppActions(List<RemoteAction> actions, RemoteAction closeAction) { Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PhonePipMenuController.java +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ public class PhonePipMenuController implements PipMenuController, @Override public void surfaceCreated(SurfaceControl.Transaction t) { final SurfaceControl sc = getSurfaceControl(); if (sc != null) { if (sc != null && mLeash.isValid()) { t.reparent(sc, mLeash); // make menu on top of the surface t.setLayer(sc, Integer.MAX_VALUE); Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PipDisplayTransferHandler.java +1 −6 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ import static com.android.wm.shell.pip2.phone.PipTransition.ANIMATING_BOUNDS_CHA import static com.android.wm.shell.pip2.phone.PipTransition.PIP_DESTINATION_BOUNDS; import android.annotation.Nullable; import android.app.TaskInfo; import android.content.Context; import android.graphics.Rect; import android.graphics.RectF; Loading Loading @@ -143,8 +142,7 @@ public class PipDisplayTransferHandler implements ProtoLog.v(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, "%s Animating PiP display change to=%d", TAG, mTargetDisplayId); SurfaceControl pipLeash = mPipTransitionState.getPinnedTaskLeash(); TaskInfo taskInfo = mPipTransitionState.getPipTaskInfo(); final SurfaceControl pipLeash = mPipTransitionState.getPinnedTaskLeash(); final int duration = extra.getInt(ANIMATING_BOUNDS_CHANGE_DURATION, PipTransition.BOUNDS_CHANGE_JUMPCUT_DURATION); final Transaction startTx = extra.getParcelable( Loading @@ -169,9 +167,6 @@ public class PipDisplayTransferHandler implements mPipTransitionState.setState(PipTransitionState.EXITING_PIP); mPipTransitionState.setState(PipTransitionState.EXITED_PIP); mPipTransitionState.setPinnedTaskLeash(pipLeash); mPipTransitionState.setPipTaskInfo(taskInfo); final PipResizeAnimator animator = mPipResizeAnimatorSupplier.get(mContext, mPipSurfaceTransactionHelper, pipLeash, startTx, finishTx, mPipBoundsState.getBounds(), mPipBoundsState.getBounds(), pipBounds, Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTransition.java +1 −2 Original line number Diff line number Diff line Loading @@ -1114,8 +1114,7 @@ public class PipTransition extends PipTransitionController { destinationBounds, sourceHintRect); } if (!mPipOrganizer.shouldAttachMenuEarly()) { mTransitions.getMainExecutor().executeDelayed( () -> mPipMenuController.attach(leash), 0); mPipMenuController.attach(leash); } if (taskInfo.pictureInPictureParams != null Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java +5 −2 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ public class PhonePipMenuController implements PipMenuController { */ @Override public void attach(SurfaceControl leash) { mLeash = leash; mLeash = new SurfaceControl(leash, "PhonePipMenuController"); attachPipMenuView(); } Loading @@ -177,8 +177,11 @@ public class PhonePipMenuController implements PipMenuController { public void detach() { hideMenu(); detachPipMenuView(); if (mLeash != null) { mLeash.release(); mLeash = null; } } void attachPipMenuView() { // In case detach was not called (e.g. PIP unexpectedly closed) Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipMenuController.java +5 −2 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ public class TvPipMenuController implements PipMenuController, TvPipMenuView.Lis throw new IllegalStateException("Delegate is not set."); } mLeash = leash; mLeash = new SurfaceControl(leash, "TvPipMenuController"); attachPipMenu(/* showEduText */ true); } Loading Loading @@ -294,8 +294,11 @@ public class TvPipMenuController implements PipMenuController, TvPipMenuView.Lis public void detach() { detachPipMenu(); switchToMenuMode(MODE_NO_MENU); if (mLeash != null) { mLeash.release(); mLeash = null; } } @Override public void setAppActions(List<RemoteAction> actions, RemoteAction closeAction) { Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PhonePipMenuController.java +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ public class PhonePipMenuController implements PipMenuController, @Override public void surfaceCreated(SurfaceControl.Transaction t) { final SurfaceControl sc = getSurfaceControl(); if (sc != null) { if (sc != null && mLeash.isValid()) { t.reparent(sc, mLeash); // make menu on top of the surface t.setLayer(sc, Integer.MAX_VALUE); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PipDisplayTransferHandler.java +1 −6 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ import static com.android.wm.shell.pip2.phone.PipTransition.ANIMATING_BOUNDS_CHA import static com.android.wm.shell.pip2.phone.PipTransition.PIP_DESTINATION_BOUNDS; import android.annotation.Nullable; import android.app.TaskInfo; import android.content.Context; import android.graphics.Rect; import android.graphics.RectF; Loading Loading @@ -143,8 +142,7 @@ public class PipDisplayTransferHandler implements ProtoLog.v(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, "%s Animating PiP display change to=%d", TAG, mTargetDisplayId); SurfaceControl pipLeash = mPipTransitionState.getPinnedTaskLeash(); TaskInfo taskInfo = mPipTransitionState.getPipTaskInfo(); final SurfaceControl pipLeash = mPipTransitionState.getPinnedTaskLeash(); final int duration = extra.getInt(ANIMATING_BOUNDS_CHANGE_DURATION, PipTransition.BOUNDS_CHANGE_JUMPCUT_DURATION); final Transaction startTx = extra.getParcelable( Loading @@ -169,9 +167,6 @@ public class PipDisplayTransferHandler implements mPipTransitionState.setState(PipTransitionState.EXITING_PIP); mPipTransitionState.setState(PipTransitionState.EXITED_PIP); mPipTransitionState.setPinnedTaskLeash(pipLeash); mPipTransitionState.setPipTaskInfo(taskInfo); final PipResizeAnimator animator = mPipResizeAnimatorSupplier.get(mContext, mPipSurfaceTransactionHelper, pipLeash, startTx, finishTx, mPipBoundsState.getBounds(), mPipBoundsState.getBounds(), pipBounds, Loading