Skip to content
Commit dcc92eda authored by Adrian Roos's avatar Adrian Roos
Browse files

Adjust window layout for DisplayCutout

Add policy around how the display cutout should influence window layout:
- if not requested, windows should not overlap with the display cutout
 - except windows that asked for LAYOUT_IN_SCREEN | LAYOUT_INSET_DECOR,
   which overlap only with a top cutout, provided they did not request any FULLSCREEN mode.
- the content frame must never overlap with the display cutout
- adds FLAG2_LAYOUT_IN_CUTOUT to explicitly ask to be laid out in the cutout area.

Bug: 65689439
Test: atest com.android.server.policy.PhoneWindowManagerLayoutTest
Change-Id: I3a966bc78ef7a4e076104a996799369c60ab7de1
parent 000cf5e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment