Lines Matching refs:countX
343 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()
782 countX = Math.max(0, countX - 1); in setupContentDimensions()
784 done = countX == oldCountX && countY == oldCountY; in setupContentDimensions()
786 mContent.setGridSize(countX, countY); in setupContentDimensions()