Lines Matching refs:position

137         for (int position = op.positionStart; position < tmpEnd; position++) {
139 RecyclerView.ViewHolder vh = mCallback.findViewHolder(position);
140 if (vh != null || canFindInPreLayout(position)) {
157 // this position. Instead, post it to LayoutManager immediately
168 position -= tmpCount; // also equal to tmpStart
191 for (int position = op.positionStart; position < tmpEnd; position++) {
192 RecyclerView.ViewHolder vh = mCallback.findViewHolder(position);
193 if (vh != null || canFindInPreLayout(position)) { // deferred
199 tmpStart = position;
208 tmpStart = position;
409 private boolean canFindInPreLayout(int position) {
414 if (findPositionOffset(op.itemCount, i + 1) == position) {
421 if (findPositionOffset(pos, i + 1) == position) {
466 int findPositionOffset(int position) {
467 return findPositionOffset(position, 0);
470 int findPositionOffset(int position, int firstPostponedItem) {
475 if (op.positionStart == position) {
476 position = op.itemCount;
478 if (op.positionStart < position) {
479 position--; // like a remove
481 if (op.itemCount <= position) {
482 position++; // like an add
485 } else if (op.positionStart <= position) {
487 if (position < op.positionStart + op.itemCount) {
490 position -= op.itemCount;
492 position += op.itemCount;
496 return position;
586 public int applyPendingUpdatesToPosition(int position) {
592 if (op.positionStart <= position) {
593 position += op.itemCount;
597 if (op.positionStart <= position) {
599 if (end > position) {
602 position -= op.itemCount;
606 if (op.positionStart == position) {
607 position = op.itemCount; //position end
609 if (op.positionStart < position) {
610 position -= 1;
612 if (op.itemCount <= position) {
613 position += 1;
619 return position;
647 // holds the target position if this is a MOVE
759 RecyclerView.ViewHolder findViewHolder(int position);