/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 706 result[0] = hStartPadding + cellX * mCellWidth; 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 733 result[0] = hStartPadding + cellX * mCellWidth + (spanX * mCellWidth) / 2; in regionToCenterPoint() 744 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 747 final int left = hStartPadding + cellX * mCellWidth; in regionToRect() 858 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | WorkspaceLayoutManager.java | 41 int x = info.cellX; in addInScreenFromBind() 57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 110 lp.cellX = x; in addInScreen() 129 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
|
D | AppWidgetResizeFrame.java | 297 int cellX = lp.useTmpCoords ? lp.tmpCellX : lp.cellX; in resizeWidgetIfNeeded() local 302 mTempRange1.set(cellX, spanX + cellX); in resizeWidgetIfNeeded() 305 cellX = mTempRange2.start; in resizeWidgetIfNeeded() 332 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 339 lp.tmpCellX = cellX; in resizeWidgetIfNeeded()
|
D | DropTarget.java | 123 return dragInfo.cellX != originalDragInfo.cellX 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() 1188 private void completeAddShortcut(Intent data, int container, int screenId, int cellX, in completeAddShortcut() argument 1225 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1226 cellXY[0] = cellX; in completeAddShortcut() 1290 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget() 1639 info.cellX = cell[0]; in addPendingItem() 1713 public FolderIcon addFolder(CellLayout layout, int container, final int screenId, int cellX, 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 | 69 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && 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 87 item.cellX = cellX; 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() 127 modelItem.cellX == item.cellX && in checkItemInfoLocked() 155 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument 156 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase() 160 .put(Favorites.CELLX, item.cellX) in moveItemInDatabase() [all …]
|
D | GridSizeMigrationTask.java | 179 entry.cellX = newScreenId; 388 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 391 if (item.cellX >= col) item.cellX--; 394 if (item.cellX > col) item.cellX--; 471 int myX = me.cellX; 490 me.cellX = x; 540 me.cellX = myX; 560 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY 574 me.cellX = newX; 587 me.cellX = myX; [all …]
|
D | LoaderCursor.java | 377 info.cellX = getInt(cellXIndex); in applyCommonProperties() 413 + " into position (" + item.screenId + ":" + item.cellX + "," 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() 461 + item.cellX + "," + item.cellX + "," + item.spanX + "," + item.spanY in checkItemPlacement()
|
D | GridSizeMigrationTaskV2.java | 420 entry.cellX = x; in findPlacement() 464 entry.cellX = i; in find() 611 entry.cellX = c.getInt(indexCellX); in loadWorkspaceEntries() 741 return Integer.compare(cellX, another.cellX); in compareTo() 759 values.put(LauncherSettings.Favorites.CELLX, cellX); in updateContentValues()
|
D | ModelUtils.java | 93 + lhs.cellX); in sortWorkspaceItemsSpatially() 95 + rhs.cellX); in sortWorkspaceItemsSpatially()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | CellAndSpan.java | 11 public int cellX = -1; field in CellAndSpan 32 cellX = copy.cellX; in copyFrom() 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument 39 this.cellX = cellX; 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() 79 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { 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 | 178 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrix() 220 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithHotseat() 229 hotseatParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrixWithHotseat() 267 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithPivotColumn()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 101 public int cellX = -1; field in ItemInfo 161 cellX = info.cellX; in copyFrom() 187 .put(LauncherSettings.Favorites.CELLX, cellX) in writeToValues() 198 cellX = values.getAsInteger(LauncherSettings.Favorites.CELLX); 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() 361 .setGridX(cellX) 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() 336 lp.cellX --; in performResizeAction() 337 info.cellX --; in performResizeAction() 345 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
|
D | DragAndDropAccessibilityDelegate.java | 138 int cellX = 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 343 mDelegateCellX = cellX; in delegateDrawing() 407 public void animateToAccept(CellLayout cl, int cellX, int cellY) { in animateToAccept() argument 409 () -> delegateDrawing(cl, cellX, cellY), null); in animateToAccept() 417 int cellX = mDelegateCellX; 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() 1357 mLauncher.getModelWriter().addOrMoveItemInDatabase(item, mInfo.id, 0, item.cellX, in onAdd() 1483 child.gridX = childInfo.cellX; in fillInLogContainerData() 1489 target.gridX = mInfo.cellX; in fillInLogContainerData() 1560 return lhs.cellX - rhs.cellX;
|
D | FolderGridOrganizer.java | 134 if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) { in updateRankAndPos() 136 item.cellX = pos.x; in updateRankAndPos()
|
D | FolderPagedView.java | 214 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView() 216 lp.cellX = item.cellX; in createNewView()
|
/packages/apps/Launcher3/tools/ |
D | print_db.py | 114 cellX = cell["cellX"] 263 cellX = row["cellX"] 268 for k in range(cellX, cellX+spanX): 270 screen[cellY][cellX] = row
|
/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 215 info.cellX = cellX; in newItemInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LossyScreenMigrationTask.java | 79 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()
|
D | ImportDataTask.java | 168 int cellX = c.getInt(cellXIndex); in importWorkspaceItems() local 192 mMaxGridSizeX = Math.max(mMaxGridSizeX, cellX + spanX); in importWorkspaceItems() 259 values.put(Favorites.CELLX, cellX); in importWorkspaceItems()
|