Home | History | Annotate | Download | only in launcher3

Lines Matching defs:parent

72      * Private helper to get the parent TabHost in the view hiearchy.
135 final PagedViewGridLayout parent = (PagedViewGridLayout) w.getParent();
136 final PagedView container = (PagedView) parent.getParent();
139 final int widgetIndex = parent.indexOfChild(w);
140 final int widgetCount = parent.getChildCount();
141 final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parent));
143 final int cellCountX = parent.getCellCountX();
144 final int cellCountY = parent.getCellCountY();
160 parent.getChildAt(widgetIndex - 1).requestFocus();
177 parent.getChildAt(widgetIndex + 1).requestFocus();
195 child = parent.getChildAt(newWidgetIndex);
208 child = parent.getChildAt(newWidgetIndex);
233 child = parent.getChildAt(0);
249 child = parent.getChildAt(widgetCount - 1);
258 child = parent.getChildAt(0);
266 parent.getChildAt(widgetCount - 1).requestFocus();
294 // Note we have an extra parent because of the
441 final FocusOnlyTabWidget parent = (FocusOnlyTabWidget) v.getParent();
442 final TabHost tabHost = findTabHostParent(parent);
444 final int tabCount = parent.getTabCount();
445 final int tabIndex = parent.getChildTabIndex(v);
455 parent.getChildTabViewAt(tabIndex - 1).requestFocus();
464 parent.getChildTabViewAt(tabIndex + 1).requestFocus();
493 final ViewGroup parent = (ViewGroup) v.getParent();
494 final ViewGroup launcher = (ViewGroup) parent.getParent();
496 final int buttonIndex = parent.indexOfChild(v);
497 final int buttonCount = parent.getChildCount();
512 parent.getChildAt(buttonIndex - 1).requestFocus();
523 parent.getChildAt(buttonIndex + 1).requestFocus();
558 ViewGroup parent = (ViewGroup) container.getChildAt(i);
559 return (ShortcutAndWidgetContainer) parent.getChildAt(0);
567 ViewGroup parent) {
570 final int count = parent.getChildCount();
573 views.add(parent.getChildAt(j));
606 private static View getIconInDirection(CellLayout layout, ViewGroup parent, int i,
608 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
611 private static View getIconInDirection(CellLayout layout, ViewGroup parent, View v,
613 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
622 private static View getClosestIconOnLine(CellLayout layout, ViewGroup parent, View v,
624 final ArrayList<View> views = getCellLayoutChildrenSortedSpatially(layout, parent);
664 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
665 final CellLayout layout = (CellLayout) parent.getParent();
680 View newIcon = getIconInDirection(layout, parent, v, -1);
685 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
686 newIcon = getIconInDirection(layout, parent,
687 parent.getChildCount(), -1);
702 View newIcon = getIconInDirection(layout, parent, v, 1);
707 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
708 newIcon = getIconInDirection(layout, parent, -1, 1);
723 View newIcon = getClosestIconOnLine(layout, parent, v, -1);
735 View newIcon = getClosestIconOnLine(layout, parent, v, 1);
749 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
750 parent, -1, 1);
758 View newIcon = getIconInDirection(layout, parent, -1, 1);
771 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
772 View newIcon = getIconInDirection(layout, parent, -1, 1);
780 View newIcon = getIconInDirection(layout, parent,
781 parent.getChildCount(), -1);
792 View newIcon = getIconInDirection(layout, parent, -1, 1);
802 View newIcon = getIconInDirection(layout, parent,
803 parent.getChildCount(), -1);
819 ShortcutAndWidgetContainer parent = (ShortcutAndWidgetContainer) v.getParent();
820 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);