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