Home
last modified time | relevance | path

Searched refs:node (Results 1 – 16 of 16) sorted by relevance

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DAccessibilityNodeInfoDumper.java65 private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer,int index, in dumpNodeRec() argument
68 if (!nafExcludedClass(node) && !nafCheck(node)) in dumpNodeRec()
71 serializer.attribute("", "text", safeCharSeqToString(node.getText())); in dumpNodeRec()
72 serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName())); in dumpNodeRec()
73 serializer.attribute("", "class", safeCharSeqToString(node.getClassName())); in dumpNodeRec()
74 serializer.attribute("", "package", safeCharSeqToString(node.getPackageName())); in dumpNodeRec()
75 serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription())); in dumpNodeRec()
76 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable())); in dumpNodeRec()
77 serializer.attribute("", "checked", Boolean.toString(node.isChecked())); in dumpNodeRec()
78 serializer.attribute("", "clickable", Boolean.toString(node.isClickable())); in dumpNodeRec()
[all …]
DUiObject.java148 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in getChildCount() local
149 if(node == null) { in getChildCount()
152 return node.getChildCount(); in getChildCount()
163 AccessibilityNodeInfo node = null; in findAccessibilityNodeInfo() local
167 node = getQueryController().findAccessibilityNodeInfo(mUiSelector); in findAccessibilityNodeInfo()
168 if (node != null) { in findAccessibilityNodeInfo()
179 return node; in findAccessibilityNodeInfo()
352 Rect getVisibleBounds(AccessibilityNodeInfo node) { in getVisibleBounds() argument
353 if (node == null) { in getVisibleBounds()
361 return AccessibilityNodeInfoHelper.getVisibleBoundsInScreen(node, w, h, true); in getVisibleBounds()
[all …]
DByMatcher.java135 private List<AccessibilityNodeInfo> findMatches(AccessibilityNodeInfo node, int depth, in findMatches() argument
140 if (!node.isVisibleToUser()) { in findMatches()
146 partialMatches = partialMatch.matchChildren(node, depth, partialMatches); in findMatches()
151 mTargetSelector, mRootSelector, node, depth, depth); in findMatches()
157 int numChildren = node.getChildCount(); in findMatches()
160 AccessibilityNodeInfo child = node.getChild(i); in findMatches()
163 Log.w(TAG, String.format("Node returned null child: %s", node)); in findMatches()
193 private boolean matchesDisplayId(AccessibilityNodeInfo node) { in matchesDisplayId() argument
203 && displayIds.contains(Api30Impl.getDisplayId(node)); in matchesDisplayId()
230 AccessibilityNodeInfo node) { in PartialMatch() argument
[all …]
DUiObject2.java267 AccessibilityNodeInfo node = in hasObject() local
269 if (node != null) { in hasObject()
270 node.recycle(); in hasObject()
284 AccessibilityNodeInfo node = in findObject() local
286 if (node == null) { in findObject()
290 return UiObject2.create(getDevice(), selector, node); in findObject()
300 for (AccessibilityNodeInfo node : in findObjects()
302 UiObject2 object = UiObject2.create(getDevice(), selector, node); in findObjects()
323 private Rect getVisibleBounds(AccessibilityNodeInfo node) { in getVisibleBounds() argument
331 return AccessibilityNodeInfoHelper.getVisibleBoundsInScreen(node, screen, true); in getVisibleBounds()
[all …]
DAccessibilityNodeInfoHelper.java41 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height, in getVisibleBoundsInScreen() argument
43 return getVisibleBoundsInScreen(node, new Rect(0, 0, width, height), trimScrollableParent); in getVisibleBoundsInScreen()
53 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, Rect displayRect, in getVisibleBoundsInScreen() argument
55 if (node == null) { in getVisibleBoundsInScreen()
60 node.getBoundsInScreen(nodeRect); in getVisibleBoundsInScreen()
69 AccessibilityWindowInfo window = node.getWindow(); in getVisibleBoundsInScreen()
77 for (AccessibilityNodeInfo ancestor = node.getParent(); ancestor != null; ancestor = in getVisibleBoundsInScreen()
DUiSelector.java640 boolean isMatchFor(AccessibilityNodeInfo node, int index) { in isMatchFor() argument
651 if (node.isChecked() != getBoolean(criterion)) { in isMatchFor()
656 s = node.getClassName(); in isMatchFor()
662 s = node.getClassName(); in isMatchFor()
668 if (node.isClickable() != getBoolean(criterion)) { in isMatchFor()
673 if (node.isCheckable() != getBoolean(criterion)) { in isMatchFor()
678 if (node.isLongClickable() != getBoolean(criterion)) { in isMatchFor()
683 s = node.getContentDescription(); in isMatchFor()
690 s = node.getContentDescription(); in isMatchFor()
697 s = node.getContentDescription(); in isMatchFor()
[all …]
DUiScrollable.java342 AccessibilityNodeInfo node = findAccessibilityNodeInfo( in scrollForward() local
344 if(node == null) { in scrollForward()
347 Rect rect = getVisibleBounds(node); in scrollForward()
416 AccessibilityNodeInfo node = findAccessibilityNodeInfo( in scrollBackward() local
418 if (node == null) { in scrollBackward()
421 Rect rect = getVisibleBounds(node); in scrollBackward()
DAccessibilityNodeInfoExt.kt68 fun dfs(node: AccessibilityNodeInfo) { in dfs()
69 if (filterBlock(node)) collector.add(node) in dfs()
70 node.children().forEach { dfs(it) } in dfs()
DStableResult.kt33 public val node: AccessibilityNodeInfo, constant in androidx.test.uiautomator.StableResult
DUiDevice.java141 AccessibilityNodeInfo node = ByMatcher.findMatch( in hasObject() local
146 if (node != null) { in hasObject()
147 node.recycle(); in hasObject()
161 AccessibilityNodeInfo node = ByMatcher.findMatch( in findObject() local
166 if (node == null) { in findObject()
170 return UiObject2.create(this, selector, node); in findObject()
178 for (AccessibilityNodeInfo node : ByMatcher.findMatches( in findObjects()
183 UiObject2 object = UiObject2.create(this, selector, node); in findObjects()
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/
DModels.kt55 node: AccessibilityNodeInfo, in <lambda>()
59 val children = node.children() in <lambda>()
66 node = child, in <lambda>()
77 node.hintText?.toString() ?: "" in <lambda>()
81 node.drawingOrder in <lambda>()
87 text = node.text.orBlank(), in <lambda>()
88 viewIdResourceName = node.viewIdResourceName.orBlank(), in <lambda>()
89 className = node.className.orBlank(), in <lambda>()
90 packageName = node.packageName.orBlank(), in <lambda>()
91 contentDescription = node.contentDescription.orBlank(), in <lambda>()
[all …]
DViews.kt36 node: AccessibilityNodeInfo, in <lambda>()
41 if (block(node)) { in <lambda>()
42 collected.add(node) in <lambda>()
47 node.children().forEach { child -> dfs(child, collected) } in <lambda>()
58 dfs(node = it, collected = list) in <lambda>()
DStability.kt78 node = stableRootNode.accessibilityNodeInfo, in waitForStableInternal()
DUtils.kt86 node = root,
/test/uiautomator/uiautomator/api/
Dcurrent.txt205 property public android.view.accessibility.AccessibilityNodeInfo node;
Drestricted_current.txt205 property public android.view.accessibility.AccessibilityNodeInfo node;