[CD cursor] Adjust for density when moving cursor between displays

Connected displays may have different densities we need to adjust our
calculations to consider this when cursor moves between displays.

Test: atest inputflinger_tests
Bug: 367660694
Flag: com.android.input.flags.connected_displays_cursor
Change-Id: Iecc262cf2efdda3249aff69d5ac157b4c434a575
4 files changed