Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DFolder.java343 final int countX = mContent.getCountX(); in placeInReadingOrder() local
345 int x = i % countX; in placeInReadingOrder()
346 int y = i / countX; in placeInReadingOrder()
764 int countX = mContent.getCountX(); in setupContentDimensions() local
769 int oldCountX = countX; in setupContentDimensions()
771 if (countX * countY < count) { in setupContentDimensions()
773 if ((countX <= countY || countY == mMaxCountY) && countX < mMaxCountX) { in setupContentDimensions()
774 countX++; in setupContentDimensions()
779 } else if ((countY - 1) * countX >= count && countY >= countX) { in setupContentDimensions()
781 } else if ((countX - 1) * countY >= count) { in setupContentDimensions()
[all …]
DFocusHelper.java282 int countX; in handleAppsCustomizeKeyEvent() local
287 countX = ((PagedViewCellLayout) parentLayout).getCellCountX(); in handleAppsCustomizeKeyEvent()
291 countX = ((PagedViewGridLayout) parentLayout).getCellCountX(); in handleAppsCustomizeKeyEvent()
305 final int x = iconIndex % countX; in handleAppsCustomizeKeyEvent()
306 final int y = iconIndex / countX; in handleAppsCustomizeKeyEvent()
356 int newiconIndex = ((y - 1) * countX) + x; in handleAppsCustomizeKeyEvent()
368 int newiconIndex = Math.min(itemCount - 1, ((y + 1) * countX) + x); in handleAppsCustomizeKeyEvent()
DShortcutAndWidgetContainer.java52 int countX) { in setCellDimensions() argument
57 mCountX = countX; in setCellDimensions()
DCellLayout.java929 int countX, int countY, int orientation) { in getMetrics() argument
930 int numWidthGaps = countX - 1; in getMetrics()
967 int hFreeSpace = hSpace - (countX * cellWidth); in getMetrics()
1189 final int countX = mCountX; in estimateDropCell() local
1197 int rightOverhang = result[0] + spanX - countX; in estimateDropCell()
1392 final int countX = mCountX; in findNearestArea() local
1402 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1426 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) { in findNearestArea()
1525 final int countX = mCountX; in findNearestArea() local
1530 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()
DAppWidgetResizeFrame.java241 int countX = mCellLayout.getCountX(); in resizeWidgetIfNeeded() local
275 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java551 int countX = cellLayout.getCountX(); in getFirstFocusableIconInReadingOrder() local
554 for (int x = isRtl ? countX - 1 : 0; 0 <= x && x < countX; x += increment) { in getFirstFocusableIconInReadingOrder()
566 int countX = cellLayout.getCountX(); in getFirstFocusableIconInReverseReadingOrder() local
569 for (int x = isRtl ? 0 : countX - 1; 0 <= x && x < countX; x += increment) { in getFirstFocusableIconInReverseReadingOrder()
DShortcutAndWidgetContainer.java52 public void setCellDimensions(int cellWidth, int cellHeight, int countX, int countY) { in setCellDimensions() argument
55 mCountX = countX; in setCellDimensions()
DDeviceProfile.java485 public static int calculateCellWidth(int width, int countX) { in calculateCellWidth() argument
486 return width / countX; in calculateCellWidth()
DCellLayout.java1152 final int countX = mCountX; in findNearestArea() local
1162 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1186 if (x + xSize > countX -1 || mOccupied.cells[x + xSize][y + j]) { in findNearestArea()
1280 final int countX = mCountX; in findNearestArea() local
1285 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java435 final int countX = mIDP.numColumns; in checkItemPlacement() local
439 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
443 + ") out of screen bounds ( " + countX + "x" + countY + ")"); in checkItemPlacement()
448 GridOccupancy screen = new GridOccupancy(countX + 1, countY + 1); in checkItemPlacement()
452 screen.markCells(0, 0, countX + 1, 1, FeatureFlags.QSB_ON_FIRST_SCREEN); in checkItemPlacement()
/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()
DFocusLogic.java501 private static boolean isValid(int xPos, int yPos, int countX, int countY) {
502 return (0 <= xPos && xPos < countX && 0 <= yPos && yPos < countY);