Loading libs/WindowManager/Shell/src/com/android/wm/shell/dagger/pip/Pip2Module.java +3 −1 Original line number Diff line number Diff line Loading @@ -115,6 +115,7 @@ public abstract class Pip2Module { PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, @ShellMainThread ShellExecutor mainExecutor) { if (!PipUtils.isPip2ExperimentEnabled()) { return Optional.empty(); Loading @@ -123,7 +124,8 @@ public abstract class Pip2Module { context, shellInit, shellCommandHandler, shellController, displayController, displayInsetsController, pipBoundsState, pipBoundsAlgorithm, pipDisplayLayoutState, pipScheduler, taskStackListener, shellTaskOrganizer, pipTransitionState, pipTouchHandler, pipAppOpsListener, mainExecutor)); pipTransitionState, pipTouchHandler, pipAppOpsListener, pipMenuController, mainExecutor)); } } Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −0 Original line number Diff line number Diff line Loading @@ -781,6 +781,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb // cancel any running animator, as it is using stale display layout information animator.cancel(); } mMenuController.hideMenu(); onDisplayChangedUncheck(layout, saveRestoreSnapFraction); } } Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PipController.java +7 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ public class PipController implements ConfigurationChangeListener, private final PipTransitionState mPipTransitionState; private final PipTouchHandler mPipTouchHandler; private final PipAppOpsListener mPipAppOpsListener; private final PhonePipMenuController mPipMenuController; private final ShellExecutor mMainExecutor; private final PipImpl mImpl; private final List<Consumer<Boolean>> mOnIsInPipStateChangedListeners = new ArrayList<>(); Loading Loading @@ -141,6 +142,7 @@ public class PipController implements ConfigurationChangeListener, PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, ShellExecutor mainExecutor) { mContext = context; mShellCommandHandler = shellCommandHandler; Loading @@ -157,6 +159,7 @@ public class PipController implements ConfigurationChangeListener, mPipTransitionState.addPipTransitionStateChangedListener(this); mPipTouchHandler = pipTouchHandler; mPipAppOpsListener = pipAppOpsListener; mPipMenuController = pipMenuController; mMainExecutor = mainExecutor; mImpl = new PipImpl(); Loading @@ -183,6 +186,7 @@ public class PipController implements ConfigurationChangeListener, PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, ShellExecutor mainExecutor) { if (!context.getPackageManager().hasSystemFeature(FEATURE_PICTURE_IN_PICTURE)) { ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, Loading @@ -192,7 +196,8 @@ public class PipController implements ConfigurationChangeListener, return new PipController(context, shellInit, shellCommandHandler, shellController, displayController, displayInsetsController, pipBoundsState, pipBoundsAlgorithm, pipDisplayLayoutState, pipScheduler, taskStackListener, shellTaskOrganizer, pipTransitionState, pipTouchHandler, pipAppOpsListener, mainExecutor); pipTransitionState, pipTouchHandler, pipAppOpsListener, pipMenuController, mainExecutor); } public PipImpl getPipImpl() { Loading Loading @@ -329,6 +334,7 @@ public class PipController implements ConfigurationChangeListener, } mPipTouchHandler.updateMinMaxSize(mPipBoundsState.getAspectRatio()); mPipMenuController.hideMenu(); if (mPipTransitionState.isInFixedRotation()) { // Do not change the bounds when in fixed rotation, but do update the movement bounds Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/dagger/pip/Pip2Module.java +3 −1 Original line number Diff line number Diff line Loading @@ -115,6 +115,7 @@ public abstract class Pip2Module { PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, @ShellMainThread ShellExecutor mainExecutor) { if (!PipUtils.isPip2ExperimentEnabled()) { return Optional.empty(); Loading @@ -123,7 +124,8 @@ public abstract class Pip2Module { context, shellInit, shellCommandHandler, shellController, displayController, displayInsetsController, pipBoundsState, pipBoundsAlgorithm, pipDisplayLayoutState, pipScheduler, taskStackListener, shellTaskOrganizer, pipTransitionState, pipTouchHandler, pipAppOpsListener, mainExecutor)); pipTransitionState, pipTouchHandler, pipAppOpsListener, pipMenuController, mainExecutor)); } } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −0 Original line number Diff line number Diff line Loading @@ -781,6 +781,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb // cancel any running animator, as it is using stale display layout information animator.cancel(); } mMenuController.hideMenu(); onDisplayChangedUncheck(layout, saveRestoreSnapFraction); } } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/PipController.java +7 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ public class PipController implements ConfigurationChangeListener, private final PipTransitionState mPipTransitionState; private final PipTouchHandler mPipTouchHandler; private final PipAppOpsListener mPipAppOpsListener; private final PhonePipMenuController mPipMenuController; private final ShellExecutor mMainExecutor; private final PipImpl mImpl; private final List<Consumer<Boolean>> mOnIsInPipStateChangedListeners = new ArrayList<>(); Loading Loading @@ -141,6 +142,7 @@ public class PipController implements ConfigurationChangeListener, PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, ShellExecutor mainExecutor) { mContext = context; mShellCommandHandler = shellCommandHandler; Loading @@ -157,6 +159,7 @@ public class PipController implements ConfigurationChangeListener, mPipTransitionState.addPipTransitionStateChangedListener(this); mPipTouchHandler = pipTouchHandler; mPipAppOpsListener = pipAppOpsListener; mPipMenuController = pipMenuController; mMainExecutor = mainExecutor; mImpl = new PipImpl(); Loading @@ -183,6 +186,7 @@ public class PipController implements ConfigurationChangeListener, PipTransitionState pipTransitionState, PipTouchHandler pipTouchHandler, PipAppOpsListener pipAppOpsListener, PhonePipMenuController pipMenuController, ShellExecutor mainExecutor) { if (!context.getPackageManager().hasSystemFeature(FEATURE_PICTURE_IN_PICTURE)) { ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, Loading @@ -192,7 +196,8 @@ public class PipController implements ConfigurationChangeListener, return new PipController(context, shellInit, shellCommandHandler, shellController, displayController, displayInsetsController, pipBoundsState, pipBoundsAlgorithm, pipDisplayLayoutState, pipScheduler, taskStackListener, shellTaskOrganizer, pipTransitionState, pipTouchHandler, pipAppOpsListener, mainExecutor); pipTransitionState, pipTouchHandler, pipAppOpsListener, pipMenuController, mainExecutor); } public PipImpl getPipImpl() { Loading Loading @@ -329,6 +334,7 @@ public class PipController implements ConfigurationChangeListener, } mPipTouchHandler.updateMinMaxSize(mPipBoundsState.getAspectRatio()); mPipMenuController.hideMenu(); if (mPipTransitionState.isInFixedRotation()) { // Do not change the bounds when in fixed rotation, but do update the movement bounds Loading