InputDispatcher: Remove transform only for joysticks and touchpads

This partially reverts commit bd52771be41ae18f9fda43301eeeab89021d4248.

Since window transforms can encode rotations, we need window transforms
for some non-pointer events such as relative mouse events. Joysticks and
touchapds are an exception to this, because neither expect their
reported values to be rotated. For this reason, we only remove window
transformations in InputDispatcher for these two types of devices.

The bug b/182325974 is now solved by selectively applying window
translations for pointer events in MotionEvent.

Bug: 182325974
Bug: 179274888
Test: atest inputflinger_tests
Test: manual with test app
Change-Id: I68a0c87f24a9ddea14e3078ad894410210e42b4a
2 files changed