From ea066cdc6576df101b030e7748f3509e05fac446 Mon Sep 17 00:00:00 2001 From: Ahmed Fakhry Date: Thu, 30 Jan 2025 04:18:15 +0000 Subject: [PATCH] Stub impl new multi-desks `IDesktopTaskListener` APIs This CL chain adds the new multi-desks APIs in `IDesktopTaskListener` and a stub implementation in `DesktopVisibilityController.DesktopTaskListenerImpl`. Follow-up CLs will add the real impls. Bug: 392978600 Test: m Flag: EXEMPT new APIs without impl yet. Change-Id: I360ef179769df16dbcf12a01d19d57a88bc82262 --- .../statehandlers/DesktopVisibilityController.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt b/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt index 0703a61fa3..3c4bc917e7 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt +++ b/quickstep/src/com/android/launcher3/statehandlers/DesktopVisibilityController.kt @@ -33,6 +33,7 @@ import com.android.launcher3.util.window.WindowManagerProxy.DesktopVisibilityLis import com.android.quickstep.GestureState.GestureEndTarget import com.android.quickstep.SystemUiProxy import com.android.quickstep.fallback.RecentsState +import com.android.wm.shell.desktopmode.DisplayDeskState import com.android.wm.shell.desktopmode.IDesktopTaskListener.Stub import com.android.wm.shell.shared.desktopmode.DesktopModeStatus import java.io.PrintWriter @@ -365,6 +366,11 @@ constructor( ) : Stub() { private val controller = WeakReference(controller) + // TODO: b/392986431 - Implement the new desks APIs. + override fun onListenerConnected( + displayDeskStates: Array, + ) {} + override fun onTasksVisibilityChanged(displayId: Int, visibleTasksCount: Int) { if (displayId != this.displayId) return Executors.MAIN_EXECUTOR.execute { @@ -398,6 +404,15 @@ constructor( override fun onEnterDesktopModeTransitionStarted(transitionDuration: Int) {} override fun onExitDesktopModeTransitionStarted(transitionDuration: Int) {} + + // TODO: b/392986431 - Implement all the below new desks APIs. + override fun onCanCreateDesksChanged(displayId: Int, canCreateDesks: Boolean) {} + + override fun onDeskAdded(displayId: Int, deskId: Int) {} + + override fun onDeskRemoved(displayId: Int, deskId: Int) {} + + override fun onActiveDeskChanged(displayId: Int, newActiveDesk: Int, oldActiveDesk: Int) {} } /** A listener for Taskbar in Desktop Mode. */