Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java38 private int mNumColumns = 3; field in PseudoGridView
52 mNumColumns = a.getInt(attr, 3); in PseudoGridView()
73 int childWidth = (width - (mNumColumns - 1) * mHorizontalSpacing) / mNumColumns; in onMeasure()
78 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure()
80 int startOfRow = row * mNumColumns; in onMeasure()
81 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onMeasure()
108 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout()
113 int startOfRow = row * mNumColumns; in onLayout()
114 int endOfRow = Math.min(startOfRow + mNumColumns, children); in onLayout()
/frameworks/base/core/java/android/widget/
DGridView.java99 private int mNumColumns = AUTO_FIT; field in GridView
246 final int numColumns = mNumColumns; in fillGap()
311 pos += mNumColumns; in fillDown()
336 last = Math.min(startPos + mNumColumns, mItemCount); in makeRow()
339 startPos = Math.max(0, startPos - mNumColumns + 1); in makeRow()
341 if (last - startPos < mNumColumns) { in makeRow()
342 … final int deltaLeft = (mNumColumns - (last - startPos)) * (columnWidth + horizontalSpacing); in makeRow()
411 pos -= mNumColumns; in fillUp()
436 mFirstPosition -= mFirstPosition % mNumColumns; in fillFromTop()
445 lastPosition = mItemCount - 1 - (invertedPosition - (invertedPosition % mNumColumns)); in fillFromBottom()
[all …]
DTableRow.java48 private int mNumColumns = 0; field in TableRow
151 return mNumColumns; in getVirtualChildCount()
175 mNumColumns = virtualCount; in mapIndexAndColumns()
/frameworks/base/core/tests/coretests/src/android/util/
DGridScenario.java56 private int mNumColumns; field in GridScenario
99 private int mNumColumns = GridView.AUTO_FIT; field in GridScenario.Params
177 mNumColumns = numColumns; in setNumColumns()
248 if (mNumColumns >= GridView.AUTO_FIT) { in onCreate()
249 mGridView.setNumColumns(mNumColumns); in onCreate()
310 mNumColumns = params.mNumColumns; in readAndValidateParams()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DVerticalGridPresenter.java46 private int mNumColumns = -1; field in VerticalGridPresenter
70 if (mNumColumns != numColumns) { in setNumberOfColumns()
71 mNumColumns = numColumns; in setNumberOfColumns()
79 return mNumColumns; in getNumberOfColumns()
180 if (mNumColumns == -1) { in initializeGridViewHolder()
183 if (DEBUG) Log.v(TAG, "mNumColumns " + mNumColumns); in initializeGridViewHolder()
184 vh.getGridView().setNumColumns(mNumColumns); in initializeGridViewHolder()
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerPalette.java43 private int mNumColumns; field in ColorPickerPalette
58 mNumColumns = columns; in init()
105 if (rowElements == mNumColumns) { in drawPalette()
115 while (rowElements != mNumColumns) { in drawPalette()
149 int rowMax = ((rowNumber + 1) * mNumColumns); in setSwatchDescription()