Home | History | Annotate | Download | only in launcher3

Lines Matching refs:workspace

32  * A keyboard listener we set on all the workspace icons.
59 // Handle the key event just like a workspace icon would in these cases. In this case,
199 * Handles key events in the workspace hotseat (bottom of the screen).
220 final Workspace workspace = (Workspace) v.getRootView().findViewById(R.id.workspace);
225 int pageIndex = workspace.getNextPage();
226 int pageCount = workspace.getChildCount();
231 final CellLayout iconLayout = (CellLayout) workspace.getChildAt(pageIndex);
233 // This check is to guard against cases where key strokes rushes in when workspace
270 parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
274 workspace.snapToPage(pageIndex + 1);
277 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
281 workspace.snapToPage(pageIndex - 1);
284 parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
288 workspace.snapToPage(pageIndex - 1);
293 workspace.snapToPage(pageIndex - 1);
298 workspace.snapToPage(pageIndex + 1);
317 * Handles key events in a workspace containing icons.
329 Log.v(TAG, String.format("Handle WORKSPACE ICONS keyevent=[%s] isVerticalBar=%s",
336 final Workspace workspace = (Workspace) iconLayout.getParent();
337 final ViewGroup dragLayer = (ViewGroup) workspace.getParent();
343 final int pageIndex = workspace.indexOfChild(iconLayout);
344 final int pageCount = workspace.getChildCount();
367 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex);
381 parent = getCellLayoutChildrenForIndex(workspace, newPageIndex);
389 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex,
392 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex,
400 workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1);
403 // Check the hotseat if no focusable item was found on the workspace.
405 workspace.snapToPage(pageIndex - 1);
409 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex, isRtl);
412 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex, isRtl);
421 parent = getCellLayoutChildrenForIndex(workspace, newPageIndex);
428 newIcon = handleNextPageFirstItem(workspace, hotseatLayout, pageIndex,
431 newIcon = handlePreviousPageLastItem(workspace, hotseatLayout, pageIndex,
441 // Check the hotseat if no focusable item was found on the workspace.
448 // Check the hotseat if no focusable item was found on the workspace.
508 private static View handlePreviousPageLastItem(Workspace workspace, CellLayout hotseatLayout,
513 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex - 1);
516 // Check the hotseat if no focusable item was found on the workspace.
518 workspace.snapToPage(pageIndex - 1);
523 private static View handleNextPageFirstItem(Workspace workspace, CellLayout hotseatLayout,
525 if (pageIndex + 1 >= workspace.getPageCount()) {
528 CellLayout workspaceLayout = (CellLayout) workspace.getChildAt(pageIndex + 1);
531 // Check the hotseat if no focusable item was found on the workspace.
533 workspace.snapToPage(pageIndex + 1);