Set appropriate cursor position on viewport transition
This CL updates PointerChoreographer to set position of the cursor on
the destination display when cursor crosses the boundary.
Also updates the logic to lookup destination displays in topology to
account for size and offset of the display.
Test: presubmit and manual
Bug: 367660694
Flag: com.android.input.flags.connected_displays_cursor
Change-Id: I18e3bd925a44d541e34946494e7e1b9db0a2e786
diff --git a/services/inputflinger/tests/FakePointerController.cpp b/services/inputflinger/tests/FakePointerController.cpp
index c1606a7..f53e63b 100644
--- a/services/inputflinger/tests/FakePointerController.cpp
+++ b/services/inputflinger/tests/FakePointerController.cpp
@@ -195,4 +195,8 @@
mSpotsByDisplay.clear();
}
+ui::Transform FakePointerController::getDisplayTransform() const {
+ return ui::Transform();
+}
+
} // namespace android