Fix for testGravityAndDefaultSizeTopLeft
In Q OS, the framework layouts with WindowsLayout.heightFraction,
and widthFraction, and uses the whole display size, and not appRect.
However, the test only considers appRect for the expected results.
The changes modify the expectedWidthPx and expectedHeightPx to use
the displayRect.width() and displayRect.height() respectively.
In addition, references to appRect were replaced with displayRect.
Bug: b/142011810
Test: Run CTS -m CtsWindowManagerDeviceTestCases -t android.server.wm.ManifestLayoutTests#testGravityAndDefaultSizeTopLeft
Change-Id: I6693758a898d96603b33d2c3d56fc4595b73bb4b
Signed-off-by: Juan Wee <juan.wee@samsung.com>
2 files changed