commit | c4f6e900aea5980315f5a4083f08b96e7862253c | [log] [tgz] |
---|---|---|
author | Jeff Xu <jeff_xu@htc.com> | Thu May 24 15:11:36 2018 +0800 |
committer | Ross Yeh <rossyeh@google.com> | Thu Jun 14 20:31:21 2018 +0000 |
tree | 792797fe9a784b47790d0df3bbef19ccb0b49057 | |
parent | cf7422243df1789ee864c366195f0417f973e787 [diff] |
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>