Home
last modified time | relevance | path

Searched refs:cellXY (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java178 final int[] cellXY = mTmpCellXY; in layoutChild() local
179 getLocationOnScreen(cellXY); in layoutChild()
182 cellXY[0] + childLeft + lp.width / 2, in layoutChild()
183 cellXY[1] + childTop + lp.height / 2, 0, null); in layoutChild()
DCellLayout.java1155 final int[] cellXY = mTmpPoint; in findNearestArea() local
1156 cellToCenterPoint(x, y, cellXY); in findNearestArea()
1171 double distance = Math.hypot(cellXY[0] - pixelX, cellXY[1] - pixelY); in findNearestArea()
2451 public boolean findCellForSpan(int[] cellXY, int spanX, int spanY) { in findCellForSpan() argument
2452 if (cellXY == null) { in findCellForSpan()
2453 cellXY = new int[2]; in findCellForSpan()
2455 return mOccupied.findVacantCell(cellXY, spanX, spanY); in findCellForSpan()
DLauncher.java1205 int[] cellXY = mTmpAddItemCellCoordinates; in completeAddShortcut() local
1236 cellXY[0] = cellX; in completeAddShortcut()
1237 cellXY[1] = cellY; in completeAddShortcut()
1243 if (mWorkspace.createUserFolderIfNecessary(view, container, layout, cellXY, 0, in completeAddShortcut()
1247 if (mWorkspace.addToExistingFolderIfNecessary(view, layout, cellXY, 0, dragObject, in completeAddShortcut()
1252 foundCellSpan = layout.findCellForSpan(cellXY, 1, 1); in completeAddShortcut()
1260 getModelWriter().addItemToDatabase(info, container, screenId, cellXY[0], cellXY[1]); in completeAddShortcut()