Lines Matching defs:node

47      * @param root The root accessibility node.
69 * @param root The root accessibility node.
101 private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer,int index,
103 serializer.startTag("", "node");
104 if (!nafExcludedClass(node) && !nafCheck(node))
107 serializer.attribute("", "text", safeCharSeqToString(node.getText()));
108 serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName()));
109 serializer.attribute("", "class", safeCharSeqToString(node.getClassName()));
110 serializer.attribute("", "package", safeCharSeqToString(node.getPackageName()));
111 serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription()));
112 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable()));
113 serializer.attribute("", "checked", Boolean.toString(node.isChecked()));
114 serializer.attribute("", "clickable", Boolean.toString(node.isClickable()));
115 serializer.attribute("", "enabled", Boolean.toString(node.isEnabled()));
116 serializer.attribute("", "focusable", Boolean.toString(node.isFocusable()));
117 serializer.attribute("", "focused", Boolean.toString(node.isFocused()));
118 serializer.attribute("", "scrollable", Boolean.toString(node.isScrollable()));
119 serializer.attribute("", "long-clickable", Boolean.toString(node.isLongClickable()));
120 serializer.attribute("", "password", Boolean.toString(node.isPassword()));
121 serializer.attribute("", "selected", Boolean.toString(node.isSelected()));
123 node, width, height).toShortString());
124 int count = node.getChildCount();
126 AccessibilityNodeInfo child = node.getChild(i);
136 i, count, node.toString()));
139 serializer.endTag("", "node");
147 * @param node
148 * @return true if node is excluded.
150 private static boolean nafExcludedClass(AccessibilityNodeInfo node) {
151 String className = safeCharSeqToString(node.getClassName());
166 * @param node
167 * @return false if a node fails the check, true if all is OK
169 private static boolean nafCheck(AccessibilityNodeInfo node) {
170 boolean isNaf = node.isClickable() && node.isEnabled()
171 && safeCharSeqToString(node.getContentDescription()).isEmpty()
172 && safeCharSeqToString(node.getText()).isEmpty();
180 return childNafCheck(node);
184 * This should be used when it's already determined that the node is NAF and
185 * a further check of its children is in order. A node maybe a container
192 * @param node
193 * @return false if node fails the check.
195 private static boolean childNafCheck(AccessibilityNodeInfo node) {
196 int childCount = node.getChildCount();
198 AccessibilityNodeInfo childNode = node.getChild(x);