Home
last modified time | relevance | path

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

/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/pagination/
DPageIndexingHelper.java58 public int getOffsetBoundDirection(int gridPosition) { in getOffsetBoundDirection() argument
61 int cid = (gridPosition / mNumOfRows) % mNumOfCols; in getOffsetBoundDirection()
68 int rid = (gridPosition / mNumOfCols) % mNumOfRows; in getOffsetBoundDirection()
152 public int roundToFirstIndexOnPage(int gridPosition) { in roundToFirstIndexOnPage() argument
153 int pidRoundedDown = gridPosition / (mNumOfCols * mNumOfRows); in roundToFirstIndexOnPage()
175 public int roundToLastIndexOnPage(int gridPosition) { in roundToLastIndexOnPage() argument
176 int pidRoundedUp = gridPosition / (mNumOfCols * mNumOfRows) + 1; in roundToLastIndexOnPage()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DAppGridPageSnapper.java278 public void notifySnapToPosition(int gridPosition) { in notifySnapToPosition() argument
279 mSnapPosition = gridPosition; in notifySnapToPosition()
280 mSnapListener.onSnapToPosition(gridPosition); in notifySnapToPosition()
304 void onSnapToPosition(int gridPosition); in onSnapToPosition() argument
DAppGridActivity.java506 public void onDragExited(int gridPosition, @AppItemBoundDirection int exitDirection) { in onDragExited() argument
507 if (mAdapter.getOffsetBoundDirection(gridPosition) == exitDirection) { in onDragExited()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DAppGridAdapter.java262 public int getOffsetBoundDirection(int gridPosition) { in getOffsetBoundDirection() argument
263 return mIndexingHelper.getOffsetBoundDirection(gridPosition); in getOffsetBoundDirection()
275 public void setDragStartPoint(int gridPosition) { in setDragStartPoint() argument
276 mPageScrollDestination = mIndexingHelper.roundToFirstIndexOnPage(gridPosition); in setDragStartPoint()
DAppItemViewHolder.java605 int gridPosition = viewHolder.getAbsoluteAdapterPosition();
606 mDragListener.onDragExited(gridPosition, exitDirection);
663 void onDragExited(int gridPosition, @AppItemBoundDirection int exitDirection);
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DTestActivity.java36 public void onSnapToPosition(int gridPosition) { in onSnapToPosition() argument