Lines Matching defs:positionStart
133 int tmpStart = op.positionStart;
135 int tmpEnd = op.positionStart + op.itemCount;
137 for (int position = op.positionStart; position < tmpEnd; position++) {
187 int tmpStart = op.positionStart;
189 int tmpEnd = op.positionStart + op.itemCount;
191 for (int position = op.positionStart; position < tmpEnd; position++) {
244 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd);
246 Log.d(TAG, "pos:" + op.positionStart + ",updatedPos:" + tmpStart);
249 int offsetPositionForPartial = op.positionStart;
262 final int pos = op.positionStart + (positionMultiplier * p);
334 if (postponed.positionStart < postponed.itemCount) {
335 start = postponed.positionStart;
339 end = postponed.positionStart;
343 if (start == postponed.positionStart) {
353 postponed.positionStart++;
355 postponed.positionStart--;
360 } else if (pos < postponed.positionStart) {
363 postponed.positionStart++;
366 postponed.positionStart--;
371 if (postponed.positionStart <= pos) {
379 postponed.positionStart++;
381 postponed.positionStart--;
397 if (op.itemCount == op.positionStart || op.itemCount < 0) {
419 final int end = op.positionStart + op.itemCount;
420 for (int pos = op.positionStart; pos < end; pos++) {
441 mCallback.offsetPositionsForAdd(op.positionStart, op.itemCount);
444 mCallback.offsetPositionsForMove(op.positionStart, op.itemCount);
447 mCallback.offsetPositionsForRemovingLaidOutOrNewView(op.positionStart,
451 mCallback.markViewHoldersUpdated(op.positionStart, op.itemCount, op.payload);
475 if (op.positionStart == position) {
478 if (op.positionStart < position) {
485 } else if (op.positionStart <= position) {
487 if (position < op.positionStart + op.itemCount) {
502 boolean onItemRangeChanged(int positionStart, int itemCount, Object payload) {
506 mPendingUpdates.add(obtainUpdateOp(UpdateOp.UPDATE, positionStart, itemCount, payload));
514 boolean onItemRangeInserted(int positionStart, int itemCount) {
518 mPendingUpdates.add(obtainUpdateOp(UpdateOp.ADD, positionStart, itemCount, null));
526 boolean onItemRangeRemoved(int positionStart, int itemCount) {
530 mPendingUpdates.add(obtainUpdateOp(UpdateOp.REMOVE, positionStart, itemCount, null));
563 mCallback.offsetPositionsForAdd(op.positionStart, op.itemCount);
567 mCallback.offsetPositionsForRemovingInvisible(op.positionStart, op.itemCount);
571 mCallback.markViewHoldersUpdated(op.positionStart, op.itemCount, op.payload);
575 mCallback.offsetPositionsForMove(op.positionStart, op.itemCount);
592 if (op.positionStart <= position) {
597 if (op.positionStart <= position) {
598 final int end = op.positionStart + op.itemCount;
606 if (op.positionStart == position) {
609 if (op.positionStart < position) {
643 int positionStart;
650 UpdateOp(int cmd, int positionStart, int itemCount, Object payload) {
652 this.positionStart = positionStart;
674 + "[" + cmdToString() + ",s:" + positionStart + "c:" + itemCount
692 if (cmd == MOVE && Math.abs(itemCount - positionStart) == 1) {
694 if (itemCount == op.positionStart && positionStart == op.itemCount) {
701 if (positionStart != op.positionStart) {
718 result = 31 * result + positionStart;
725 public UpdateOp obtainUpdateOp(int cmd, int positionStart, int itemCount, Object payload) {
728 op = new UpdateOp(cmd, positionStart, itemCount, payload);
731 op.positionStart = positionStart;
761 void offsetPositionsForRemovingInvisible(int positionStart, int itemCount);
763 void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount);
765 void markViewHoldersUpdated(int positionStart, int itemCount, Object payloads);
771 void offsetPositionsForAdd(int positionStart, int itemCount);