CTS testAspectRatio fail due to using Display.getRealMetrics

Current CTS test case using Display.getRealMetrics to get full screen size,
which will cause aspect ratio use full screen width/height to calculate, so test case will fail.
To fix such false alarm & get activity display size correctly,
modified CTS test case to use Display.getMetrics to get the real activity size.

Bug: 80370416

Change-Id: I5e3b957c70b6f0b2e8523d5f0c5daf84660e7e71
Signed-off-by: Jeff Xu <jeff_xu@htc.com>
1 file changed