Lines Matching refs:root
93 AccessibilityNodeInfo root = source; in dumpWindow() local
95 AccessibilityNodeInfo parent = root.getParent(); in dumpWindow()
98 } else if (parent.equals(root)) { in dumpWindow()
99 Log.i(LOG_TAG, "Node is own parent:" + root); in dumpWindow()
101 root = parent; in dumpWindow()
103 dumpTree(root, new ArraySet<AccessibilityNodeInfo>()); in dumpWindow()
106 private void dumpTree(AccessibilityNodeInfo root, Set<AccessibilityNodeInfo> visited) { in dumpTree() argument
107 if (root == null) { in dumpTree()
111 if (!visited.add(root)) { in dumpTree()
112 Log.i(LOG_TAG, "Cycle detected to node:" + root); in dumpTree()
115 final int childCount = root.getChildCount(); in dumpTree()
117 AccessibilityNodeInfo child = root.getChild(i); in dumpTree()
122 } else if (!parent.equals(root)) { in dumpTree()
130 AccessibilityNodeInfo child = root.getChild(i); in dumpTree()