Introduce WindowlessWindowLayout

The window frame computed by WindowlessWindowManager doesn't take the
window bounds, insets state, gravity, ... into account, but only width
and height in LayoutParams. This CL introduces WindowlessWindowLayout
which aligns the logic in WindowlessWindowManager#relayout. When we
enable LOCAL_LAYOUT, the frame of windowless window will be compatible.

Bug: 161810301
Bug: 175858823
Test: atest SurfaceControlViewHostTests#testEmbeddedViewResizes
Change-Id: I460445e9d6b61117edbdaddeac6a00a838b3caa8
4 files changed