/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 1073 final int[] cellXY = mTmpAddItemCellCoordinates; in completeAddApplication() local 1078 cellXY[0] = cellX; in completeAddApplication() 1079 cellXY[1] = cellY; in completeAddApplication() 1080 } else if (!layout.findCellForSpan(cellXY, 1, 1)) { in completeAddApplication() 1093 mWorkspace.addApplicationShortcut(info, layout, container, screen, cellXY[0], cellXY[1], in completeAddApplication() 1108 int[] cellXY = mTmpAddItemCellCoordinates; in completeAddShortcut() local 1122 cellXY[0] = cellX; in completeAddShortcut() 1123 cellXY[1] = cellY; in completeAddShortcut() 1127 if (mWorkspace.createUserFolderIfNecessary(view, container, layout, cellXY, 0, in completeAddShortcut() 1133 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]);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Launcher.java | 1506 int[] cellXY = mTmpAddItemCellCoordinates; in completeAddShortcut() local 1520 cellXY[0] = cellX; in completeAddShortcut() 1521 cellXY[1] = cellY; in completeAddShortcut() 1525 if (mWorkspace.createUserFolderIfNecessary(view, container, layout, cellXY, 0, in completeAddShortcut() 1531 if (mWorkspace.addToExistingFolderIfNecessary(view, layout, cellXY, 0, dragObject, in completeAddShortcut() 1537 int[] result = layout.findNearestVacantArea(touchXY[0], touchXY[1], 1, 1, cellXY); in completeAddShortcut() 1540 foundCellSpan = layout.findCellForSpan(cellXY, 1, 1); in completeAddShortcut() 1548 … LauncherModel.addItemToDatabase(this, info, container, screenId, cellXY[0], cellXY[1], false); in completeAddShortcut() 1551 mWorkspace.addInScreen(view, container, screenId, cellXY[0], cellXY[1], 1, 1, in completeAddShortcut() 1604 int[] cellXY = mTmpAddItemCellCoordinates; in completeAddAppWidget() local [all …]
|
D | ShortcutAndWidgetContainer.java | 193 final int[] cellXY = mTmpCellXY; in onLayout() local 194 getLocationOnScreen(cellXY); in onLayout() 197 cellXY[0] + childLeft + lp.width / 2, in onLayout() 198 cellXY[1] + childTop + lp.height / 2, 0, null); in onLayout()
|
D | CellLayout.java | 1327 final int[] cellXY = mTmpXY; in findNearestArea() local 1328 cellToCenterPoint(x, y, cellXY); in findNearestArea() 1343 double distance = Math.sqrt(Math.pow(cellXY[0] - pixelX, 2) in findNearestArea() 1344 + Math.pow(cellXY[1] - pixelY, 2)); in findNearestArea() 2722 boolean findCellForSpan(int[] cellXY, int spanX, int spanY) { in findCellForSpan() argument 2723 return findCellForSpanThatIntersectsIgnoring(cellXY, spanX, spanY, -1, -1, null, mOccupied); in findCellForSpan() 2736 boolean findCellForSpanIgnoring(int[] cellXY, int spanX, int spanY, View ignoreView) { in findCellForSpanIgnoring() argument 2737 return findCellForSpanThatIntersectsIgnoring(cellXY, spanX, spanY, -1, -1, in findCellForSpanIgnoring() 2753 boolean findCellForSpanThatIntersects(int[] cellXY, int spanX, int spanY, in findCellForSpanThatIntersects() argument 2756 cellXY, spanX, spanY, intersectX, intersectY, null, mOccupied); in findCellForSpanThatIntersects() [all …]
|
D | Workspace.java | 2835 final int[] cellXY = new int[2]; in addApplicationShortcut() local 2836 target.findCellForSpanThatIntersects(cellXY, 1, 1, intersectX, intersectY); in addApplicationShortcut() 2837 addInScreen(view, container, screenId, cellXY[0], cellXY[1], 1, 1, insertAtFirst); in addApplicationShortcut() 2839 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screenId, cellXY[0], in addApplicationShortcut() 2840 cellXY[1]); in addApplicationShortcut()
|