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

Commit 15160ef4 authored by Winson Chung's avatar Winson Chung
Browse files

Unhide drag flag used for hiding the source task

- This flag is used by the privileged system assistant apps to
  temporarily hide its window when it starts a drag to enter
  multi-window

Bug: 371206207
Bug: 350016003
Flag: EXEMPT adding supports_drag_assistant_to_multiwindow in this CL
Test: atest WMShellUnitTests:DragAndDropPolicyTest.java
Test: atest DragAndDropPolicyTest
Change-Id: I8c5ce30745a2ff6270df5ea32c6cfdd45f8a01e9
parent fcf78913
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53958,6 +53958,7 @@ package android.view {
    field @FlaggedApi("com.android.window.flags.delegate_unhandled_drags") public static final int DRAG_FLAG_GLOBAL_SAME_APPLICATION = 4096; // 0x1000
    field public static final int DRAG_FLAG_GLOBAL_URI_READ = 1; // 0x1
    field public static final int DRAG_FLAG_GLOBAL_URI_WRITE = 2; // 0x2
    field @FlaggedApi("com.android.window.flags.supports_drag_assistant_to_multiwindow") public static final int DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START = 16384; // 0x4000
    field public static final int DRAG_FLAG_OPAQUE = 512; // 0x200
    field @FlaggedApi("com.android.window.flags.delegate_unhandled_drags") public static final int DRAG_FLAG_START_INTENT_SENDER_ON_UNHANDLED_DRAG = 8192; // 0x2000
    field @Deprecated public static final int DRAWING_CACHE_QUALITY_AUTO = 0; // 0x0
+5 −3
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ import static com.android.internal.util.FrameworkStatsLog.TOUCH_GESTURE_CLASSIFI
import static com.android.internal.util.FrameworkStatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__SINGLE_TAP;
import static com.android.internal.util.FrameworkStatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__UNKNOWN_CLASSIFICATION;
import static com.android.window.flags.Flags.FLAG_DELEGATE_UNHANDLED_DRAGS;
import static com.android.window.flags.Flags.FLAG_SUPPORTS_DRAG_ASSISTANT_TO_MULTIWINDOW;
import static java.lang.Math.max;
@@ -5550,10 +5551,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    /**
     * Flag indicating that this drag will result in the caller activity's task to be hidden for the
     * duration of the drag, this means that the source activity will not receive drag events for
     * the current drag gesture. Only the current voice interaction service may use this flag.
     * @hide
     * duration of the drag, which means that the source activity will not receive drag events for
     * the current drag gesture. Only the current
     * {@link android.service.voice.VoiceInteractionService} may use this flag.
     */
    @FlaggedApi(FLAG_SUPPORTS_DRAG_ASSISTANT_TO_MULTIWINDOW)
    public static final int DRAG_FLAG_HIDE_CALLING_TASK_ON_DRAG_START = 1 << 14;
    /**
+15 −6
Original line number Diff line number Diff line
@@ -168,6 +168,15 @@ flag {
    is_fixed_read_only: true
}

flag {
    name: "supports_drag_assistant_to_multiwindow"
    is_exported: true
    namespace: "multitasking"
    description: "Enables support for dragging the assistant into multiwindow"
    bug: "371206207"
    is_fixed_read_only: true
}

flag {
  name: "fifo_priority_for_major_ui_processes"
  namespace: "windowing_frontend"