diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-03-06 21:01:13 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-05-11 13:30:14 +0800 |
commit | ca70b013021a4486dbed015dd7f362d00878efbe (patch) | |
tree | 7078a1f14b180fd1d57c6c309ea1abebd8041de1 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 53ed707827f48bdb183add5f08d285dc06e9c705 (diff) |
Add fixed rotation display adjustments
If an activity is launched with fixed rotation transform,
its window layout and configuration will be rotated. But
if it gets real information from the display, the values
(getRotation, getRealSize, getRealMetric, getCutout) are
inconsistent with the actual appearance.
This change provides the basic information to adjust the
returned values.
Bug: 147213487
Test: atest DisplayAdjustmentsTests#testFixedRotationAdjustments
Change-Id: I864d5759f41209d5f93c4a9011b720675c25e765
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions