Lines Matching refs:pageIndex
107 final int pageIndex = pagedView.indexOfChild(cellLayout); in onKey() local
113 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
125 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
128 pagedView.snapToPage(pageIndex - 1); in onKey()
136 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
138 pagedView.snapToPage(pageIndex - 1); in onKey()
143 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex - 1); in onKey()
145 pagedView.snapToPage(pageIndex - 1); in onKey()
150 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex + 1); in onKey()
152 pagedView.snapToPage(pageIndex + 1); in onKey()
158 newParent = getCellLayoutChildrenForIndex(pagedView, pageIndex + 1); in onKey()
160 pagedView.snapToPage(pageIndex + 1); in onKey()
219 int pageIndex = workspace.getNextPage(); in handleHotseatButtonKeyEvent() local
225 final CellLayout iconLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleHotseatButtonKeyEvent()
268 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleHotseatButtonKeyEvent()
274 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1); in handleHotseatButtonKeyEvent()
278 workspace.snapToPage(pageIndex + 1); in handleHotseatButtonKeyEvent()
281 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
285 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
288 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1); in handleHotseatButtonKeyEvent()
292 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
297 workspace.snapToPage(pageIndex - 1); in handleHotseatButtonKeyEvent()
299 CellLayout prevPage = (CellLayout) workspace.getPageAt(pageIndex - 1); in handleHotseatButtonKeyEvent()
303 workspace.getPageAt(pageIndex - 1).requestFocus(); in handleHotseatButtonKeyEvent()
309 workspace.snapToPage(pageIndex + 1); in handleHotseatButtonKeyEvent()
311 CellLayout nextPage = (CellLayout) workspace.getPageAt(pageIndex + 1); in handleHotseatButtonKeyEvent()
315 workspace.getPageAt(pageIndex + 1).requestFocus(); in handleHotseatButtonKeyEvent()
361 final int pageIndex = workspace.indexOfChild(iconLayout); in handleIconKeyEvent() local
391 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleIconKeyEvent()
395 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleIconKeyEvent()
404 int newPageIndex = pageIndex - 1; in handleIconKeyEvent()
406 newPageIndex = pageIndex + 1; in handleIconKeyEvent()
417 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
420 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
428 workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1); in handleIconKeyEvent()
433 workspace.snapToPage(pageIndex - 1); in handleIconKeyEvent()
437 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent()
440 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, isRtl); in handleIconKeyEvent()
444 newPageIndex = pageIndex + 1; in handleIconKeyEvent()
446 newPageIndex = pageIndex - 1; in handleIconKeyEvent()
456 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
459 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
555 int pageIndex, boolean isRtl) { in handlePreviousPageLastItem() argument
556 if (pageIndex - 1 < 0) { in handlePreviousPageLastItem()
559 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1); in handlePreviousPageLastItem()
564 workspace.snapToPage(pageIndex - 1); in handlePreviousPageLastItem()
570 int pageIndex, boolean isRtl) { in handleNextPageFirstItem() argument
571 if (pageIndex + 1 >= workspace.getPageCount()) { in handleNextPageFirstItem()
574 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex + 1); in handleNextPageFirstItem()
579 workspace.snapToPage(pageIndex + 1); in handleNextPageFirstItem()