/packages/apps/Launcher3/src/com/android/launcher3/celllayout/ |
D | CellPosMapper.java | 43 return new CellPos(info.cellX, info.cellY, info.screenId); in mapModelToPresenter() 77 return new CellPos(info.cellX + mColumnCount, info.cellY, info.screenId - 1); in mapModelToPresenter() 95 public final int cellX; field in CellPosMapper.CellPos 99 public CellPos(int cellX, int cellY, int screenId) { in CellPos() argument 100 this.cellX = cellX; in CellPos() 110 return cellX == cellPos.cellX && cellY == cellPos.cellY && screenId == cellPos.screenId; in equals() 115 return Objects.hash(cellX, cellY, screenId); in hashCode() 121 + "cellX=" + cellX in toString()
|
D | ReorderAlgorithm.java | 116 solution.cellX = result[0]; in findReorderSolutionRecursive() 124 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, in rearrangementExists() argument 127 if (cellX < 0 || cellY < 0) return false; in rearrangementExists() 130 Rect occupiedRect = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists() 136 c.cellX = cellX; in rearrangementExists() 140 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists() 156 r1.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY); in rearrangementExists() 197 int[] tmpLocation = findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction, in addViewToTempLocation() 201 c.cellX = tmpLocation[0]; in addViewToTempLocation() 374 blockOccupied.markCells(c.cellX - left, c.cellY - top, c.spanX, c.spanY, true); in addViewsToTempLocation() [all …]
|
D | ViewCluster.kt | 68 val left = cs.cellX in <lambda>() 69 val right = cs.cellX + cs.spanX in <lambda>() 102 val left = cs.cellX in <lambda>() 103 val right = cs.cellX + cs.spanX in <lambda>() 136 LEFT -> c.cellX -= delta in <lambda>() 137 RIGHT -> c.cellX += delta in <lambda>() 165 LEFT -> r.cellX + r.spanX - (l.cellX + l.spanX) in <lambda>() 166 RIGHT -> l.cellX - r.cellX in <lambda>()
|
D | MulticellReorderAlgorithm.java | 43 solution.map.forEach((view, cell) -> cell.cellX = in removeSeamFromSolution() 44 cell.cellX > mCellLayout.getCountX() / 2 ? cell.cellX - 1 : cell.cellX); in removeSeamFromSolution() 45 solution.cellX = in removeSeamFromSolution() 46 solution.cellX > mCellLayout.getCountX() / 2 ? solution.cellX - 1 : solution.cellX; in removeSeamFromSolution()
|
D | ItemConfiguration.kt | 57 if (i == 0) outRect.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY) in <lambda>() 58 else outRect.union(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY) in <lambda>()
|
D | CellLayoutLayoutParams.java | 103 public CellLayoutLayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in CellLayoutLayoutParams() argument 105 this.mCellX = cellX; in CellLayoutLayoutParams() 183 public void setCellX(int cellX) { in setCellX() argument 184 this.mCellX = cellX; in setCellX()
|
/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()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | Widget.java | 76 public WidgetResizeFrame dragWidgetToWorkspace(int cellX, int cellY, int spanX, int spanY) { in dragWidgetToWorkspace() argument 79 "Dragging widget to workspace cell " + cellX + "," + cellY)) { in dragWidgetToWorkspace() 80 if (cellX == -1 || cellY == -1) { in dragWidgetToWorkspace() 85 false, cellX, cellY, spanX, spanY); in dragWidgetToWorkspace() 104 int cellX, int cellY, int spanX, int spanY) { in dragToWorkspaceCellPosition() argument 110 cellX, cellY, spanX, spanY, in dragToWorkspaceCellPosition()
|
D | WorkspaceDragSource.java | 74 default HomeAppIcon dragToWorkspace(int cellX, int cellY) { in dragToWorkspace() argument 80 String.format("want to drag the icon to cell(%d, %d)", cellX, cellY))) { in dragToWorkspace() argument 81 final Supplier<Point> dest = () -> Workspace.getCellCenter(launcher, cellX, cellY); in dragToWorkspace() 98 "The %s icon should be in the cell (%d, %d).", iconName, cellX, in dragToWorkspace() 100 appIcon.isInCell(cellX, cellY)); in dragToWorkspace()
|
D | Workspace.java | 492 static Point getCellCenter(LauncherInstrumentation launcher, int cellX, int cellY) { 493 return launcher.getTestInfo(WorkspaceCellCenterRequest.builder().setCellX(cellX).setCellY( 497 static Point getCellCenter(LauncherInstrumentation launcher, int cellX, int cellY, int spanX, 499 return launcher.getTestInfo(WorkspaceCellCenterRequest.builder().setCellX(cellX) 577 Launchable launchable, int cellX, int cellY, int spanX, int spanY, 585 launcher, launchable, cellX, cellY, spanX, spanY, true, expectLongClickEvents, 685 int cellX, int cellY, int spanX, int spanY, 692 int destinationWorkspace = cellX / rowsAndCols.x; 693 cellX = cellX % rowsAndCols.x; 700 Point targetDest = getCellCenter(launcher, cellX, cellY, spanX, spanY); [all …]
|
D | WorkspaceAppIcon.java | 39 boolean isInCell(int cellX, int cellY) { in isInCell() argument 40 final Point center = Workspace.getCellCenter(mLauncher, cellX, cellY); in isInCell()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 95 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 96 CellPos modelPos = mCellPosMapper.mapPresenterToModel(cellX, cellY, screenId, container); in updateItemInfoProps() 99 item.cellX = modelPos.cellX; in updateItemInfoProps() 110 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 113 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 116 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 133 modelItem.cellX == item.cellX && in checkItemInfoLocked() 161 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument 162 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase() 168 .put(Favorites.CELLX, item.cellX) in moveItemInDatabase() [all …]
|
D | LoaderCursor.java | 476 info.cellX = getInt(mCellXIndex); in applyCommonProperties() 525 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement() 545 if (item.container == Favorites.CONTAINER_DESKTOP && item.cellX < 0 || item.cellY < 0 in checkItemPlacement() 546 || item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement() 549 + item.cellX + "," + item.cellY in checkItemPlacement() 571 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement() 577 + item.cellX + "," + item.cellX + "," + item.spanX + "," + item.spanY in checkItemPlacement()
|
/packages/apps/Launcher3/tests/multivalentTests/shared/com/android/launcher3/testing/shared/ |
D | WorkspaceCellCenterRequest.java | 26 public final int cellX; field in WorkspaceCellCenterRequest 38 dest.writeInt(cellX); in writeToParcel() 58 private WorkspaceCellCenterRequest(int cellX, int cellY, int spanX, int spanY) { in WorkspaceCellCenterRequest() argument 59 this.cellX = cellX; in WorkspaceCellCenterRequest()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 861 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 862 cellToRect(cellX, cellY, 1, 1, mTempRect); in cellToPoint() 875 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument 876 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint() 887 public void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 888 cellToRect(cellX, cellY, spanX, spanY, mTempRect); in regionToCenterPoint() 901 private void getWorkspaceCellVisualCenter(int cellX, int cellY, int[] outPoint) { in getWorkspaceCellVisualCenter() argument 902 View child = getChildAt(cellX, cellY); in getWorkspaceCellVisualCenter() 906 cellToPoint(cellX, cellY, outPoint); in getWorkspaceCellVisualCenter() 914 cellToCenterPoint(cellX, cellY, outPoint); in getWorkspaceCellVisualCenter() [all …]
|
D | MultipageCellLayout.java | 84 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, in createAreaForResize() argument 87 if (cellX >= mCountX / 2) { in createAreaForResize() 88 cellX++; in createAreaForResize() 90 int finalCellX = cellX; in createAreaForResize()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 129 public int cellX = -1; field in ItemInfo 201 cellX = info.cellX; in copyFrom() 255 .put(LauncherSettings.Favorites.CELLX, cellX) in writeToValues() 266 cellX = values.getAsInteger(LauncherSettings.Favorites.CELLX); in readFromValues() 299 + " cell(" + cellX + "," + cellY + ")" in dumpProperties() 404 folderBuilder.setGridX(cellX).setGridY(cellY).setPageIndex(screenId); in buildProto() 415 .setGridX(cInfo.cellX).setGridY(cInfo.cellY)); in buildProto() 457 .setGridX(cellX) in getContainerInfo()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | HotseatReorderUnitTest.kt | 84 cellX: Int, in addViewInCellLayout() 93 cell.layoutParams = CellLayoutLayoutParams(cellX, cellY, spanX, spanY) in addViewInCellLayout() 115 cellX = p.x, in solve() 129 widget.cellX, in solve() 146 params.cellX = params.tmpCellX in commitTempPosition()
|
D | CellPosMapperTest.java | 150 private ItemInfo createInfo(int cellX, int cellY, int screen, int container) { in createInfo() argument 152 info.cellX = cellX; in createInfo()
|
D | CellLayoutTestUtils.java | 52 board.addIcon(pos.cellX, pos.cellY); in workspaceToBoards() 55 board.addWidget(pos.cellX, pos.cellY, params.cellHSpan, in workspaceToBoards()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | GridMigrationTest.kt | 110 assert(cellLayoutBoard.isEmpty(it.cellX, it.cellY, it.spanX, it.spanY)) { in validateDb() 113 cellLayoutBoard.addWidget(it.cellX, it.cellY, it.spanX, it.spanY) in validateDb() 118 val sort = compareBy<GridSizeMigrationUtil.DbEntry>({ it.cellX }, { it.cellY }) in compare() 120 EntryData(it.cellX, it.cellY, it.spanX, it.spanY, it.rank) in compare()
|
/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/tests/multivalentTests/src/com/android/launcher3/celllayout/board/ |
D | TestWorkspaceBuilder.java | 139 item.cellX = widgetRect.getCellX(); in createWidgetInCell() 152 folderInfo.cellX = folderPoint.coord.x; in createFolderInCell() 175 item.cellX = iconPoint.getCoord().x; in createIconInCell() 184 item.cellX = x; in getHotseatValues()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 229 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 230 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 248 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 249 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 275 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 276 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 278 info.cellX --; in performResizeAction() 286 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
|