Lines Matching refs:pageIndex
113 final int pageIndex = pagedView.indexOfChild(cellLayout); in onKey() local
119 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
131 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
134 pagedView.snapToPage(pageIndex - 1); in onKey()
142 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
144 pagedView.snapToPage(pageIndex - 1); in onKey()
149 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
151 pagedView.snapToPage(pageIndex - 1); in onKey()
156 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex + 1); in onKey()
158 pagedView.snapToPage(pageIndex + 1); in onKey()
164 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex + 1); in onKey()
166 pagedView.snapToPage(pageIndex + 1); in onKey()
225 int pageIndex = workspace.getNextPage(); in handleHotseatButtonKeyEvent() local
231 final CellLayout iconLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleHotseatButtonKeyEvent()
264 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleHotseatButtonKeyEvent()
270 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1); in handleHotseatButtonKeyEvent()
274 workspace.snapToPage(pageIndex + 1); in handleHotseatButtonKeyEvent()
277 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
281 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
284 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
288 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
293 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
298 workspace.snapToPage(pageIndex + 1); in handleHotseatButtonKeyEvent()
343 final int pageIndex = workspace.indexOfChild(iconLayout); in handleIconKeyEvent() local
363 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleIconKeyEvent()
367 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleIconKeyEvent()
376 int newPageIndex = pageIndex - 1; in handleIconKeyEvent()
378 newPageIndex = pageIndex + 1; in handleIconKeyEvent()
389 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
392 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
400 workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1); in handleIconKeyEvent()
405 workspace.snapToPage(pageIndex - 1); in handleIconKeyEvent()
409 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent()
412 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent()
416 newPageIndex = pageIndex + 1; in handleIconKeyEvent()
418 newPageIndex = pageIndex - 1; in handleIconKeyEvent()
428 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
431 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
509 int pageIndex, boolean isRtl) { in handlePreviousPageLastItem() argument
510 if (pageIndex - 1 < 0) { in handlePreviousPageLastItem()
513 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1); in handlePreviousPageLastItem()
518 workspace.snapToPage(pageIndex - 1); in handlePreviousPageLastItem()
524 int pageIndex, boolean isRtl) { in handleNextPageFirstItem() argument
525 if (pageIndex + 1 >= workspace.getPageCount()) { in handleNextPageFirstItem()
528 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex + 1); in handleNextPageFirstItem()
533 workspace.snapToPage(pageIndex + 1); in handleNextPageFirstItem()