/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 590 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout() 697 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 702 result[1] = vStartPadding + cellY * mCellHeight; in cellToPoint() 713 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument 714 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint() 725 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 729 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 2; in regionToCenterPoint() 739 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 743 final int top = vStartPadding + cellY * mCellHeight; in regionToRect() 869 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | ItemInfo.java | 74 public int cellY = -1; field in ItemInfo 124 cellY = info.cellY; in copyFrom() 154 .put(LauncherSettings.Favorites.CELLY, cellY) in writeToValues() 165 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); in readFromValues() 194 + " cell(" + cellX + "," + cellY + ")" in dumpProperties()
|
D | WorkspaceLayoutManager.java | 41 int y = info.cellY; in addInScreenFromBind() 55 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 108 lp.cellY = y; in addInScreen() 126 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
|
D | AppWidgetResizeFrame.java | 292 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local 305 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded() 308 cellY = mTempRange2.start; in resizeWidgetIfNeeded() 326 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 334 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
|
D | Workspace.java | 1630 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willCreateUserFolder() 1663 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willAddToExistingUserFolder() 1686 mDragInfo.cellY == targetCell[1]) && (cellParent == target); in createUserFolderIfNecessary() 1711 destInfo.cellY = -1; in createUserFolderIfNecessary() 1713 sourceInfo.cellY = -1; in createUserFolderIfNecessary() 1825 && item.cellX == mTargetCell[0] && item.cellY == mTargetCell[1]; in onDrop() 1877 lp.cellY = lp.tmpCellY = mTargetCell[1]; in onDrop() 1903 lp.cellX, lp.cellY, item.spanX, item.spanY); in onDrop() 1912 mTargetCell[1] = lp.cellY; in onDrop() 2360 final int cellY; [all …]
|
D | Launcher.java | 645 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd() 815 v = layout.getChildAt(pendingArgs.cellX, pendingArgs.cellY); in onRequestPermissionsResult() 1173 int cellY, PendingRequestArgs args) { in completeAddShortcut() argument 1209 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1211 cellXY[1] = cellY; in completeAddShortcut() 1274 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget() 1626 info.cellY = cell[1]; in addPendingItem() 1696 int cellY) { in addFolder() argument 1701 getModelWriter().addItemToDatabase(folderInfo, container, screenId, cellX, cellY); in addFolder() 2083 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()
|
D | FocusHelper.java | 133 int row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in onKey() 380 int row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in handleIconKeyEvent() 420 row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in handleIconKeyEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 86 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 89 item.cellY = cellY; in updateItemInfoProps() 94 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; in updateItemInfoProps() 105 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 108 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 111 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 | 175 entry.cellY = 0; 384 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 387 if (item.cellY >= row) item.cellY --; 390 if (item.cellY > row) item.cellY --; 467 int myY = me.cellY; 489 me.cellY = y; 536 me.cellY = myY; 555 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY 573 me.cellY = newY; 583 me.cellY = myY; [all …]
|
D | LoaderCursor.java | 375 info.cellY = getInt(cellYIndex); in applyCommonProperties() 411 + item.cellY + ") already occupied"); in checkItemPlacement() 431 item.cellX < 0 || item.cellY < 0 || in checkItemPlacement() 432 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement() 435 + item.cellX + "," + item.cellY in checkItemPlacement() 452 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement()
|
/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/accessibility/ |
D | LauncherAccessibilityDelegate.java | 273 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 274 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 284 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 285 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 303 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 304 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 314 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 315 lp.cellY --; in performResizeAction() 316 info.cellY --; in performResizeAction()
|
D | DragAndDropAccessibilityDelegate.java | 132 int cellY = id / mView.getCountX(); in getItemBounds() local 134 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 318 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) { in delegateDrawing() argument 325 delegateCellY = cellY; in delegateDrawing() 388 public void animateToAccept(CellLayout cl, int cellX, int cellY) { in animateToAccept() argument 390 () -> delegateDrawing(cl, cellX, cellY), null); in animateToAccept() 399 int cellY = delegateCellY; in animateToRest() local 400 animateScale(1f, 1f, () -> delegateDrawing(cl, cellX, cellY), this::clearDrawingDelegate); in animateToRest()
|
D | Folder.java | 571 ItemType.FOLDER_ICON, mInfo.cellX, mInfo.cellY); in animateOpen() 1080 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem() 1197 si, mInfo.id, 0, si.cellX, si.cellY); in onDrop() 1270 item.cellY); in onAdd() 1367 target.gridY = info.cellY; in fillInLogContainerData() 1428 } else if (lhs.cellY != rhs.cellY) { 1429 return lhs.cellY - rhs.cellY; 1545 folder_target.gridY = mInfo.cellY; in logEditFolderLabel()
|
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 | 209 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView() 212 lp.cellY = item.cellY; in createNewView()
|
/packages/apps/Launcher3/ |
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 | 66 entry.cellY++; in loadWorkspaceEntries() 80 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/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 200 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument 204 info.cellY = cellY; in newItemInfo()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | StaggeredWorkspaceAnim.java | 107 addStaggeredAnimationForView(child, lp.cellY + lp.cellVSpan, totalRows); in StaggeredWorkspaceAnim() 116 addStaggeredAnimationForView(child, lp.cellY + 1, totalRows); in StaggeredWorkspaceAnim()
|