Lines Matching refs:mColumns
123 private int mColumns;
137 private int mRows; // Cache (mCount + mColumns - 1) / mColumns
215 mColumns = 1 + (width - mSpec.mCellWidth)
219 - ((mColumns - 1) * mSpec.mCellSpacing)
220 - (mColumns * mSpec.mCellWidth)) / 2;
222 mRows = (mCount + mColumns - 1) / mColumns;
238 mAllImages, mLoader, mDrawAdapter, mSpec, mColumns, width,
503 int row = pos / mColumns;
504 int col = pos - (row * mColumns);
524 int col = Math.min(mColumns - 1,
526 return (row * mColumns) + col;
585 if (sel != mCount - 1 && (sel % mColumns < mColumns - 1)) {
590 if (sel > 0 && (sel % mColumns != 0)) {
595 if (sel >= mColumns) {
596 sel -= mColumns;
600 sel = Math.min(mCount - 1, sel + mColumns);
620 int topPos = startRow * mColumns;
623 topPos += mColumns;
669 int startIndex = startRow * mColumns;
670 int endIndex = Math.min(endRow * mColumns, mCount);
683 if (off == mColumns) {
696 int row = mCurrentSelection / mColumns;
697 int col = mCurrentSelection - (row * mColumns);
732 private final int mColumns; // Columns per row.
737 private final int mRows; // Cache (mCount + mColumns - 1) / mColumns
755 mColumns = columns;
760 mRows = (mCount + mColumns - 1) / mColumns;
794 int row = pos / mColumns;
795 int col = pos - row * mColumns;
880 int row = index / mColumns;
881 int col = index - (row * mColumns);
927 // mColumns for the last row).
929 return Math.min(mColumns, mCount - row * mColumns);
1026 int base = mRow * mColumns;
1112 if (cols == mColumns) {
1159 for (int i = 0; i < mColumns; i++) {
1162 int pos = (mRow * mColumns) + i;