Lines Matching defs:positionStart
1449 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {
1450 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.REMOVE);
1454 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) {
1455 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.ADD);
1470 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount,
1472 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.UPDATE);
1478 private void handleUpdate(int positionStart, int itemCountOrToPosition, int cmd) {
1484 if (positionStart < itemCountOrToPosition) {
1486 affectedRangeStart = positionStart;
1488 affectedRangeEnd = positionStart + 1;
1492 affectedRangeStart = positionStart;
1493 affectedRangeEnd = positionStart + itemCountOrToPosition;
1499 mLazySpanLookup.offsetForAddition(positionStart, itemCountOrToPosition);
1502 mLazySpanLookup.offsetForRemoval(positionStart, itemCountOrToPosition);
1506 mLazySpanLookup.offsetForRemoval(positionStart, 1);
2701 void offsetForRemoval(int positionStart, int itemCount) {
2702 if (mData == null || positionStart >= mData.length) {
2705 ensureSize(positionStart + itemCount);
2706 System.arraycopy(mData, positionStart + itemCount, mData, positionStart,
2707 mData.length - positionStart - itemCount);
2710 offsetFullSpansForRemoval(positionStart, itemCount);
2713 private void offsetFullSpansForRemoval(int positionStart, int itemCount) {
2717 final int end = positionStart + itemCount;
2720 if (fsi.mPosition < positionStart) {
2731 void offsetForAddition(int positionStart, int itemCount) {
2732 if (mData == null || positionStart >= mData.length) {
2735 ensureSize(positionStart + itemCount);
2736 System.arraycopy(mData, positionStart, mData, positionStart + itemCount,
2737 mData.length - positionStart - itemCount);
2738 Arrays.fill(mData, positionStart, positionStart + itemCount,
2740 offsetFullSpansForAddition(positionStart, itemCount);
2743 private void offsetFullSpansForAddition(int positionStart, int itemCount) {
2749 if (fsi.mPosition < positionStart) {