Home
last modified time | relevance | path

Searched refs:mNumOfRows (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/pagination/
DPageIndexingHelper.java30 private final int mNumOfRows; field in PageIndexingHelper
38 mNumOfRows = numOfRows; in PageIndexingHelper()
61 int cid = (gridPosition / mNumOfRows) % mNumOfCols; in getOffsetBoundDirection()
68 int rid = (gridPosition / mNumOfCols) % mNumOfRows; in getOffsetBoundDirection()
71 } else if (rid == mNumOfRows - 1) { in getOffsetBoundDirection()
93 int positionOnPage = position % (mNumOfCols * mNumOfRows); in gridPositionToAdaptorIndex()
95 int pid = position / (mNumOfCols * mNumOfRows); in gridPositionToAdaptorIndex()
97 int rid = positionOnPage % mNumOfRows; in gridPositionToAdaptorIndex()
99 int cid = positionOnPage / mNumOfRows; in gridPositionToAdaptorIndex()
104 return (pid * mNumOfRows * mNumOfCols) + (rid * mNumOfCols) + cid; in gridPositionToAdaptorIndex()
[all …]
DPageMeasurementHelper.java31 private final int mNumOfRows; field in PageMeasurementHelper
49 mNumOfRows = windowBackground.getResources().getInteger( in PageMeasurementHelper()
113 gridHeight = roundDownToModuloMultiple(gridHeight, mNumOfRows); in handleWindowSizeChange()
115 int cellHeight = gridHeight / mNumOfRows; in handleWindowSizeChange()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppGridRecyclerView.java43 private final int mNumOfRows; field in AppGridRecyclerView
52 mNumOfRows = getResources().getInteger(R.integer.car_app_selector_row_number); in AppGridRecyclerView()
87 int blockSize = mNumOfCols * mNumOfRows; in focusSearch()
124 getChildAt(mNumOfCols * mNumOfRows - 1).requestFocus(); in maybeHandleRotaryFocus()
144 pageDimens.marginVerticalPx, new PageIndexingHelper(mNumOfCols, mNumOfRows, in onDimensionsUpdated()
DAppGridActivity.java120 private int mNumOfRows; field in AppGridActivity
224 mNumOfRows = getResources().getInteger(R.integer.car_app_selector_row_number); in onCreate()
234 mLayoutManager = new AppGridLayoutManager(this, mNumOfCols, mNumOfRows, mPageOrientation); in onCreate()
240 mNumOfRows, in onCreate()
264 mAdapter = new AppGridAdapter(this, mNumOfCols, mNumOfRows, in onCreate()
468 offsetPageCount * mNumOfRows * mNumOfCols, /* offset */ 0); in updateScrollState()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DAppGridAdapter.java59 private final int mNumOfRows; field in AppGridAdapter
100 mNumOfRows = numOfRows; in AppGridAdapter()
117 mNumOfRows = numOfRows; in AppGridAdapter()
233 float pageFraction = (float) unpaddedItemCount / (mNumOfCols * mNumOfRows); in getItemCountInternal()
235 return pageCount * mNumOfCols * mNumOfRows; in getItemCountInternal()
254 int pageCount = getItemCountInternal(unpaddedItemCount) / (mNumOfRows * mNumOfCols); in getPageCount()
305 int blockSize = mNumOfCols * mNumOfRows; in updatePageScrollDestination()