summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-06-03 20:32:44 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-06-04 09:12:37 +0000
commitd6a7541ede8b0783654b45b87954394cadeba4d0 (patch)
treed3ddca5c9e3cb8dbd5552ce0a4578e25dcedc043 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd52baf860c774b3386f59230574d2e3f7a6a7de7 (diff)
Include insets in bounds with restricted aspect ratio
The target of aspect ratio is app bounds. The output of applyAspectRatio is raw bounds. Because the insets of all sides will be clipped when resolving the configuration by computeConfigResourceOverrides, the raw aspect ration bounds should also include insets of all sides. Otherwise it wastes the available space of insets area. Fixes: 159745191 Fixes: 189558761 Test: SizeCompatTests#testOverrideMinAspectRatioLowerThanManifest CtsWindowManagerDeviceTestCases:AspectRatioTests Test: Set screen size to 1000x2200 with gesture navigation. Launch a landscape app with max aspect ratio 1.9. The bottom of screen shouldn't have an empty area. Change-Id: I55b9662425173f0df086439e121395682d951b60
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions