Documentation
¶
Overview ¶
Command multiwindowprobe verifies mobile multi-window stack UX (pre-rebrand tracker #645, a pre-rebrand tracker #499 follow-up): opening a second NewWindow().Show() over a visible one pushes a child window that covers the parent and carries a titlebar with a close (X) button; closing it pops back to the parent.
iOS/Android have no adb-style touch injection, so on mobile the flow is driven on a timer: t+2 open a child, t+5 close it (Close() is exactly what the titlebar X button invokes via tryClose). The parent's label is updated on close so a screenshot confirms the pop-back actually revealed and repainted the parent. The "Open Child" / "Close this child" buttons drive it interactively.
Then it checks that a closed window's GPU device is released (#1623): a child closed on top, one closed while another lies over it, one closed while hidden, and one closed by an animation's tick, in the middle of its own frame. The garbage collector is off meanwhile, so nothing but Close can release a device. It prints one "multiwindowprobe: PASS|FAIL" line per check, to stdout (logcat tag Bellui) and to the parent window. Last, it opens and closes "loops" more windows, so the process's graphics memory can be read from outside (adb shell dumpsys meminfo).