Home
last modified time | relevance | path

Searched refs:countX (Results 1 – 13 of 13) 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.java586 int countX = cellLayout.getCountX(); in getFirstFocusableIconInReadingOrder() local
589 for (int x = isRtl ? countX - 1 : 0; 0 <= x && x < countX; x += increment) { in getFirstFocusableIconInReadingOrder()
601 int countX = cellLayout.getCountX(); in getFirstFocusableIconInReverseReadingOrder() local
604 for (int x = isRtl ? 0 : countX - 1; 0 <= x && x < countX; x += increment) { in getFirstFocusableIconInReverseReadingOrder()
DShortcutAndWidgetContainer.java58 int countX, int countY) { in setCellDimensions() argument
63 mCountX = countX; in setCellDimensions()
DDeviceProfile.java401 public static int calculateCellWidth(int width, int countX) { in calculateCellWidth() argument
402 return width / countX; in calculateCellWidth()
DAppWidgetResizeFrame.java249 int countX = mCellLayout.getCountX(); in resizeWidgetIfNeeded() local
283 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
DCellLayout.java1228 final int countX = mCountX; in findNearestArea() local
1238 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1262 if (x + xSize > countX -1 || mOccupied[x + xSize][y + j]) { in findNearestArea()
1358 final int countX = mCountX; in findNearestArea() local
1363 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()
DLauncherModel.java1621 final int countX = profile.numColumns; in checkItemPlacement() local
1675 ItemInfo[][] items = new ItemInfo[countX + 1][countY + 1]; in checkItemPlacement()
1682 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
1686 + ") out of screen bounds ( " + countX + "x" + countY + ")"); in checkItemPlacement()
1736 int countX = profile.numColumns; in loadWorkspace() local
2353 for (int x = 0; x < countX; x++) { in loadWorkspace()
DWorkspace.java2973 int countX = (int) inv.numColumns;
2983 DeviceProfile.calculateCellWidth(width, countX),
2994 DeviceProfile.calculateCellWidth(width, countX),
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java495 private static boolean isValid(int xPos, int yPos, int countX, int countY) {
496 return (0 <= xPos && xPos < countX && 0 <= yPos && yPos < countY);