summaryrefslogtreecommitdiff
path: root/core/java/android/view/WindowlessWindowLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Send the attached frame to the clientTiger Huang2022-06-201-4/+4
| | | | | | | | | | | | | | | | | | | | The attached frame is the frame of the parent window that its child attaches to, as long as the child is not TYPE_APPLICATION_ATTACHED_DIALOG. It is a factor while computing the window frame. Previously, we let the child obtain the attached frame from its parent view root. However, if the parent and the child are not in the same process, it can be tricky. This CL sends the attached frame from the server to the client via ClientWindowFrames. In this way, the child can compute its window frame without having to accessing the parent view root. Bug: 161810301 Bug: 175861127 Test: atest ActivityRecordTests WindowLayoutTests Change-Id: Ia844a4c927027e305a56114216eaee2bf7933b1f
* Introduce WindowlessWindowLayoutTiger Huang2022-04-221-0/+39
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