summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-11-26 14:13:14 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-11-26 14:21:28 +0800
commitb458c493c52c7ac3ccc0bffe548b2f5ec500c512 (patch)
tree66bd1f31f31f31e224be5a67ae9a26201c554ee0 /libs/androidfw/ResourceTimer.cpp
parentb8debc693469dc3bbcaf74762534b3863ff8da70 (diff)
Make large screen display ignore orientation request by default
- Make the behavior consistent on large screen. Enable ignore-orientation-request by smallestScreenWidthDp >= 600dp It can still be overridden by shell command or display_settings.xml. - The regular large screen devices already configure their display_settings.xml with ignoreOrientationRequest="true". This can reduce duplication of display_settings.xml for new large screen devices every time. - Make most tests of SizeCompatTests use default display. Because it is more efficient than creating a new display. That may reduce the test time by tens of seconds. - Remove some incorrect assertDownScaled in SizeCompatTests which should not apply compat scale, e.g. a 700x1400 activity in a 2800x1400 display rotates to 1400x700. But it was accidentally passed by the fallback scale DisplayContent#mCompatibleScreenScale which is 0 on a TestDisplayContent. Bug: 357141415 Flag: com.android.window.flags.universal_resizable_by_default Test: atest SizeCompatTests Change-Id: Id67309257d3af875ea6b2b2fb42c5fb5e01b9d6e
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions