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