Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b458c493 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent b8debc69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment