Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c45dc17 authored by minch's avatar minch
Browse files

Make can create new desks a global state - aidl

Bug: 389209338
Test: m
Flag: EXEMPT new APIs update without impl yet.
Change-Id: I832604d26ffdc785281835f263c90e3d09855212
parent 3cf30217
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -18,13 +18,11 @@ package com.android.wm.shell.desktopmode;

/**
 * Defines the state of desks on a display whose ID is `displayId`, which is:
 * - `canCreateDesks`: whether it's possible to create new desks on this display.
 * - `activeDeskId`: the currently active desk Id, or `-1` if none is active.
 * - `deskId`: the list of desk Ids of the available desks on this display.
 */
parcelable DisplayDeskState {
    int displayId;
    boolean canCreateDesk;
    int activeDeskId;
    int[] deskIds;
}
+4 −4
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ oneway interface IDesktopTaskListener {
     * Called once when the listener first gets connected to initialize it with the current state of
     * desks in Shell.
     */
    void onListenerConnected(in DisplayDeskState[] displayDeskStates);
    void onListenerConnected(in DisplayDeskState[] displayDeskStates, boolean canCreateDesks);

    /** Desktop tasks visibility has changed. Visible if at least 1 task is visible. */
    void onTasksVisibilityChanged(int displayId, int visibleTasksCount);
@@ -49,10 +49,10 @@ oneway interface IDesktopTaskListener {
    void onExitDesktopModeTransitionStarted(int transitionDuration);

    /**
     * Called when the conditions that allow the creation of a new desk on the display whose ID is
     * `displayId` changes to `canCreateDesks`. It's also called when a new display is added.
     * Called when the conditions that allow the creation of a new desk changes. This is a global
     * state for the entire device.
     */
    void onCanCreateDesksChanged(int displayId, boolean canCreateDesks);
    void onCanCreateDesksChanged(boolean canCreateDesks);

    /** Called when a desk whose ID is `deskId` is added to the display whose ID is `displayId`. */
    void onDeskAdded(int displayId, int deskId);