/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 595 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout() 702 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 707 result[1] = vStartPadding + cellY * mCellHeight; in cellToPoint() 718 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument 719 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint() 730 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 734 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 2; in regionToCenterPoint() 744 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 748 final int top = vStartPadding + cellY * mCellHeight; in regionToRect() 858 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | WorkspaceLayoutManager.java | 42 int y = info.cellY; in addInScreenFromBind() 57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 111 lp.cellY = y; in addInScreen() 129 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
|
D | AppWidgetResizeFrame.java | 298 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local 311 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded() 314 cellY = mTempRange2.start; in resizeWidgetIfNeeded() 332 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 340 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
|
D | DropTarget.java | 124 || dragInfo.cellY != originalDragInfo.cellY in isMoved()
|
D | Launcher.java | 649 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd() 811 v = layout.getChildAt(pendingArgs.cellX, pendingArgs.cellY); in onRequestPermissionsResult() 1189 int cellY, PendingRequestArgs args) { in completeAddShortcut() argument 1225 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1227 cellXY[1] = cellY; in completeAddShortcut() 1290 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget() 1640 info.cellY = cell[1]; in addPendingItem() 1714 int cellY) { in addFolder() argument 1718 getModelWriter().addItemToDatabase(folderInfo, container, screenId, cellX, cellY); in addFolder() 2122 if (cl != null && cl.isOccupied(item.cellX, item.cellY)) { in bindItems() [all …]
|
D | ShortcutAndWidgetContainer.java | 70 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 85 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 88 item.cellY = cellY; in updateItemInfoProps() 93 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; in updateItemInfoProps() 104 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 107 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 110 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 128 modelItem.cellY == item.cellY && in checkItemInfoLocked() 155 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument 156 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase() 161 .put(Favorites.CELLY, item.cellY) in moveItemInDatabase() [all …]
|
D | GridSizeMigrationTask.java | 180 entry.cellY = 0; 389 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 392 if (item.cellY >= row) item.cellY--; 395 if (item.cellY > row) item.cellY--; 472 int myY = me.cellY; 494 me.cellY = y; 541 me.cellY = myY; 560 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY 578 me.cellY = newY; 588 me.cellY = myY; [all …]
|
D | LoaderCursor.java | 378 info.cellY = getInt(cellYIndex); in applyCommonProperties() 414 + item.cellY + ") already occupied"); in checkItemPlacement() 434 item.cellX < 0 || item.cellY < 0 || in checkItemPlacement() 435 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement() 438 + item.cellX + "," + item.cellY in checkItemPlacement() 455 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement()
|
D | GridSizeMigrationTaskV2.java | 421 entry.cellY = y; in findPlacement() 465 entry.cellY = 0; in find() 612 entry.cellY = c.getInt(indexCellY); in loadWorkspaceEntries() 738 if (cellY != another.cellY) { in compareTo() 739 return -Integer.compare(cellY, another.cellY); in compareTo() 760 values.put(LauncherSettings.Favorites.CELLY, cellY); in updateContentValues()
|
D | ModelUtils.java | 92 int lr = (lhs.screenId * screenCellCount + lhs.cellY * screenCols in sortWorkspaceItemsSpatially() 94 int rr = (rhs.screenId * screenCellCount + +rhs.cellY * screenCols in sortWorkspaceItemsSpatially()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CellAndSpan.java | 16 public int cellY = -1; field in CellAndSpan 33 cellY = copy.cellY; in copyFrom() 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument 40 this.cellY = cellY; in CellAndSpan() 46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")"; in toString()
|
D | GridOccupancy.java | 77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument 78 if (cellX < 0 || cellY < 0) return; in markCells() 80 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { in markCells() 91 markCells(cell.cellX, cell.cellY, cell.spanX, cell.spanY, value); in markCells() 95 markCells(item.cellX, item.cellY, item.spanX, item.spanY, value); in markCells()
|
D | FocusLogic.java | 179 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix() 221 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat() 233 hotseatParent.getChildAt(i).getLayoutParams()).cellY; in createSparseMatrixWithHotseat() 268 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithPivotColumn() 538 final int newRow = ((CellLayout.LayoutParams) oldView.getLayoutParams()).cellY;
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 106 public int cellY = -1; field in ItemInfo 162 cellY = info.cellY; in copyFrom() 188 .put(LauncherSettings.Favorites.CELLY, cellY) in writeToValues() 199 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); in readFromValues() 229 + " cell(" + cellX + "," + cellY + ")" in dumpProperties() 317 folderBuilder.setGridX(cellX).setGridY(cellY).setPageIndex(screenId); in buildProto() 328 .setGridX(fInfo.cellX).setGridY(fInfo.cellY)); in buildProto() 362 .setGridY(cellY) in getContainerInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 304 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 305 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 315 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 316 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 334 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 335 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 345 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 346 lp.cellY --; in performResizeAction() 347 info.cellY --; in performResizeAction()
|
D | DragAndDropAccessibilityDelegate.java | 139 int cellY = id / mView.getCountX(); in getItemBounds() local 141 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 337 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) { in delegateDrawing() argument 344 mDelegateCellY = cellY; in delegateDrawing() 407 public void animateToAccept(CellLayout cl, int cellX, int cellY) { in animateToAccept() argument 409 () -> delegateDrawing(cl, cellX, cellY), null); in animateToAccept() 418 int cellY = mDelegateCellY; in animateToRest() local 419 animateScale(1f, 1f, () -> delegateDrawing(cl, cellX, cellY), this::clearDrawingDelegate); in animateToRest()
|
D | Folder.java | 626 LauncherLogProto.ItemType.FOLDER_ICON, mInfo.cellX, mInfo.cellY); in animateOpen() 1163 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem() 1283 si, mInfo.id, 0, si.cellX, si.cellY); in onDrop() 1358 item.cellY); in onAdd() 1484 child.gridY = childInfo.cellY; in fillInLogContainerData() 1490 target.gridY = mInfo.cellY; in fillInLogContainerData() 1557 } else if (lhs.cellY != rhs.cellY) { 1558 return lhs.cellY - rhs.cellY;
|
D | FolderGridOrganizer.java | 134 if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) { in updateRankAndPos() 137 item.cellY = pos.y; in updateRankAndPos()
|
D | FolderPagedView.java | 214 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView() 217 lp.cellY = item.cellY; in createNewView()
|
/packages/apps/Launcher3/tools/ |
D | print_db.py | 115 cellY = cell["cellY"] 264 cellY = row["cellY"] 267 for j in range(cellY, cellY+spanY): 270 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LossyScreenMigrationTask.java | 65 entry.cellY++; in loadWorkspaceEntries() 79 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()
|
D | ImportDataTask.java | 169 int cellY = c.getInt(cellYIndex); in importWorkspaceItems() local 187 cellY++; in importWorkspaceItems() 193 mMaxGridSizeY = Math.max(mMaxGridSizeY, cellY + spanY); in importWorkspaceItems() 260 values.put(Favorites.CELLY, cellY); in importWorkspaceItems()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 212 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument 216 info.cellY = cellY; in newItemInfo()
|