diff options
author | Adrian Roos <roosa@google.com> | 2017-11-22 14:35:58 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2017-12-08 14:45:18 +0100 |
commit | dcc92eda11deeb8ce18f1c0a9f1833cb7fe8d0c6 (patch) | |
tree | 7b8156c3aa0b4496b8a0ba90f8b1132c89f82a8e /libs/hwui/renderthread/CacheManager.cpp | |
parent | 000cf5e06de6ac266467071b638d0b7039bf81db (diff) |
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
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
0 files changed, 0 insertions, 0 deletions