Skip to content
Commit 914cef5f authored by Jacky Kao's avatar Jacky Kao
Browse files

Apply display transform to window bounds and node bounds

Currently, the node bounds and the window bounds are both in
unrotated coordinates, it means if their layout is not changed,
then the bound wouldn't be change after rotating the device.

This effects Uiobject2, which is used for uiautomator, because
it clips the nodes bounds based on current display metrics.
see ag/13805539.

To fix it, we transfer them back to the rotated coordinates
based on the displayInfo called back from the surface flinger.
(Co-Author: Ryan)

Bug: 191736824
Test: a11y CTS & unit tests
Test: atest NexusLauncherTests & Launcher3Tests
Change-Id: Ia92e70d98f58cb68c8e464bc142d20640ad8c53c
parent 35433f34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment