Lines Matching defs:screen

461      * @return The open folder on the current screen, or null if there is none
482 * Adds the specified child in the specified screen. The position and dimension of
486 * @param screen The screen in which to add the child.
487 * @param x The X position of the child in the screen's grid.
488 * @param y The Y position of the child in the screen's grid.
492 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) {
493 addInScreen(child, container, screen, x, y, spanX, spanY, false);
497 * Adds the specified child in the specified screen. The position and dimension of
501 * @param screen The screen in which to add the child.
502 * @param x The X position of the child in the screen's grid.
503 * @param y The Y position of the child in the screen's grid.
508 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY,
511 if (screen < 0 || screen >= getChildCount()) {
512 Log.e(TAG, "The screen must be >= 0 and < " + getChildCount()
513 + " (was " + screen + "); skipping child");
528 if (screen < 0) {
529 screen = mLauncher.getHotseat().getOrderInHotseat(x, y);
533 x = mLauncher.getHotseat().getCellXFromOrder(screen);
534 y = mLauncher.getHotseat().getCellYFromOrder(screen);
542 layout = (CellLayout) getChildAt(screen);
562 // Get the canonical child id to uniquely represent this view in this screen
563 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY);
734 // we're snapping to a particular screen
737 // this is when user is actively dragging a particular screen, they might
738 // swipe it either left or right (but we won't advance by more than one screen)
743 // Only show page outlines as we pan if we are on large screen
778 // If we are not mid-dragging, hide the page outlines if we are on a large screen
806 // As a ratio of screen height, the total distance we want the parallax effect to span
811 // At an aspect ratio of 16/10, the wallpaper parallax effect should span 1.5 * screen width
812 // At an aspect ratio of 10/16, the wallpaper parallax effect should span 1.2 * screen width
1899 // The drag bitmap follows the touch point around on the screen
1946 void addApplicationShortcut(ShortcutInfo info, CellLayout target, long container, int screen,
1952 addInScreen(view, container, screen, cellXY[0], cellXY[1], 1, 1, insertAtFirst);
1953 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen, cellXY[0],
1968 // Don't accept the drop if we're not over a screen at time of drop
2108 final int screen = (targetCell == null) ? mDragInfo.screen : indexOfChild(target);
2126 mLauncher.addFolder(target, container, screen, targetCell[0], targetCell[1]);
2201 int screen = (mTargetCell[0] < 0) ?
2202 mDragInfo.screen : indexOfChild(dropTargetLayout);
2253 if (mCurrentPage != screen && !hasMovedIntoHotseat) {
2254 snapScreen = screen;
2255 snapToPage(screen);
2263 addInScreen(cell, container, screen, mTargetCell[0], mTargetCell[1],
2274 cell.setId(LauncherModel.getCellLayoutChildId(container, mDragInfo.screen,
2305 LauncherModel.moveItemInDatabase(mLauncher, info, container, screen, lp.cellX,
2352 public void setFinalScrollForPageChange(int screen) {
2353 if (screen >= 0) {
2355 CellLayout cl = (CellLayout) getChildAt(screen);
2358 final int newX = getChildOffset(screen) - getRelativeChildOffset(screen);
2365 public void resetFinalScrollForPageChange(int screen) {
2366 if (screen >= 0) {
2367 CellLayout cl = (CellLayout) getChildAt(screen);
2694 // Get the center of the cell layout in screen coordinates
3030 final int screen = indexOfChild(cellLayout);
3031 if (!mLauncher.isHotseatLayout(cellLayout) && screen != mCurrentPage
3033 snapToPage(screen);
3084 container, screen, mTargetCell, span, null);
3088 container, screen, mTargetCell, null);
3160 addInScreen(view, container, screen, mTargetCell[0], mTargetCell[1], info.spanX,
3167 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen,
3206 // location and size on the home screen.
3327 * screen while a scroll is in progress.
3383 cellLayout = (CellLayout) getChildAt(mDragInfo.screen);
3400 int screen = indexOfChild(cl);
3404 screen = -1;
3414 LauncherModel.modifyItemInDatabase(mLauncher, info, container, screen, info.cellX,
3567 for (int screen = 0; screen < screenCount; screen++) {
3568 layouts.add(((CellLayout) getChildAt(screen)));
3585 for (int screen = 0; screen < screenCount; screen++) {
3586 childrenLayouts.add(((CellLayout) getChildAt(screen)).getShortcutsAndWidgets());
3705 // Avoid ANRs by treating each screen separately