summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMark Hong <sungmin.h@samsung.com>2020-01-10 10:20:45 -0800
committerVishnu Nair <vishnun@google.com>2020-03-12 09:07:42 -0700
commit0db341117e06d3eece128c872645a0ffdffcda0e (patch)
tree16479b84708bf091dcc1ca99bc7ebb017a6b17e4 /tools/aapt2/java/JavaClassGenerator.cpp
parent27deb3b71178f9bfe8743cb50703dc97571e8176 (diff)
Apply proper displayCutout rotation in density 480 dpi and 270 degrees rotation.
In case device has 480 dpi and rotating the degrees then shortSizeDp value is less than 480 because of diaplay cutout. So ScreenLayoutSize will not be properly set and there is difference in between expectedScreenLayout and actualScreenLayout. In order to fix this issue, displayCutout should also be rotated while in calculating reduceConfigLayout. Bug: b/147473991 Test: run cts-on-gsi -m CtsDpiTestCases -t android.dpi.cts.ConfigurationScreenLayyoutTest#testScreenLayout Change-Id: Ie3d615e494cb3fd21f4388e969e5e637860b86ac Signed-off-by: Mark Hong <sungmin.h@samsung.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions