/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | CellAndSpan.java | 16 public int cellY = -1; field in class:CellAndSpan 33 cellY = copy.cellY; 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { argument 40 this.cellY = cellY; 46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")";
|
H A D | GridOccupancy.java | 77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { argument 78 if (cellX < 0 || cellY < 0) return; 80 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { 91 markCells(cell.cellX, cell.cellY, cell.spanX, cell.spanY, value); 95 markCells(item.cellX, item.cellY, item.spanX, item.spanY, value);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | ItemInfo.java | 76 int cellY = -1; field in class:ItemInfo 127 cellY = info.cellY; 172 values.put(LauncherSettings.Favorites.CELLY, cellY); 180 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { argument 182 values.put(LauncherSettings.Favorites.CELLY, cellY); 220 + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX
|
H A D | PagedViewCellLayout.java | 108 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) { 399 public int cellY; field in class:PagedViewCellLayout.LayoutParams 449 this.cellY = source.cellY; 454 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { argument 457 this.cellY = cellY; 468 final int myCellY = cellY; 493 return "(" + this.cellX + ", " + this.cellY [all...] |
H A D | CellLayout.java | 636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { 740 cellInfo.cellY = lp.cellY; 757 cellInfo.cellY = cellXY[1]; 790 cellInfo.cellY = -1; 836 * @param cellY Y coordinate of the cell 840 void cellToPoint(int cellX, int cellY, int[] result) { argument 845 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); 852 * @param cellY 856 cellToCenterPoint(int cellX, int cellY, int[] result) argument 868 regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) argument 884 regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) argument 1095 animateChildToPosition(final View child, int cellX, int cellY, int duration, int delay, boolean permanent, boolean adjustOccupied) argument 1209 visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX, int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) argument 1518 findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, boolean[][] occupied, boolean blockOccupied[][], int[] result) argument 2076 rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, View ignoreView, ItemConfiguration solution) argument 2505 getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, View dragView, Rect boundingRect, ArrayList<View> intersectingViews) argument 2553 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument 2964 cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) argument 3112 markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied, boolean value) argument 3177 public int cellY; field in class:CellLayout.LayoutParams 3247 LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) argument 3322 int cellY = -1; field in class:CellLayout.CellInfo [all...] |
H A D | Folder.java | 227 mEmptyCell[1] = item.cellY; 325 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; 326 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; 349 item.cellY = y; 514 item.cellY = emptyCell[1]; 537 if (mContent.getChildAt(item.cellX, item.cellY) != null || item.cellX < 0 || item.cellY < 0 538 || item.cellX >= mContent.getCountX() || item.cellY >= mContent.getCountY()) { 547 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); 743 info.cellX, info.cellY); [all...] |
H A D | LauncherModel.java | 267 * <container, screen, cellX, cellY> 270 int screen, int cellX, int cellY) { 273 addItemToDatabase(context, item, container, screen, cellX, cellY, false); 276 moveItemInDatabase(context, item, container, screen, cellX, cellY); 295 modelShortcut.cellY == shortcut.cellY && 420 * Move an item in the DB to a new <container, screen, cellX, cellY> 423 final int screen, final int cellX, final int cellY) { 425 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY + 426 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY 269 addOrMoveItemInDatabase(Context context, ItemInfo item, long container, int screen, int cellX, int cellY) argument 422 moveItemInDatabase(Context context, final ItemInfo item, final long container, final int screen, final int cellX, final int cellY) argument 454 modifyItemInDatabase(Context context, final ItemInfo item, final long container, final int screen, final int cellX, final int cellY, final int spanX, final int spanY) argument 609 addItemToDatabase(Context context, final ItemInfo item, final long container, final int screen, final int cellX, final int cellY, final boolean notify) argument 2355 addShortcut(Context context, Intent data, long container, int screen, int cellX, int cellY, boolean notify) argument [all...] |
H A D | AppWidgetResizeFrame.java | 259 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; 281 cellYInc = Math.max(-cellY, vSpanInc); 284 vSpanInc = Math.min(cellY, vSpanInc); 288 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); 306 cellY += cellYInc; 324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, 327 lp.tmpCellY = cellY;
|
H A D | InstallShortcutReceiver.java | 343 int cellX, cellY, spanX, spanY; 349 cellY = item.cellY; 353 for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) {
|
H A D | ShortcutAndWidgetContainer.java | 67 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | ModelWriter.java | 75 ItemInfo item, long container, long screenId, int cellX, int cellY) { 78 item.cellY = cellY; 83 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; 91 * <container, screen, cellX, cellY> 94 long container, long screenId, int cellX, int cellY) { 97 addItemToDatabase(item, container, screenId, cellX, cellY); 100 moveItemInDatabase(item, container, screenId, cellX, cellY); 118 modelShortcut.cellY == shortcut.cellY 74 updateItemInfoProps( ItemInfo item, long container, long screenId, int cellX, int cellY) argument 93 addOrMoveItemInDatabase(ItemInfo item, long container, long screenId, int cellX, int cellY) argument 144 moveItemInDatabase(final ItemInfo item, long container, long screenId, int cellX, int cellY) argument 185 modifyItemInDatabase(final ItemInfo item, long container, long screenId, int cellX, int cellY, int spanX, int spanY) argument 216 addItemToDatabase(final ItemInfo item, long container, long screenId, int cellX, int cellY) argument [all...] |
H A D | GridSizeMigrationTask.java | 168 entry.cellY = 0; 385 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 388 if (item.cellY >= row) item.cellY --; 391 if (item.cellY > row) item.cellY --; 467 int myY = me.cellY; 489 me.cellY = y; 536 me.cellY [all...] |
H A D | LoaderCursor.java | 362 * {@link ItemInfo#cellY} 369 info.cellY = getInt(cellYIndex); 395 + item.cellY + ") occupied by all apps"); 414 + item.cellY + ") already occupied"); 439 item.cellX < 0 || item.cellY < 0 || 440 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { 443 + item.cellX + "," + item.cellY 460 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) {
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | CellLayout.java | 576 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { 679 * @param cellY Y coordinate of the cell 683 void cellToPoint(int cellX, int cellY, int[] result) { argument 688 result[1] = vStartPadding + cellY * mCellHeight; 695 * @param cellY Y coordinate of the cell 699 void cellToCenterPoint(int cellX, int cellY, int[] result) { argument 700 regionToCenterPoint(cellX, cellY, 1, 1, result); 707 * @param cellY Y coordinate of the cell 711 void regionToCenterPoint(int cellX, int cellY, in argument 725 regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) argument 837 animateChildToPosition(final View child, int cellX, int cellY, int duration, int delay, boolean permanent, boolean adjustOccupied) argument 918 visualizeDropLocation(View v, DragPreviewProvider outlineProvider, int cellX, int cellY, int spanX, int spanY, boolean resize, DropTarget.DragObject dragObject) argument 995 getItemMoveDescription(int cellX, int cellY) argument 1200 findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, boolean[][] occupied, boolean blockOccupied[][], int[] result) argument 1695 rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, View ignoreView, ItemConfiguration solution) argument 2156 getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, View dragView, Rect boundingRect, ArrayList<View> intersectingViews) argument 2205 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument 2484 cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) argument 2553 public int cellY; field in class:CellLayout.LayoutParams 2623 LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) argument [all...] |
H A D | ItemInfo.java | 72 public int cellY = -1; field in class:ItemInfo 124 cellY = info.cellY; 153 .put(LauncherSettings.Favorites.CELLY, cellY) 164 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); 193 + " cell(" + cellX + "," + cellY + ")"
|
H A D | AppWidgetResizeFrame.java | 266 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; 279 mTempRange1.set(cellY, spanY + cellY); 282 cellY = mTempRange2.start; 300 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, 308 lp.tmpCellY = cellY;
|
H A D | ShortcutAndWidgetContainer.java | 69 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
H A D | LossyScreenMigrationTask.java | 74 entry.cellY++; 88 if (org.cellX != update.cellX || org.cellY != update.cellY
|
/packages/apps/Launcher2/ |
H A D | print_db.py | 82 cellY = cell["cellY"] 201 cellY = row["cellY"] variable 204 for j in range(cellY, cellY+spanY): 207 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/ |
H A D | print_db.py | 115 cellY = cell["cellY"] 264 cellY = row["cellY"] variable 267 for j in range(cellY, cellY+spanY): 270 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
H A D | LauncherAccessibilityDelegate.java | 255 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || 256 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { 266 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || 267 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { 285 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) 286 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { 296 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { 297 lp.cellY --; 298 info.cellY --;
|
H A D | DragAndDropAccessibilityDelegate.java | 131 int cellY = id / mView.getCountX(); 133 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect);
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | FolderPagedView.java | 223 item.cellY = pagePos / mGridCountX; 227 lp.cellY = item.cellY; 243 item.cellX, item.cellY, item.spanX, item.spanY)); 343 if (info.cellX != newX || info.cellY != newY || info.rank != rank) { 345 info.cellY = newY; 349 mFolder.mInfo.id, 0, info.cellX, info.cellY); 353 lp.cellY = info.cellY;
|
H A D | PreviewBackground.java | 330 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) { argument 337 delegateCellY = cellY; 400 public void animateToAccept(final CellLayout cl, final int cellX, final int cellY) { argument 404 delegateDrawing(cl, cellX, cellY); 416 final int cellY = delegateCellY; 421 delegateDrawing(cl, cellX, cellY);
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
H A D | LoaderCursorTest.java | 227 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, argument 231 info.cellY = cellY;
|