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

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

Completed in 194 milliseconds