Lines Matching refs:Math
229 mScrollY = Math.max(0, Math.min(mMaxScrollY, mScrollY));
297 startRow = Math.max(Math.min(startRow, mRows - 1), 0);
298 endRow = Math.max(Math.min(endRow, mRows), 0);
405 mCurrentSelection = Math.min(index, mCount - 1);
524 int col = Math.min(mColumns - 1,
555 scrollTo(0, Math.round(scrollPosition * mMaxScrollY));
560 y = Math.max(0, Math.min(mMaxScrollY, y));
600 sel = Math.min(mCount - 1, sel + mColumns);
625 topPos = Math.min(mCount - 1, topPos);
666 startRow = Math.max(Math.min(startRow, mRows - 1), 0);
667 endRow = Math.max(Math.min(endRow, mRows), 0);
670 int endIndex = Math.min(endRow * mColumns, mCount);
929 return Math.min(mColumns, mCount - row * mColumns);