Lines Matching refs:screen

462      * @return The open folder on the current screen, or null if there is none
483 * Adds the specified child in the specified screen. The position and dimension of
487 * @param screen The screen in which to add the child.
488 * @param x The X position of the child in the screen's grid.
489 * @param y The Y position of the child in the screen's grid.
493 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) {
494 addInScreen(child, container, screen, x, y, spanX, spanY, false);
498 * Adds the specified child in the specified screen. The position and dimension of
502 * @param screen The screen in which to add the child.
503 * @param x The X position of the child in the screen's grid.
504 * @param y The Y position of the child in the screen's grid.
509 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY,
512 if (screen < 0 || screen >= getChildCount()) {
513 Log.e(TAG, "The screen must be >= 0 and < " + getChildCount()
514 + " (was " + screen + "); skipping child");
529 if (screen < 0) {
530 screen = mLauncher.getHotseat().getOrderInHotseat(x, y);
534 x = mLauncher.getHotseat().getCellXFromOrder(screen);
535 y = mLauncher.getHotseat().getCellYFromOrder(screen);
543 layout = (CellLayout) getChildAt(screen);
563 // Get the canonical child id to uniquely represent this view in this screen
564 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY);
735 // we're snapping to a particular screen
738 // this is when user is actively dragging a particular screen, they might
739 // swipe it either left or right (but we won't advance by more than one screen)
744 // Only show page outlines as we pan if we are on large screen
779 // If we are not mid-dragging, hide the page outlines if we are on a large screen
807 // As a ratio of screen height, the total distance we want the parallax effect to span
812 // At an aspect ratio of 16/10, the wallpaper parallax effect should span 1.5 * screen width
813 // At an aspect ratio of 10/16, the wallpaper parallax effect should span 1.2 * screen width
1900 // The drag bitmap follows the touch point around on the screen
1947 void addApplicationShortcut(ShortcutInfo info, CellLayout target, long container, int screen,
1953 addInScreen(view, container, screen, cellXY[0], cellXY[1], 1, 1, insertAtFirst);
1954 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen, cellXY[0],
1969 // Don't accept the drop if we're not over a screen at time of drop
2109 final int screen = (targetCell == null) ? mDragInfo.screen : indexOfChild(target);
2127 mLauncher.addFolder(target, container, screen, targetCell[0], targetCell[1]);
2202 int screen = (mTargetCell[0] < 0) ?
2203 mDragInfo.screen : indexOfChild(dropTargetLayout);
2254 if (mCurrentPage != screen && !hasMovedIntoHotseat) {
2255 snapScreen = screen;
2256 snapToPage(screen);
2264 addInScreen(cell, container, screen, mTargetCell[0], mTargetCell[1],
2275 cell.setId(LauncherModel.getCellLayoutChildId(container, mDragInfo.screen,
2306 LauncherModel.moveItemInDatabase(mLauncher, info, container, screen, lp.cellX,
2353 public void setFinalScrollForPageChange(int screen) {
2354 if (screen >= 0) {
2356 CellLayout cl = (CellLayout) getChildAt(screen);
2359 final int newX = getChildOffset(screen) - getRelativeChildOffset(screen);
2366 public void resetFinalScrollForPageChange(int screen) {
2367 if (screen >= 0) {
2368 CellLayout cl = (CellLayout) getChildAt(screen);
2695 // Get the center of the cell layout in screen coordinates
3031 final int screen = indexOfChild(cellLayout);
3032 if (!mLauncher.isHotseatLayout(cellLayout) && screen != mCurrentPage
3034 snapToPage(screen);
3085 container, screen, mTargetCell, span, null);
3089 container, screen, mTargetCell, null);
3161 addInScreen(view, container, screen, mTargetCell[0], mTargetCell[1], info.spanX,
3168 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen,
3207 // location and size on the home screen.
3328 * screen while a scroll is in progress.
3384 cellLayout = (CellLayout) getChildAt(mDragInfo.screen);
3401 int screen = indexOfChild(cl);
3405 screen = -1;
3415 LauncherModel.modifyItemInDatabase(mLauncher, info, container, screen, info.cellX,
3568 for (int screen = 0; screen < screenCount; screen++) {
3569 layouts.add(((CellLayout) getChildAt(screen)));
3586 for (int screen = 0; screen < screenCount; screen++) {
3587 childrenLayouts.add(((CellLayout) getChildAt(screen)).getShortcutsAndWidgets());
3710 // Avoid ANRs by treating each screen separately