Riddle Hsu 8995590e44 Use isolated display context to get display info
While display is in landscape, and the launcher is transformed to
portrait, the display rotation from activity or application context
will get the rotation in portrait.

In order to transform the input event when the orientations are
different, the actual device rotation is still needed. By creating
the display context from application context, the resources of
the new context won't be affected by the activity/application level
display info adjustments. That provides the actual device states.

Additionally, DefaultDisplay#INSTANCE should only be used for the
operations related to physical orientation/size because it won't
contain the override information from activity.

Bug: 157456493
Test: Use a device which may switch refresh rate.
      Open Maps and put device in landscape.
      Use gesture navigation to swipe up.
      The direction of movement should be consistent with UI.
Change-Id: I03108b1ab057e28727b6a6db3629d2c1c069e828
2020-06-24 04:00:13 +00:00
2020-02-21 14:56:40 -08:00
2019-05-17 23:19:58 -07:00
2020-01-17 11:24:43 -08:00
2019-12-05 11:18:52 +00:00
2020-02-24 15:35:49 -08:00
2020-01-17 11:24:43 -08:00
Description
No description provided
816 MiB
Languages
Java 73.1%
Kotlin 26.5%
AIDL 0.3%
Python 0.1%