TouchInputMapper: Use ui::Transform to "cook" raw input coordinates

Instead of manually scaling and rotating the input device's raw
coordinates to the un-rotated display's coordinate space, we use a
transfomation matrix as a helper.

This change also exposed some bugs, where the tests were enforcing
incorrect behavior.

Bug: 236798672
Test: atest inputflinger_tests
Test: manual with touchscreen and stylus
Change-Id: I15b5fa6696720736ff1a598f88a4bc7067644cba
3 files changed