Use real screen width/height to calculate aspect ratio

Cherry pick from:
https://android-review.googlesource.com/62983

Get the full screen size directly (including system bar) to
calculate aspect ratio. With this, the screen orientation doesn't
affect the aspect ratio value anymore. Test that the aspect ratio
is within the range.

Change-Id: I9c9bd4d03c1e4136e8f08aab42cfae204d9022bf
1 file changed