Loading libs/WindowManager/Shell/src/com/android/wm/shell/dagger/TvPipModule.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.wm.shell.common.TaskStackListenerImpl; import com.android.wm.shell.common.annotations.ShellMainThread; import com.android.wm.shell.common.annotations.ShellMainThread; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipParamsChangedForwarder; import com.android.wm.shell.pip.PipParamsChangedForwarder; import com.android.wm.shell.pip.PipSnapAlgorithm; import com.android.wm.shell.pip.PipSnapAlgorithm; Loading Loading @@ -63,6 +64,7 @@ public abstract class TvPipModule { Context context, Context context, TvPipBoundsState tvPipBoundsState, TvPipBoundsState tvPipBoundsState, TvPipBoundsAlgorithm tvPipBoundsAlgorithm, TvPipBoundsAlgorithm tvPipBoundsAlgorithm, PipAppOpsListener pipAppOpsListener, PipTaskOrganizer pipTaskOrganizer, PipTaskOrganizer pipTaskOrganizer, TvPipMenuController tvPipMenuController, TvPipMenuController tvPipMenuController, PipMediaController pipMediaController, PipMediaController pipMediaController, Loading @@ -79,6 +81,7 @@ public abstract class TvPipModule { context, context, tvPipBoundsState, tvPipBoundsState, tvPipBoundsAlgorithm, tvPipBoundsAlgorithm, pipAppOpsListener, pipTaskOrganizer, pipTaskOrganizer, pipTransitionController, pipTransitionController, tvPipMenuController, tvPipMenuController, Loading Loading @@ -185,4 +188,12 @@ public abstract class TvPipModule { static PipParamsChangedForwarder providePipParamsChangedForwarder() { static PipParamsChangedForwarder providePipParamsChangedForwarder() { return new PipParamsChangedForwarder(); return new PipParamsChangedForwarder(); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTaskOrganizer pipTaskOrganizer, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTaskOrganizer::removePip, mainExecutor); } } } libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java +0 −9 Original line number Original line Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipSurfaceTransactionHelper; import com.android.wm.shell.pip.PipSurfaceTransactionHelper; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.phone.PipAppOpsListener; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.recents.RecentTasks; import com.android.wm.shell.recents.RecentTasks; import com.android.wm.shell.recents.RecentTasksController; import com.android.wm.shell.recents.RecentTasksController; Loading Loading @@ -435,14 +434,6 @@ public abstract class WMShellBaseModule { return new FloatingContentCoordinator(); return new FloatingContentCoordinator(); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTouchHandler pipTouchHandler, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTouchHandler.getMotionHelper(), mainExecutor); } // Needs handler for registering broadcast receivers // Needs handler for registering broadcast receivers @WMSingleton @WMSingleton @Provides @Provides Loading libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.wm.shell.legacysplitscreen.LegacySplitScreenController; import com.android.wm.shell.onehanded.OneHandedController; import com.android.wm.shell.onehanded.OneHandedController; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; Loading @@ -63,7 +64,6 @@ import com.android.wm.shell.pip.PipTransitionController; import com.android.wm.shell.pip.PipTransitionState; import com.android.wm.shell.pip.PipTransitionState; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.phone.PhonePipMenuController; import com.android.wm.shell.pip.phone.PhonePipMenuController; import com.android.wm.shell.pip.phone.PipAppOpsListener; import com.android.wm.shell.pip.phone.PipController; import com.android.wm.shell.pip.phone.PipController; import com.android.wm.shell.pip.phone.PipMotionHelper; import com.android.wm.shell.pip.phone.PipMotionHelper; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.pip.phone.PipTouchHandler; Loading Loading @@ -323,6 +323,14 @@ public class WMShellModule { pipSurfaceTransactionHelper, splitScreenOptional); pipSurfaceTransactionHelper, splitScreenOptional); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTouchHandler pipTouchHandler, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTouchHandler.getMotionHelper(), mainExecutor); } @WMSingleton @WMSingleton @Provides @Provides static PipMotionHelper providePipMotionHelper(Context context, static PipMotionHelper providePipMotionHelper(Context context, Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipAppOpsListener.java→libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipAppOpsListener.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. * limitations under the License. */ */ package com.android.wm.shell.pip.phone; package com.android.wm.shell.pip; import static android.app.AppOpsManager.MODE_ALLOWED; import static android.app.AppOpsManager.MODE_ALLOWED; import static android.app.AppOpsManager.OP_PICTURE_IN_PICTURE; import static android.app.AppOpsManager.OP_PICTURE_IN_PICTURE; Loading @@ -28,7 +28,6 @@ import android.content.pm.PackageManager.NameNotFoundException; import android.util.Pair; import android.util.Pair; import com.android.wm.shell.common.ShellExecutor; import com.android.wm.shell.common.ShellExecutor; import com.android.wm.shell.pip.PipUtils; public class PipAppOpsListener { public class PipAppOpsListener { private static final String TAG = PipAppOpsListener.class.getSimpleName(); private static final String TAG = PipAppOpsListener.class.getSimpleName(); Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -76,6 +76,7 @@ import com.android.wm.shell.pip.IPipAnimationListener; import com.android.wm.shell.pip.PinnedStackListenerForwarder; import com.android.wm.shell.pip.PinnedStackListenerForwarder; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/dagger/TvPipModule.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -29,6 +29,7 @@ import com.android.wm.shell.common.TaskStackListenerImpl; import com.android.wm.shell.common.annotations.ShellMainThread; import com.android.wm.shell.common.annotations.ShellMainThread; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipParamsChangedForwarder; import com.android.wm.shell.pip.PipParamsChangedForwarder; import com.android.wm.shell.pip.PipSnapAlgorithm; import com.android.wm.shell.pip.PipSnapAlgorithm; Loading Loading @@ -63,6 +64,7 @@ public abstract class TvPipModule { Context context, Context context, TvPipBoundsState tvPipBoundsState, TvPipBoundsState tvPipBoundsState, TvPipBoundsAlgorithm tvPipBoundsAlgorithm, TvPipBoundsAlgorithm tvPipBoundsAlgorithm, PipAppOpsListener pipAppOpsListener, PipTaskOrganizer pipTaskOrganizer, PipTaskOrganizer pipTaskOrganizer, TvPipMenuController tvPipMenuController, TvPipMenuController tvPipMenuController, PipMediaController pipMediaController, PipMediaController pipMediaController, Loading @@ -79,6 +81,7 @@ public abstract class TvPipModule { context, context, tvPipBoundsState, tvPipBoundsState, tvPipBoundsAlgorithm, tvPipBoundsAlgorithm, pipAppOpsListener, pipTaskOrganizer, pipTaskOrganizer, pipTransitionController, pipTransitionController, tvPipMenuController, tvPipMenuController, Loading Loading @@ -185,4 +188,12 @@ public abstract class TvPipModule { static PipParamsChangedForwarder providePipParamsChangedForwarder() { static PipParamsChangedForwarder providePipParamsChangedForwarder() { return new PipParamsChangedForwarder(); return new PipParamsChangedForwarder(); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTaskOrganizer pipTaskOrganizer, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTaskOrganizer::removePip, mainExecutor); } } }
libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java +0 −9 Original line number Original line Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipSurfaceTransactionHelper; import com.android.wm.shell.pip.PipSurfaceTransactionHelper; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.phone.PipAppOpsListener; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.recents.RecentTasks; import com.android.wm.shell.recents.RecentTasks; import com.android.wm.shell.recents.RecentTasksController; import com.android.wm.shell.recents.RecentTasksController; Loading Loading @@ -435,14 +434,6 @@ public abstract class WMShellBaseModule { return new FloatingContentCoordinator(); return new FloatingContentCoordinator(); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTouchHandler pipTouchHandler, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTouchHandler.getMotionHelper(), mainExecutor); } // Needs handler for registering broadcast receivers // Needs handler for registering broadcast receivers @WMSingleton @WMSingleton @Provides @Provides Loading
libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.wm.shell.legacysplitscreen.LegacySplitScreenController; import com.android.wm.shell.onehanded.OneHandedController; import com.android.wm.shell.onehanded.OneHandedController; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; Loading @@ -63,7 +64,6 @@ import com.android.wm.shell.pip.PipTransitionController; import com.android.wm.shell.pip.PipTransitionState; import com.android.wm.shell.pip.PipTransitionState; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.PipUiEventLogger; import com.android.wm.shell.pip.phone.PhonePipMenuController; import com.android.wm.shell.pip.phone.PhonePipMenuController; import com.android.wm.shell.pip.phone.PipAppOpsListener; import com.android.wm.shell.pip.phone.PipController; import com.android.wm.shell.pip.phone.PipController; import com.android.wm.shell.pip.phone.PipMotionHelper; import com.android.wm.shell.pip.phone.PipMotionHelper; import com.android.wm.shell.pip.phone.PipTouchHandler; import com.android.wm.shell.pip.phone.PipTouchHandler; Loading Loading @@ -323,6 +323,14 @@ public class WMShellModule { pipSurfaceTransactionHelper, splitScreenOptional); pipSurfaceTransactionHelper, splitScreenOptional); } } @WMSingleton @Provides static PipAppOpsListener providePipAppOpsListener(Context context, PipTouchHandler pipTouchHandler, @ShellMainThread ShellExecutor mainExecutor) { return new PipAppOpsListener(context, pipTouchHandler.getMotionHelper(), mainExecutor); } @WMSingleton @WMSingleton @Provides @Provides static PipMotionHelper providePipMotionHelper(Context context, static PipMotionHelper providePipMotionHelper(Context context, Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipAppOpsListener.java→libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipAppOpsListener.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. * limitations under the License. */ */ package com.android.wm.shell.pip.phone; package com.android.wm.shell.pip; import static android.app.AppOpsManager.MODE_ALLOWED; import static android.app.AppOpsManager.MODE_ALLOWED; import static android.app.AppOpsManager.OP_PICTURE_IN_PICTURE; import static android.app.AppOpsManager.OP_PICTURE_IN_PICTURE; Loading @@ -28,7 +28,6 @@ import android.content.pm.PackageManager.NameNotFoundException; import android.util.Pair; import android.util.Pair; import com.android.wm.shell.common.ShellExecutor; import com.android.wm.shell.common.ShellExecutor; import com.android.wm.shell.pip.PipUtils; public class PipAppOpsListener { public class PipAppOpsListener { private static final String TAG = PipAppOpsListener.class.getSimpleName(); private static final String TAG = PipAppOpsListener.class.getSimpleName(); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipController.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -76,6 +76,7 @@ import com.android.wm.shell.pip.IPipAnimationListener; import com.android.wm.shell.pip.PinnedStackListenerForwarder; import com.android.wm.shell.pip.PinnedStackListenerForwarder; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.Pip; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAnimationController; import com.android.wm.shell.pip.PipAppOpsListener; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsAlgorithm; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipBoundsState; import com.android.wm.shell.pip.PipMediaController; import com.android.wm.shell.pip.PipMediaController; Loading