Searched refs:gridPosition (Results 1 – 6 of 6) sorted by relevance
58 public int getOffsetBoundDirection(int gridPosition) { in getOffsetBoundDirection() argument61 int cid = (gridPosition / mNumOfRows) % mNumOfCols; in getOffsetBoundDirection()68 int rid = (gridPosition / mNumOfCols) % mNumOfRows; in getOffsetBoundDirection()152 public int roundToFirstIndexOnPage(int gridPosition) { in roundToFirstIndexOnPage() argument153 int pidRoundedDown = gridPosition / (mNumOfCols * mNumOfRows); in roundToFirstIndexOnPage()175 public int roundToLastIndexOnPage(int gridPosition) { in roundToLastIndexOnPage() argument176 int pidRoundedUp = gridPosition / (mNumOfCols * mNumOfRows) + 1; in roundToLastIndexOnPage()
278 public void notifySnapToPosition(int gridPosition) { in notifySnapToPosition() argument279 mSnapPosition = gridPosition; in notifySnapToPosition()280 mSnapListener.onSnapToPosition(gridPosition); in notifySnapToPosition()304 void onSnapToPosition(int gridPosition); in onSnapToPosition() argument
506 public void onDragExited(int gridPosition, @AppItemBoundDirection int exitDirection) { in onDragExited() argument507 if (mAdapter.getOffsetBoundDirection(gridPosition) == exitDirection) { in onDragExited()
262 public int getOffsetBoundDirection(int gridPosition) { in getOffsetBoundDirection() argument263 return mIndexingHelper.getOffsetBoundDirection(gridPosition); in getOffsetBoundDirection()275 public void setDragStartPoint(int gridPosition) { in setDragStartPoint() argument276 mPageScrollDestination = mIndexingHelper.roundToFirstIndexOnPage(gridPosition); in setDragStartPoint()
605 int gridPosition = viewHolder.getAbsoluteAdapterPosition();606 mDragListener.onDragExited(gridPosition, exitDirection);663 void onDragExited(int gridPosition, @AppItemBoundDirection int exitDirection);
36 public void onSnapToPosition(int gridPosition) { in onSnapToPosition() argument