Lines Matching refs:workspace
214 final Workspace workspace = (Workspace) v.getRootView().findViewById(R.id.workspace); in handleHotseatButtonKeyEvent() local
219 int pageIndex = workspace.getNextPage(); in handleHotseatButtonKeyEvent()
220 int pageCount = workspace.getChildCount(); in handleHotseatButtonKeyEvent()
225 final CellLayout iconLayout = (CellLayout) workspace.getChildAt(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()
354 final Workspace workspace = (Workspace) iconLayout.getParent(); in handleIconKeyEvent() local
355 final ViewGroup dragLayer = (ViewGroup) workspace.getParent(); in handleIconKeyEvent()
361 final int pageIndex = workspace.indexOfChild(iconLayout); in handleIconKeyEvent()
362 final int pageCount = workspace.getChildCount(); in handleIconKeyEvent()
395 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleIconKeyEvent()
409 parent = getCellLayoutChildrenForIndex(workspace, newPageIndex); 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()
449 parent = getCellLayoutChildrenForIndex(workspace, newPageIndex); in handleIconKeyEvent()
456 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
459 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, in handleIconKeyEvent()
554 private static View handlePreviousPageLastItem(Workspace workspace, CellLayout hotseatLayout, in handlePreviousPageLastItem() argument
559 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1); in handlePreviousPageLastItem()
564 workspace.snapToPage(pageIndex - 1); in handlePreviousPageLastItem()
569 private static View handleNextPageFirstItem(Workspace workspace, CellLayout hotseatLayout, 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()