Home
last modified time | relevance | path

Searched refs:countX (Results 1 – 4 of 4) 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()
770 int countX = mContent.getCountX(); in setupContentDimensions() local
775 int oldCountX = countX; in setupContentDimensions()
777 if (countX * countY < count) { in setupContentDimensions()
779 if ((countX <= countY || countY == mMaxCountY) && countX < mMaxCountX) { in setupContentDimensions()
780 countX++; in setupContentDimensions()
785 } else if ((countY - 1) * countX >= count && countY >= countX) { in setupContentDimensions()
787 } 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.java919 int countX, int countY, int orientation) { in getMetrics() argument
920 int numWidthGaps = countX - 1; in getMetrics()
957 int hFreeSpace = hSpace - (countX * cellWidth); in getMetrics()
1178 final int countX = mCountX; in estimateDropCell() local
1186 int rightOverhang = result[0] + spanX - countX; in estimateDropCell()
1381 final int countX = mCountX; in findNearestArea() local
1391 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea()
1415 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) { in findNearestArea()
1514 final int countX = mCountX; in findNearestArea() local
1519 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()