From 96df7be319ce19ea86c53ad4f04f0d964a39e73f Mon Sep 17 00:00:00 2001 From: nergi Date: Mon, 17 Feb 2025 17:20:24 +0900 Subject: [CD Cursor] Apply selection logic to change cursor displayId In connected displays scenario, this tracks the latest display the cursor is at, within the DisplayTopology. By default, this will be set to topology primary display, and updated when mouse crossed to another display. Note: If associatedDisplay is in different topology, mouse will simply be on the associatedDisplay, keeping existing behavior Doc: go/connected-displays-cursor-behavior Bug: 396568321 Test: atest inputflinger_tests Test: atest InputTests Test: atest CtsInputTestCases Flag: com.android.input.flags.connected_displays_associated_display_cursor_bugfix Change-Id: I6a68d9cd5a4de06896e0e29104c25b8a4493b852 --- include/input/InputFlags.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/input/InputFlags.h b/include/input/InputFlags.h index 0e194eaeb8..4b42f775dd 100644 --- a/include/input/InputFlags.h +++ b/include/input/InputFlags.h @@ -25,6 +25,11 @@ public: * override. */ static bool connectedDisplaysCursorEnabled(); + + /** + * Check if both connectedDisplaysCursor and associatedDisplayCursorBugfix is enabled. + */ + static bool connectedDisplaysCursorAndAssociatedDisplayCursorBugfixEnabled(); }; } // namespace android -- cgit v1.2.3-59-g8ed1b