Home | History | Annotate | Download | only in launcher2

Lines Matching refs:Math

189             mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0);
190 mHeightGap = Math.min(mMaxGap,numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0);
230 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap);
237 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap);
260 int numRows = (int) Math.ceil((float) getPageChildCount() / getCellCountX());
294 int smallerSize = Math.min(mCellWidth, mCellHeight);
322 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap));
337 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap));
352 mCellCountX = Math.min(maxCellCountX, estimateCellHSpan(width));
353 mCellCountY = Math.min(maxCellCountY, estimateCellVSpan(height));