Package-level declarations
Types
Утилиты для отладки и тестирования объединенного дерева
Класс для объединения View и Compose деревьев в единое дерево UiElement Теперь использует полиморфную структуру: ViewUiElement может содержать ComposeUiElement и наоборот
Builds ApiUiNode trees via UiAutomation accessibility path only.
Результат анализа объединенного дерева
Результат объединения деревьев Теперь возвращает UiElement вместо HybridUiElement
Properties
Functions
Extension функция для удобного анализа дерева
Recursively collects all nodes in the subtree whose className contains "WebView". Used to find all WebView nodes under a ComposeView when merging trees.
Returns true if this node or any descendant has a className indicating a WebView. Used to decide whether to include the app's UiAutomator tree (which contains WebView HTML content).
Finds the smallest node in the tree whose bounds contain (or equal) the target bounds. Returns null if no such node exists. Only considers nodes with non-null bounds. Used to find the Compose AndroidView node that corresponds to a WebView from the View tree.
Finds a WebView node in any of the roots whose bounds match the target bounds. Used to find the corresponding WebView from appAccessibilityRoots for a WebView in View tree.
Finds the first node in the tree (this node or descendants) whose className contains "WebView". Used to get the WebView subtree from the Accessibility Tree to merge under the View WebView node.
Finds the first WebView node in any of the roots.
Сводит список корней Compose-дерева (результат getComposeTreeWithHierarchy) к единственному ApiUiNode для поля ApiUiFrameData.apiUiNode.
Extension функция для удобного вывода дерева в лог