TouchInputMapper: Index input device pixels in rotated display space

Redo the way we calculate input transforms so that each discrete raw
pixel is indexed in the current display orientation. InputReader should
still be sending events in the unrotated display space.

See the following file for more information about improper indexing of
pixels when converting discrete coordinates into the continuous space:

//frameworks/native/services/inputflinger/docs/input_coordinates.md

Bug: 257118693
Test: atest inputflinger_tests
Change-Id: Id6633d3a58bada3a7ec03ccd5cfe71fbb719ea6a
2 files changed