Handle display cutouts larger than system bars

Update window frame size computation so that window won't extend into
the display cutout area when the cutout is not covered by system bars in
default or short edge mode.

Bug: 296250140
Test: atest CtsWindowManagerDeviceTestCases:android.server.wm.DialogFrameTests

Change-Id: I070bfb857e62f4af591641c7a62eaeda8344720c
(cherry picked from commit a84613cf0aca644c7518e8ab2f1b219842cc8799)
1 file changed