Home
last modified time | relevance | path

Searched refs:getCellX (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DCellLayoutLayoutParams.java94 this.mCellX = source.getCellX(); in CellLayoutLayoutParams()
134 int myCellX = useTmpCoords ? getTmpCellX() : getCellX(); in setup()
173 return "(" + this.getCellX() + ", " + this.getCellY() + ")"; in toString()
179 public int getCellX() { in getCellX() method in CellLayoutLayoutParams
DMulticellReorderAlgorithm.java117 int seamOffset = lp.getCellX() >= mCellLayout.getCountX() / 2 && lp.canReorder ? 1 : 0; in createGridOccupancyWithSeam()
118 grid.markCells(lp.getCellX() + seamOffset, lp.getCellY(), lp.cellHSpan, lp.cellVSpan, in createGridOccupancyWithSeam()
DReorderAlgorithm.java147 view -> ((CellLayoutLayoutParams) ((View) view).getLayoutParams()).getCellX() in rearrangementExists()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DCellLayoutTestUtils.java43 params.getCellX(), params.getCellY(), in workspaceToBoards()
70 board.addIcon(params.getCellX(), params.getCellY()); in viewsToBoard()
73 board.addWidget(params.getCellX(), params.getCellY(), params.cellHSpan, in viewsToBoard()
DReorderAlgorithmUnitTest.java159 .comparing(WidgetRect::getCellX) in solve()
162 widget -> addViewInCellLayout(cl, widget.getCellX(), widget.getCellY(), in solve()
DHotseatReorderUnitTest.kt124 Comparator.comparing(WidgetRect::getCellX).thenComparing(WidgetRect::getCellY) in solve()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java130 if (widget.getCellX() == 0 && widget.getCellY() == 0) { in getWidgetClosestTo()
133 int distance = Math.abs(point.x - widget.getCellX()) in getWidgetClosestTo()
158 Widget widget = mLauncher.getWorkspace().getWidgetAtCell(widgetRect.getCellX(), in triggerWidgetResize()
160 WidgetResizeFrame resizeFrame = widget.dragWidgetToWorkspace(widgetRect.getCellX(), in triggerWidgetResize()
181 Widget widget = mLauncher.getWorkspace().getWidgetAtCell(mainWidgetCellPos.getCellX(), in runTestCase()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/
DWidgetRect.java38 public int getCellX() { in getCellX() method in WidgetRect
56 return "WidgetRect type = " + mType + " x = " + getCellX() + " | y " + getCellY() in toString()
DTestWorkspaceBuilder.java64 int initX = widgetRect.getCellX(); in fillWithWidgets()
139 item.cellX = widgetRect.getCellX(); in createWidgetInCell()
DCellLayoutBoard.java80 Boolean isXInRect = x >= rect.getCellX() && x < rect.getCellX() + rect.getSpanX(); in pointInsideRect()
231 new Point(widgetRect.getCellX(), widgetRect.getCellY()))); in removeItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DMultipageCellLayout.java117 int seamOffset = lp.getCellX() >= mCountX / 2 && lp.canReorder ? 1 : 0; in copyCurrentStateToSolution()
118 CellAndSpan c = new CellAndSpan(lp.getCellX() + seamOffset, lp.getCellY(), lp.cellHSpan, in copyCurrentStateToSolution()
171 return params.getCellX() >= mCountX / 2 ? margin : -margin; in getMarginForGivenCellParams()
DCellLayout.java626 cellToRect(params.getCellX(), params.getCellY(), params.cellHSpan, params.cellVSpan, in visualizeGrid()
763 if (lp.getCellX() >= 0 && lp.getCellX() <= mCountX - 1 in addViewToCellLayout()
1072 occupied.markCells(lp.getCellX(), lp.getCellY(), lp.cellHSpan, lp.cellVSpan, false); in animateChildToPosition()
1414 lp.getCellX(), lp.getCellY(), c.cellX, c.cellY, c.spanX, c.spanY, in beginOrAdjustReorderPreviewAnimations()
1456 screenId, lp.getCellX(), lp.getCellY(), lp.cellHSpan, lp.cellVSpan); in commitTempPlacement()
1487 r1.set(lp.getCellX(), lp.getCellY(), lp.getCellX() + lp.cellHSpan, in getIntersectingRectanglesInRegion()
1514 if (lp.getTmpCellX() != lp.getCellX() || lp.getTmpCellY() != lp.getCellY()) { in revertTempState()
1515 lp.setTmpCellX(lp.getCellX()); in revertTempState()
1517 animateChildToPosition(child, lp.getCellX(), lp.getCellY(), in revertTempState()
1576 new CellAndSpan(lp.getCellX(), lp.getCellY(), lp.cellHSpan, lp.cellVSpan)); in copyCurrentStateToSolution()
[all …]
DShortcutAndWidgetContainer.java94 if ((lp.getCellX() <= cellX) && (cellX < lp.getCellX() + lp.cellHSpan) in getChildAt()
314 cl.setFolderLeaveBehindCell(lp.getCellX(), lp.getCellY()); in drawFolderLeaveBehindForIcon()
DWorkspaceLayoutManager.java147 Log.e(TAG, "Failed to add to item at (" + lp.getCellX() + "," + lp.getCellY() in addInScreen()
DWorkspace.java1861 if (lp.useTmpCoords && (lp.getTmpCellX() != lp.getCellX() in willCreateUserFolder()
1894 if (lp.useTmpCoords && (lp.getTmpCellX() != lp.getCellX() in willAddToExistingUserFolder()
2134 lp.getCellX(), lp.getCellY(), item.spanX, item.spanY); in onDrop()
2145 mTargetCell[0] = lp.getCellX(); in onDrop()
DAppWidgetResizeFrame.java453 int cellX = lp.useTmpCoords ? lp.getTmpCellX() : lp.getCellX();
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java277 lp.setCellX(lp.getCellX() - 1); in performResizeAction()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java285 mBackground.animateToAccept(cl, lp.getCellX(), lp.getCellY()); in onDragEnter()