summaryrefslogtreecommitdiff
path: root/libs/binder/RpcState.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-12-06 20:30:22 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-03-09 22:37:49 +0000
commitc093bbedfcd6bf51ce583364d5856fdbeea5d614 (patch)
tree1355f407071ee1340a903d51d6307a53328c2b71 /libs/binder/RpcState.cpp
parentdb326da336df7f4750881b15de74d30c8faed590 (diff)
InputDispatcher: Perform hit test in logical display space
Window Manager works in the logical display coordinate space. When it specifies bounds for a window as (l, t, r, b), the range of x in [l, r) and y in [t, b) are considered to be inside the window. Points on the right and bottom edges should not be inside the window, so we need to be careful about performing a hit test when the display is rotated, since the "right" and "bottom" of the window will be different in the display (un-rotated) space compared to in the logical display in which WM determined the bounds. To ensure we consider points on the edges correctly, perform hit tests in dispatcher in the logical display space. Bug: 257118693 Test: atest inputflinger_tests Test: manual with tablet and stylus Change-Id: Ic879c4c2cf81d317030690dff20b21ea7255425b Merged-In: Ic879c4c2cf81d317030690dff20b21ea7255425b
Diffstat (limited to 'libs/binder/RpcState.cpp')
0 files changed, 0 insertions, 0 deletions