Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java87 final int countX = cellLayout.getCountX(); in onKey() local
99 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, countX, in onKey()
117 ^ newParent.invertLayoutHorizontally()) ? 0 : countX - 1, row); in onKey()
131 child = newParent.getChildAt(countX - 1, countY - 1); in onKey()
204 int countX = -1; in handleHotseatButtonKeyEvent() local
228 countX = iconLayout.getCountX(); in handleHotseatButtonKeyEvent()
237 countX = iconLayout.getCountX() + hotseatLayout.getCountX(); in handleHotseatButtonKeyEvent()
247 countX = hotseatLayout.getCountX(); in handleHotseatButtonKeyEvent()
253 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, countX, in handleHotseatButtonKeyEvent()
307 int countX = iconLayout.getCountX(); in handleIconKeyEvent() local
[all …]
DShortcutAndWidgetContainer.java59 int countX, int countY) { in setCellDimensions() argument
64 mCountX = countX; in setCellDimensions()
DDeviceProfile.java352 public static int calculateCellWidth(int width, int countX) { in calculateCellWidth() argument
353 return width / countX; in calculateCellWidth()
DAppWidgetResizeFrame.java238 int countX = mCellLayout.getCountX(); in resizeWidgetIfNeeded() local
272 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded()
DCellLayout.java1176 final int countX = mCountX; in findNearestArea() local
1186 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1210 if (x + xSize > countX -1 || mOccupied[x + xSize][y + j]) { in findNearestArea()
1306 final int countX = mCountX; in findNearestArea() local
1311 for (int x = 0; x < countX - (spanX - 1); x++) { in findNearestArea()
DLauncherModel.java1618 final int countX = profile.numColumns; in checkItemPlacement() local
1672 ItemInfo[][] items = new ItemInfo[countX + 1][countY + 1]; in checkItemPlacement()
1679 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
1683 + ") out of screen bounds ( " + countX + "x" + countY + ")"); in checkItemPlacement()
1733 int countX = profile.numColumns; in loadWorkspace() local
2343 for (int x = 0; x < countX; x++) { in loadWorkspace()
DWorkspace.java2853 int countX = (int) inv.numColumns;
2863 DeviceProfile.calculateCellWidth(width, countX),
2874 DeviceProfile.calculateCellWidth(width, countX),
/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()
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/util/
DFocusLogic.java431 private static boolean isValid(int xPos, int yPos, int countX, int countY) { in isValid() argument
432 return (0 <= xPos && xPos < countX && 0 <= yPos && yPos < countY); in isValid()