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

Commit d697faca authored by Arpit Singh's avatar Arpit Singh
Browse files

[CD Cursor] Introduce DISPLAY_TOPOLOGY_AWARE flag

This CL introduces InputConfig::DISPLAY_TOPOLOGY_AWARE flag. This will
be used in upcoming CLs to make receiving corss-display gestures an
opt-in feature for windows.

Bug: 401220484
Test: presubmit
Flag: com.android.input.flags.use_topology_aware_flag
Change-Id: I8a65e9a482dad325c2ca1f7af4419082f7b9aba2
parent f423c74b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -178,6 +178,8 @@ struct WindowInfo : public Parcelable {
                static_cast<uint32_t>(os::InputConfig::GLOBAL_STYLUS_BLOCKS_TOUCH),
        SENSITIVE_FOR_PRIVACY =
                static_cast<uint32_t>(os::InputConfig::SENSITIVE_FOR_PRIVACY),
        DISPLAY_TOPOLOGY_AWARE =
                static_cast<uint32_t>(os::InputConfig::DISPLAY_TOPOLOGY_AWARE),
        // clang-format on
    };

+13 −0
Original line number Diff line number Diff line
@@ -160,4 +160,17 @@ enum InputConfig {
     * determine how these sensitive events are eventually traced.
     */
     SENSITIVE_FOR_PRIVACY       = 1 << 18,

    /**
     * InputConfig used to indicate that this window is topology aware. Using this flag will allow
     * windows to receive gestures that can cross display boundaries. This flag is used for cross
     * display drag and drop of windows and contents.
     *
     * Window with this flag can receive an input event stream containing events with varying
     * displayIds in the corresponding coordinate space when the cursor crosses display boundary.
     *
     * When this flag is not set, window will receive a modified event stream where display Id will
     * remain unchanged and coordinate space will extend beyond the logical display space.
     */
     DISPLAY_TOPOLOGY_AWARE       = 1 << 19,
}