private AccessibilityNodeInfoCompat getNodeForParent() { final AccessibilityNodeInfoCompat info = AccessibilityNodeInfoCompat.obtain(mParentView); ViewCompat.onInitializeAccessibilityNodeInfo(mParentView, info); final LinkedList<T> items = new LinkedList<T>(); getVisibleItems(items); for (T item : items) { final int virtualDescendantId = getIdForItem(item); info.addChild(mParentView, virtualDescendantId); } return info; }
private AccessibilityNodeInfoCompat createNodeForHost() { AccessibilityNodeInfoCompat accessibilitynodeinfocompat = AccessibilityNodeInfoCompat.obtain(mView); ViewCompat.onInitializeAccessibilityNodeInfo(mView, accessibilitynodeinfocompat); Object obj = new LinkedList(); getVisibleVirtualViews(((List) (obj))); Integer integer; for (obj = ((LinkedList) (obj)).iterator(); ((Iterator) (obj)).hasNext(); accessibilitynodeinfocompat.addChild(mView, integer.intValue())) { integer = (Integer) ((Iterator) (obj)).next(); } return accessibilitynodeinfocompat; }