Searched refs:cellXY (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 1057 final int[] cellXY = mTmpAddItemCellCoordinates; in completeAddApplication() local 1062 cellXY[0] = cellX; in completeAddApplication() 1063 cellXY[1] = cellY; in completeAddApplication() 1064 } else if (!layout.findCellForSpan(cellXY, 1, 1)) { in completeAddApplication() 1075 mWorkspace.addApplicationShortcut(info, layout, container, screen, cellXY[0], cellXY[1], in completeAddApplication() 1090 int[] cellXY = mTmpAddItemCellCoordinates; in completeAddShortcut() local 1104 cellXY[0] = cellX; in completeAddShortcut() 1105 cellXY[1] = cellY; in completeAddShortcut() 1109 if (mWorkspace.createUserFolderIfNecessary(view, container, layout, cellXY, 0, in completeAddShortcut() 1115 if (mWorkspace.addToExistingFolderIfNecessary(view, layout, cellXY, 0, dragObject, in completeAddShortcut() [all …]
|
D | CellLayout.java | 752 final int cellXY[] = mTmpXY; in setTagToCellInfoForPoint() local 753 pointToCellExact(x, y, cellXY); in setTagToCellInfoForPoint() 756 cellInfo.cellX = cellXY[0]; in setTagToCellInfoForPoint() 757 cellInfo.cellY = cellXY[1]; in setTagToCellInfoForPoint() 1453 final int[] cellXY = mTmpXY; in findNearestArea() local 1454 cellToCenterPoint(x, y, cellXY); in findNearestArea() 1469 double distance = Math.sqrt(Math.pow(cellXY[0] - pixelX, 2) in findNearestArea() 1470 + Math.pow(cellXY[1] - pixelY, 2)); in findNearestArea() 2809 boolean findCellForSpan(int[] cellXY, int spanX, int spanY) { in findCellForSpan() argument 2810 return findCellForSpanThatIntersectsIgnoring(cellXY, spanX, spanY, -1, -1, null, mOccupied); in findCellForSpan() [all …]
|
D | ShortcutAndWidgetContainer.java | 149 final int[] cellXY = mTmpCellXY; in onLayout() local 150 getLocationOnScreen(cellXY); in onLayout() 153 cellXY[0] + childLeft + lp.width / 2, in onLayout() 154 cellXY[1] + childTop + lp.height / 2, 0, null); in onLayout()
|
D | Workspace.java | 1951 final int[] cellXY = new int[2]; 1952 target.findCellForSpanThatIntersects(cellXY, 1, 1, intersectX, intersectY); 1953 addInScreen(view, container, screen, cellXY[0], cellXY[1], 1, 1, insertAtFirst); 1954 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen, cellXY[0], 1955 cellXY[1]);
|