Make SHORT_EDGES mode only extends on the short edges

- In R, we allow long edge cutouts and therefore a new ALWAYS flag is
added which allow apps to be laid out in all edges. So now we have to
ensure apps with SHORT_EDGES mode to be laid out only in short edges.

- Set wallpapaer window to ALWAYS mode

Bug: 146876976
Test: atest DisplayPolicyLayoutTests
Test: atest WallpaperTests
Change-Id: Iaf820b5c8105927e61b30d389a659b9d28db3f94
This commit is contained in:
shawnlin
2020-02-11 20:45:35 +08:00
parent ed1e5bb875
commit 465b7dea75
5 changed files with 164 additions and 18 deletions

View File

@@ -3687,6 +3687,8 @@ public interface WindowManager extends ViewManager {
return "always";
case LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER:
return "never";
case LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES:
return "shortEdges";
default:
return "unknown(" + mode + ")";
}