Home
last modified time | relevance | path

Searched refs:mNumRows (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java58 private int mNumRows = 5; field in InternalSelectionView
67 mNumRows = numRows; in InternalSelectionView()
77 mNumRows = a.getInt(R.styleable.SelectableRowView_numRows, 5); in InternalSelectionView()
89 return mNumRows; in getNumRows()
132 mNumRows * mEstimatedPixelHeight + mPaddingTop + mPaddingBottom; in measureHeight()
149 for (int i = 0; i < mNumRows; i++) { in onDraw()
187 final int desiredRowHeight = availableHeight / mNumRows; in getRowHeight()
188 if (row < mNumRows - 1) { in getRowHeight()
191 final int residualHeight = availableHeight % mNumRows; in getRowHeight()
223 if (mSelectedRow < (mNumRows - 1)) { in onKeyDown()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGrid.java96 protected int mNumRows = 1; // mRows.length field in StaggeredGrid
134 mNumRows = row.length; in setRows()
136 mTmpItemPositionsInRows = new ArrayList[mNumRows]; in setRows()
137 for (int i = 0; i < mNumRows; i++) { in setRows()
146 return mNumRows; in getNumRows()
218 for (int i = 1; i < mNumRows; i++) { in getMaxHighRowIndex()
228 for (int i = 1; i < mNumRows; i++) { in getMinHighRowIndex()
253 for (int i = 1; i < mNumRows; i++) { in getMaxLowRowIndex()
263 for (int i = 1; i < mNumRows; i++) { in getMinLowRowIndex()
285 for (int i = 0; i < mNumRows; i++) { in getItemPositionsInRows()
DStaggeredGridDefault.java31 rowIndex = (mLocations.getLast().row + 1) % mNumRows; in appendItems()
34 rowIndex = mStartRow != START_DEFAULT ? mStartRow : itemIndex % mNumRows; in appendItems()
44 for (; rowIndex < mNumRows; rowIndex++) { in appendItems()
81 rowIndex = mNumRows - 1; in prependItems()
87 rowIndex = mStartRow != START_DEFAULT ? mStartRow : itemIndex % mNumRows; in prependItems()
114 rowIndex = mNumRows - 1; in prependItems()
133 while (endRow < mNumRows - 1 && endIndex < lastIndex) { in stripDownTo()
DGridLayoutManager.java276 private int mNumRows; field in GridLayoutManager
551 return mOrientation == HORIZONTAL || mNumRows > 1; in canScrollHorizontally()
558 return mOrientation == VERTICAL || mNumRows > 1; in canScrollVertically()
669 if (mRows != null && mNumRows == mRows.length && in init()
689 for (int i = 0; i < mNumRows; i++) { in init()
696 for (int i = 0; i < mNumRows; i++) { in init()
728 for (int i = 0; i < mNumRows; i++) { in init()
734 for (int i = 0; i < mNumRows; i++) { in init()
747 mRows = new StaggeredGrid.Row[mNumRows]; in init()
749 for (int i = 0; i < mNumRows; i++) { in init()
[all …]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthView.java176 protected int mNumRows = DEFAULT_NUM_ROWS; field in MonthView
386 mNumRows = calculateNumRows(); in setMonthParams()
397 mNumRows = DEFAULT_NUM_ROWS; in reuse()
416 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mRowHeight * mNumRows in onMeasure()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java137 private int mNumRows = DEFAULT_NUM_ROWS; field in SimpleMonthView
370 mNumRows = calculateNumRows(); in setMonthParams()
399 mNumRows = DEFAULT_NUM_ROWS; in reuse()
418 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mRowHeight * mNumRows in onMeasure()