Lines Matching refs:parent

62      * Private helper to get the parent TabHost in the view hiearchy.
90 final PagedViewGridLayout parent = (PagedViewGridLayout) w.getParent();
91 final PagedView container = (PagedView) parent.getParent();
92 final int widgetIndex = parent.indexOfChild(w);
93 final int widgetCount = parent.getChildCount();
94 final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parent));
96 final int cellCountX = parent.getCellCountX();
97 final int cellCountY = parent.getCellCountY();
113 parent.getChildAt(widgetIndex - 1).requestFocus();
130 parent.getChildAt(widgetIndex + 1).requestFocus();
148 child = parent.getChildAt(newWidgetIndex);
159 child = parent.getChildAt(newWidgetIndex);
184 child = parent.getChildAt(0);
200 child = parent.getChildAt(widgetCount - 1);
209 child = parent.getChildAt(0);
217 parent.getChildAt(widgetCount - 1).requestFocus();
245 // Note we have an extra parent because of the
402 final FocusOnlyTabWidget parent = (FocusOnlyTabWidget) v.getParent();
403 final AppsCustomizeTabHost tabHost = findTabHostParent(parent);
405 final int tabCount = parent.getTabCount();
406 final int tabIndex = parent.getChildTabIndex(v);
416 parent.getChildTabViewAt(tabIndex - 1).requestFocus();
425 parent.getChildTabViewAt(tabIndex + 1).requestFocus();
454 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
455 final CellLayout layout = (CellLayout) parent.getParent();
466 ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
478 ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
522 CellLayout parent = (CellLayout) container.getChildAt(i);
523 return parent.getShortcutsAndWidgets();
531 ViewGroup parent) {
534 final int count = parent.getChildCount();
537 views.add(parent.getChildAt(j));
570 private static View getIconInDirection(CellLayout layout, ViewGroup parent, int i,
572 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
575 private static View getIconInDirection(CellLayout layout, ViewGroup parent, View v,
577 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
586 private static View getClosestIconOnLine(CellLayout layout, ViewGroup parent, View v,
588 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
628 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
629 final CellLayout layout = (CellLayout) parent.getParent();
644 View newIcon = getIconInDirection(layout, parent, v, -1);
650 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
651 newIcon = getIconInDirection(layout, parent,
652 parent.getChildCount(), -1);
668 View newIcon = getIconInDirection(layout, parent, v, 1);
674 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
675 newIcon = getIconInDirection(layout, parent, -1, 1);
691 View newIcon = getClosestIconOnLine(layout, parent, v, -1);
704 View newIcon = getClosestIconOnLine(layout, parent, v, 1);
720 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
721 View newIcon = getIconInDirection(layout, parent, -1, 1);
730 View newIcon = getIconInDirection(layout, parent, -1, 1);
744 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
745 View newIcon = getIconInDirection(layout, parent, -1, 1);
754 View newIcon = getIconInDirection(layout, parent,
755 parent.getChildCount(), -1);
767 View newIcon = getIconInDirection(layout, parent, -1, 1);
778 View newIcon = getIconInDirection(layout, parent,
779 parent.getChildCount(), -1);
796 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
797 final CellLayout layout = (CellLayout) parent.getParent();
809 View newIcon = getIconInDirection(layout, parent, v, -1);
820 View newIcon = getIconInDirection(layout, parent, v, 1);
833 View newIcon = getClosestIconOnLine(layout, parent, v, -1);
844 View newIcon = getClosestIconOnLine(layout, parent, v, 1);
857 View newIcon = getIconInDirection(layout, parent, -1, 1);
868 View newIcon = getIconInDirection(layout, parent,
869 parent.getChildCount(), -1);