Class of snx.android.ui · Host.java
public final class Host
The host window the process's windows show in, one over the other, stacked as attach orders them: the top one gets the input. A frame is every root's last recording, the bottom one first, as Android's compositor stacks an app's windows. It is flattened (Frame) and drawn by the runtime's Vulkan renderer; without a window the frames are counted.
public static synchronized void attach(ViewRootImpl root) sourceA window goes over the others, except an activity's own window: under the windows of its token that it already has (a dialog its onCreate showed), as WindowManager stacks a token's base window below its other windows.
public static void detach(ViewRootImpl root) sourceA root gone: the roots left drawn again, without it.
public static void resize(int width, int height) sourceEvery window's root laid out at the display's new size, on the main thread
public static ViewRootImpl touchTarget(float x, float y, int action, java.util.List<ViewRootImpl> outside) sourceThe window a touch at (x, y) of the display goes to, as Android's input dispatcher picks it: from the top, the first whose frame holds the point and takes touches, or the first touch-modal one, which takes every touch (a dialog's). A window that does not take focus (FLAG_NOT_FOCUSABLE) or sets FLAG_NOT_TOUCH_MODAL lets the touches outside it through to the windows below (a popup's). The windows above it that watch outside touches (FLAG_WATCH_OUTSIDE_TOUCH) get an ACTION_OUTSIDE of the down, which outside.
public static synchronized ViewRootImpl keyTarget() sourceThe window a key goes to: the top one that takes focus
public static long frames() sourcepublic static void draw(ViewRootImpl root, RenderNode node) sourceA root's frame: drawn over the roots below it, and under the roots above it.
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.