Loading libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/desktopmode/DesktopModeTransitionSource.kt +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ enum class DesktopModeTransitionSource : Parcelable { APP_HANDLE_MENU_BUTTON, /** Transitions that originated as a result of keyboard shortcuts. */ KEYBOARD_SHORTCUT, /** Transitions that originated from Recents. */ RECENTS, /** Transitions with source unknown. */ UNKNOWN; Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +3 −0 Original line number Diff line number Diff line Loading @@ -4203,6 +4203,7 @@ class DesktopTasksController( deskId: Int, remoteTransition: RemoteTransition? = null, taskIdToReorderToFront: Int? = null, transitionSource: DesktopModeTransitionSource = DesktopModeTransitionSource.UNKNOWN, ) = traceSection( Trace.TRACE_TAG_WINDOW_MANAGER, Loading Loading @@ -5326,12 +5327,14 @@ class DesktopTasksController( deskId: Int, remoteTransition: RemoteTransition?, taskIdInFront: Int, transitionSource: DesktopModeTransitionSource, ) { executeRemoteCallWithTaskPermission(controller, "activateDesk") { c -> c.activateDesk( deskId, remoteTransition, if (taskIdInFront != INVALID_TASK_ID) taskIdInFront else null, transitionSource, ) } } Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/IDesktopMode.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,8 @@ interface IDesktopMode { * If [taskIdToReorderToFront] is a valid id (not [INVALID_TASK_ID]) and is already on the given * desk, bring it to the front. */ oneway void activateDesk(int deskId, in RemoteTransition remoteTransition, int taskIdToReorderToFront); oneway void activateDesk(int deskId, in RemoteTransition remoteTransition, int taskIdToReorderToFront, in DesktopModeTransitionSource transitionSource); /** Removes the desk with the given `deskId`. */ oneway void removeDesk(int deskId); Loading Loading
libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/desktopmode/DesktopModeTransitionSource.kt +2 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,8 @@ enum class DesktopModeTransitionSource : Parcelable { APP_HANDLE_MENU_BUTTON, /** Transitions that originated as a result of keyboard shortcuts. */ KEYBOARD_SHORTCUT, /** Transitions that originated from Recents. */ RECENTS, /** Transitions with source unknown. */ UNKNOWN; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +3 −0 Original line number Diff line number Diff line Loading @@ -4203,6 +4203,7 @@ class DesktopTasksController( deskId: Int, remoteTransition: RemoteTransition? = null, taskIdToReorderToFront: Int? = null, transitionSource: DesktopModeTransitionSource = DesktopModeTransitionSource.UNKNOWN, ) = traceSection( Trace.TRACE_TAG_WINDOW_MANAGER, Loading Loading @@ -5326,12 +5327,14 @@ class DesktopTasksController( deskId: Int, remoteTransition: RemoteTransition?, taskIdInFront: Int, transitionSource: DesktopModeTransitionSource, ) { executeRemoteCallWithTaskPermission(controller, "activateDesk") { c -> c.activateDesk( deskId, remoteTransition, if (taskIdInFront != INVALID_TASK_ID) taskIdInFront else null, transitionSource, ) } } Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/IDesktopMode.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,8 @@ interface IDesktopMode { * If [taskIdToReorderToFront] is a valid id (not [INVALID_TASK_ID]) and is already on the given * desk, bring it to the front. */ oneway void activateDesk(int deskId, in RemoteTransition remoteTransition, int taskIdToReorderToFront); oneway void activateDesk(int deskId, in RemoteTransition remoteTransition, int taskIdToReorderToFront, in DesktopModeTransitionSource transitionSource); /** Removes the desk with the given `deskId`. */ oneway void removeDesk(int deskId); Loading