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()
761 int countX = mContent.getCountX(); in setupContentDimensions() local
766 int oldCountX = countX; in setupContentDimensions()
768 if (countX * countY < count) { in setupContentDimensions()
770 if ((countX <= countY || countY == mMaxCountY) && countX < mMaxCountX) { in setupContentDimensions()
771 countX++; in setupContentDimensions()
776 } else if ((countY - 1) * countX >= count && countY >= countX) { in setupContentDimensions()
778 } 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()
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()
DShortcutAndWidgetContainer.java52 int countX) { in setCellDimensions() argument
57 mCountX = countX; in setCellDimensions()
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/
DFolder.java361 final int countX = mContent.getCountX(); in placeInReadingOrder() local
363 int x = i % countX; in placeInReadingOrder()
364 int y = i / countX; in placeInReadingOrder()
900 int countX = mContent.getCountX(); in setupContentDimensions() local
905 int oldCountX = countX; in setupContentDimensions()
907 if (countX * countY < count) { in setupContentDimensions()
909 if ((countX <= countY || countY == mMaxCountY) && countX < mMaxCountX) { in setupContentDimensions()
910 countX++; in setupContentDimensions()
915 } else if ((countY - 1) * countX >= count && countY >= countX) { in setupContentDimensions()
917 } else if ((countX - 1) * countY >= count) { in setupContentDimensions()
[all …]
DFocusHelper.java281 int countX; in handleAppsCustomizeKeyEvent() local
286 countX = ((CellLayout) parentLayout).getCountX(); in handleAppsCustomizeKeyEvent()
290 countX = ((PagedViewGridLayout) parentLayout).getCellCountX(); in handleAppsCustomizeKeyEvent()
304 final int x = iconIndex % countX; in handleAppsCustomizeKeyEvent()
305 final int y = iconIndex / countX; in handleAppsCustomizeKeyEvent()
355 int newiconIndex = ((y - 1) * countX) + x; in handleAppsCustomizeKeyEvent()
367 int newiconIndex = Math.min(itemCount - 1, ((y + 1) * countX) + x); in handleAppsCustomizeKeyEvent()
DCellLayout.java930 int paddedMeasureHeight, int countX, int countY) { in getMetrics() argument
933 metrics.set(grid.calculateCellWidth(paddedMeasureWidth, countX), in getMetrics()
1181 final int countX = mCountX; in estimateDropCell() local
1189 int rightOverhang = result[0] + spanX - countX; in estimateDropCell()
1380 final int countX = mCountX; in findNearestArea() local
1390 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1414 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) { in findNearestArea()
1513 final int countX = mCountX; in findNearestArea() local
1518 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()
DShortcutAndWidgetContainer.java55 int countX, int countY) { in setCellDimensions() argument
60 mCountX = countX; in setCellDimensions()
DAppWidgetResizeFrame.java238 int countX = mCellLayout.getCountX(); in resizeWidgetIfNeeded() local
272 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
DLauncherModel.java1652 final int countX = (int) grid.numColumns; in checkItemPlacement() local
1702 ItemInfo[][] items = new ItemInfo[countX + 1][countY + 1]; in checkItemPlacement()
1709 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
1713 + ") out of screen bounds ( " + countX + "x" + countY + ")"); in checkItemPlacement()
1766 int countX = (int) grid.numColumns; in loadWorkspace() local
2191 for (int x = 0; x < countX; x++) { in loadWorkspace()
DDeviceProfile.java593 int calculateCellWidth(int width, int countX) { in calculateCellWidth() argument
594 return width / countX; in calculateCellWidth()
DWorkspace.java3136 int countX = (int) grid.numColumns;
3145 grid.calculateCellWidth(width, countX),
3156 grid.calculateCellWidth(width, countX),