Home
last modified time | relevance | path

Searched refs:countX (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/util/
DGridOccupancy.java17 public GridOccupancy(int countX, int countY) { in GridOccupancy() argument
18 mCountX = countX; in GridOccupancy()
20 cells = new boolean[countX][countY]; in GridOccupancy()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java448 final int countX = mIDP.numColumns; in checkItemPlacement() local
452 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
456 + ") out of screen bounds ( " + countX + "x" + countY + ")"); in checkItemPlacement()
461 GridOccupancy screen = new GridOccupancy(countX + 1, countY + 1); in checkItemPlacement()
466 screen.markCells(0, 0, countX + 1, spanY, FeatureFlags.QSB_ON_FIRST_SCREEN); in checkItemPlacement()
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java66 public void setCellDimensions(int cellWidth, int cellHeight, int countX, int countY, in setCellDimensions() argument
70 mCountX = countX; in setCellDimensions()
DDeviceProfile.java841 public static int calculateCellWidth(int width, int borderSpacing, int countX) { in calculateCellWidth() argument
842 return (width - ((countX - 1) * borderSpacing)) / countX; in calculateCellWidth()
DCellLayout.java1174 final int countX = mCountX; in findNearestArea() local
1184 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1208 if (x + xSize > countX -1 || mOccupied.cells[x + xSize][y + j]) { in findNearestArea()
1302 final int countX = mCountX; in findNearestArea() local
1307 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()