Lines Matching refs:row
503 int row = pos / mColumns;
504 int col = pos - (row * mColumns);
508 int top = row * mBlockHeight;
523 int row = (mScrollY + y - spacing) / (mSpec.mCellHeight + spacing);
526 return (row * mColumns) + col;
696 int row = mCurrentSelection / mColumns;
697 int col = mCurrentSelection - (row * mColumns);
702 int yTop = spacing + (row * mBlockHeight);
720 // mCache maps from row number to the ImageBlock.
725 private final Runnable mRedrawCallback; // Called after a row is loaded,
732 private final int mColumns; // Columns per row.
740 // Visible row range: [mStartRow, mEndRow). Set by setVisibleRows().
794 int row = pos / mColumns;
795 int col = pos - row * mColumns;
796 ImageBlock blk = mCache.get(row);
815 // d is the distance between the row and visible region.
833 // Returns number of requests we issued for this row.
834 private int tryToLoad(int row) {
835 Assert(row >= 0 && row < mRows);
836 ImageBlock blk = mCache.get(row);
840 blk.setRow(row);
842 mCache.put(row, blk);
880 int row = index / mColumns;
881 int col = index - (row * mColumns);
882 ImageBlock blk = mCache.get(row);
926 // Return number of columns in the given row. (This could be less than
927 // mColumns for the last row).
928 private int numColumns(int row) {
929 return Math.min(mColumns, mCount - row * mColumns);
933 private void drawEmptyBlock(Canvas canvas, int xPos, int yPos, int row) {
941 int cols = numColumns(row);
967 // ImageBlock stores bitmap for one row. The loaded thumbnail images are
979 // The row number this block represents.
989 public void setRow(int row) {
990 mRow = row;
1116 // This must be the last row -- we draw only part of the block.