Lines Matching refs:parent
73 * Private helper to get the parent TabHost in the view hiearchy.
136 final PagedViewGridLayout parent = (PagedViewGridLayout) w.getParent();
137 final PagedView container = (PagedView) parent.getParent();
140 final int widgetIndex = parent.indexOfChild(w);
141 final int widgetCount = parent.getChildCount();
142 final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parent));
144 final int cellCountX = parent.getCellCountX();
145 final int cellCountY = parent.getCellCountY();
161 parent.getChildAt(widgetIndex - 1).requestFocus();
178 parent.getChildAt(widgetIndex + 1).requestFocus();
196 child = parent.getChildAt(newWidgetIndex);
209 child = parent.getChildAt(newWidgetIndex);
234 child = parent.getChildAt(0);
250 child = parent.getChildAt(widgetCount - 1);
259 child = parent.getChildAt(0);
267 parent.getChildAt(widgetCount - 1).requestFocus();
295 // Note we have an extra parent because of the
442 final FocusOnlyTabWidget parent = (FocusOnlyTabWidget) v.getParent();
443 final TabHost tabHost = findTabHostParent(parent);
445 final int tabCount = parent.getTabCount();
446 final int tabIndex = parent.getChildTabIndex(v);
456 parent.getChildTabViewAt(tabIndex - 1).requestFocus();
465 parent.getChildTabViewAt(tabIndex + 1).requestFocus();
494 final ViewGroup parent = (ViewGroup) v.getParent();
495 final ViewGroup launcher = (ViewGroup) parent.getParent();
497 final int buttonIndex = parent.indexOfChild(v);
498 final int buttonCount = parent.getChildCount();
513 parent.getChildAt(buttonIndex - 1).requestFocus();
524 parent.getChildAt(buttonIndex + 1).requestFocus();
559 ViewGroup parent = (ViewGroup) container.getChildAt(i);
560 return (ShortcutAndWidgetContainer) parent.getChildAt(0);
568 ViewGroup parent) {
571 final int count = parent.getChildCount();
574 views.add(parent.getChildAt(j));
607 private static View getIconInDirection(CellLayout layout, ViewGroup parent, int i,
609 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
612 private static View getIconInDirection(CellLayout layout, ViewGroup parent, View v,
614 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
623 private static View getClosestIconOnLine(CellLayout layout, ViewGroup parent, View v,
625 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
665 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
666 final CellLayout layout = (CellLayout) parent.getParent();
681 View newIcon = getIconInDirection(layout, parent, v, -1);
686 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
687 newIcon = getIconInDirection(layout, parent,
688 parent.getChildCount(), -1);
703 View newIcon = getIconInDirection(layout, parent, v, 1);
708 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
709 newIcon = getIconInDirection(layout, parent, -1, 1);
724 View newIcon = getClosestIconOnLine(layout, parent, v, -1);
736 View newIcon = getClosestIconOnLine(layout, parent, v, 1);
750 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
751 parent, -1, 1);
759 View newIcon = getIconInDirection(layout, parent, -1, 1);
772 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
773 View newIcon = getIconInDirection(layout, parent, -1, 1);
781 View newIcon = getIconInDirection(layout, parent,
782 parent.getChildCount(), -1);
793 View newIcon = getIconInDirection(layout, parent, -1, 1);
803 View newIcon = getIconInDirection(layout, parent,
804 parent.getChildCount(), -1);
820 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
821 final CellLayout layout = (CellLayout) parent.getParent();
832 View newIcon = getIconInDirection(layout, parent, v, -1);
842 View newIcon = getIconInDirection(layout, parent, v, 1);
854 View newIcon = getClosestIconOnLine(layout, parent, v, -1);
864 View newIcon = getClosestIconOnLine(layout, parent, v, 1);
876 View newIcon = getIconInDirection(layout, parent, -1, 1);
886 View newIcon = getIconInDirection(layout, parent,
887 parent.getChildCount(), -1);