/frameworks/base/core/java/com/android/internal/widget/ |
H A D | OpReorderer.java | 68 if (moveOp.positionStart < moveOp.itemCount) { 70 if (removeOp.positionStart == moveOp.positionStart 71 && removeOp.itemCount == moveOp.itemCount - moveOp.positionStart) { 76 if (removeOp.positionStart == moveOp.itemCount + 1 77 && removeOp.itemCount == moveOp.positionStart - moveOp.itemCount) { 83 if (moveOp.itemCount < removeOp.positionStart) { 84 removeOp.positionStart--; 85 } else if (moveOp.itemCount < removeOp.positionStart + removeOp.itemCount) { 99 if (moveOp.positionStart < [all...] |
H A D | AdapterHelper.java | 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 502 onItemRangeChanged(int positionStart, int itemCount, Object payload) argument 514 onItemRangeInserted(int positionStart, int itemCount) argument 526 onItemRangeRemoved(int positionStart, int itemCount) argument 643 int positionStart; field in class:AdapterHelper.UpdateOp 650 UpdateOp(int cmd, int positionStart, int itemCount, Object payload) argument 725 obtainUpdateOp(int cmd, int positionStart, int itemCount, Object payload) argument 761 offsetPositionsForRemovingInvisible(int positionStart, int itemCount) argument 763 offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) argument 765 markViewHoldersUpdated(int positionStart, int itemCount, Object payloads) argument 771 offsetPositionsForAdd(int positionStart, int itemCount) argument [all...] |
H A D | RecyclerView.java | 805 int positionStart, int itemCount) { 806 offsetPositionRecordsForRemove(positionStart, itemCount, false); 811 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { 812 viewRangeUpdate(positionStart, itemCount, payload); 824 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); 827 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); 830 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, 834 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); 845 public void offsetPositionsForAdd(int positionStart, int itemCount) { 846 offsetPositionRecordsForInsert(positionStart, itemCoun 3984 offsetPositionRecordsForInsert(int positionStart, int itemCount) argument 4001 offsetPositionRecordsForRemove(int positionStart, int itemCount, boolean applyToPreLayout) argument 4037 viewRangeUpdate(int positionStart, int itemCount, Object payload) argument 4888 onItemRangeChanged(int positionStart, int itemCount, Object payload) argument 4896 onItemRangeInserted(int positionStart, int itemCount) argument 4904 onItemRangeRemoved(int positionStart, int itemCount) argument 6107 viewRangeUpdate(int positionStart, int itemCount) argument 6644 notifyItemRangeChanged(int positionStart, int itemCount) argument 6674 notifyItemRangeChanged(int positionStart, int itemCount, Object payload) argument 6725 notifyItemRangeInserted(int positionStart, int itemCount) argument 6759 notifyItemRangeRemoved(int positionStart, int itemCount) argument 9067 onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) argument 9077 onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) argument 9089 onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) argument 9101 onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, Object payload) argument 10568 onItemRangeChanged(int positionStart, int itemCount) argument 10572 onItemRangeChanged(int positionStart, int itemCount, Object payload) argument 10578 onItemRangeInserted(int positionStart, int itemCount) argument 10582 onItemRangeRemoved(int positionStart, int itemCount) argument 11045 notifyItemRangeChanged(int positionStart, int itemCount) argument 11049 notifyItemRangeChanged(int positionStart, int itemCount, Object payload) argument 11059 notifyItemRangeInserted(int positionStart, int itemCount) argument 11069 notifyItemRangeRemoved(int positionStart, int itemCount) argument [all...] |
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | OpReorderer.java | 61 if (moveOp.positionStart < moveOp.itemCount) { 63 if (removeOp.positionStart == moveOp.positionStart 64 && removeOp.itemCount == moveOp.itemCount - moveOp.positionStart) { 69 if (removeOp.positionStart == moveOp.itemCount + 1 70 && removeOp.itemCount == moveOp.positionStart - moveOp.itemCount) { 76 if (moveOp.itemCount < removeOp.positionStart) { 77 removeOp.positionStart--; 78 } else if (moveOp.itemCount < removeOp.positionStart + removeOp.itemCount) { 92 if (moveOp.positionStart < [all...] |
H A D | AdapterHelper.java | 134 int tmpStart = op.positionStart; 136 int tmpEnd = op.positionStart + op.itemCount; 138 for (int position = op.positionStart; position < tmpEnd; position++) { 188 int tmpStart = op.positionStart; 190 int tmpEnd = op.positionStart + op.itemCount; 192 for (int position = op.positionStart; position < tmpEnd; position++) { 245 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); 247 Log.d(TAG, "pos:" + op.positionStart + ",updatedPos:" + tmpStart); 250 int offsetPositionForPartial = op.positionStart; 263 final int pos = op.positionStart 503 onItemRangeChanged(int positionStart, int itemCount, Object payload) argument 515 onItemRangeInserted(int positionStart, int itemCount) argument 527 onItemRangeRemoved(int positionStart, int itemCount) argument 644 int positionStart; field in class:AdapterHelper.UpdateOp 651 UpdateOp(int cmd, int positionStart, int itemCount, Object payload) argument 726 obtainUpdateOp(int cmd, int positionStart, int itemCount, Object payload) argument 762 offsetPositionsForRemovingInvisible(int positionStart, int itemCount) argument 764 offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) argument 766 markViewHoldersUpdated(int positionStart, int itemCount, Object payloads) argument 772 offsetPositionsForAdd(int positionStart, int itemCount) argument [all...] |
H A D | StaggeredGridLayoutManager.java | 1503 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { argument 1504 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.REMOVE); 1508 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { argument 1509 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.ADD); 1524 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, argument 1526 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.UPDATE); 1532 private void handleUpdate(int positionStart, int itemCountOrToPosition, int cmd) { argument 1538 if (positionStart < itemCountOrToPosition) { 1540 affectedRangeStart = positionStart; 1542 affectedRangeEnd = positionStart 2923 offsetForRemoval(int positionStart, int itemCount) argument 2935 offsetFullSpansForRemoval(int positionStart, int itemCount) argument 2953 offsetForAddition(int positionStart, int itemCount) argument 2965 offsetFullSpansForAddition(int positionStart, int itemCount) argument [all...] |
H A D | RecyclerView.java | 944 int positionStart, int itemCount) { 945 offsetPositionRecordsForRemove(positionStart, itemCount, false); 951 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { 952 viewRangeUpdate(positionStart, itemCount, payload); 964 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); 967 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); 970 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, 974 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); 985 public void offsetPositionsForAdd(int positionStart, int itemCount) { 986 offsetPositionRecordsForInsert(positionStart, itemCoun 4342 offsetPositionRecordsForInsert(int positionStart, int itemCount) argument 4359 offsetPositionRecordsForRemove(int positionStart, int itemCount, boolean applyToPreLayout) argument 4395 viewRangeUpdate(int positionStart, int itemCount, Object payload) argument 5245 onItemRangeChanged(int positionStart, int itemCount, Object payload) argument 5253 onItemRangeInserted(int positionStart, int itemCount) argument 5261 onItemRangeRemoved(int positionStart, int itemCount) argument 6545 viewRangeUpdate(int positionStart, int itemCount) argument 7085 notifyItemRangeChanged(int positionStart, int itemCount) argument 7115 notifyItemRangeChanged(int positionStart, int itemCount, @Nullable Object payload) argument 7167 notifyItemRangeInserted(int positionStart, int itemCount) argument 7201 notifyItemRangeRemoved(int positionStart, int itemCount) argument 9774 onItemsAdded(@onNull RecyclerView recyclerView, int positionStart, int itemCount) argument 9785 onItemsRemoved(@onNull RecyclerView recyclerView, int positionStart, int itemCount) argument 9798 onItemsUpdated(@onNull RecyclerView recyclerView, int positionStart, int itemCount) argument 9811 onItemsUpdated(@onNull RecyclerView recyclerView, int positionStart, int itemCount, @Nullable Object payload) argument 11411 onItemRangeChanged(int positionStart, int itemCount) argument 11415 onItemRangeChanged(int positionStart, int itemCount, @Nullable Object payload) argument 11421 onItemRangeInserted(int positionStart, int itemCount) argument 11425 onItemRangeRemoved(int positionStart, int itemCount) argument 11955 notifyItemRangeChanged(int positionStart, int itemCount) argument 11959 notifyItemRangeChanged(int positionStart, int itemCount, @Nullable Object payload) argument 11970 notifyItemRangeInserted(int positionStart, int itemCount) argument 11980 notifyItemRangeRemoved(int positionStart, int itemCount) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
H A D | ListRowDataAdapter.java | 78 void doNotify(int eventType, int positionStart, int itemCount) { argument 81 notifyItemRangeChanged(positionStart, itemCount); 84 notifyItemRangeInserted(positionStart, itemCount); 87 notifyItemRangeRemoved(positionStart, itemCount); 103 public void onItemRangeChanged(int positionStart, int itemCount) { argument 104 if (positionStart <= mLastVisibleRowIndex) { 105 onEventFired(ON_ITEM_RANGE_CHANGED, positionStart, 106 Math.min(itemCount, mLastVisibleRowIndex - positionStart + 1)); 111 public void onItemRangeInserted(int positionStart, int itemCount) { argument 112 if (positionStart < 127 onItemRangeRemoved(int positionStart, int itemCount) argument 150 onEventFired(int eventType, int positionStart, int itemCount) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | ObjectAdapter.java | 49 * @param positionStart The position of the first item that changed. 52 public void onItemRangeChanged(int positionStart, int itemCount) { argument 60 * @param positionStart The position of the first item that changed. 64 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { argument 71 * @param positionStart The position of the first inserted item. 74 public void onItemRangeInserted(int positionStart, int itemCount) { argument 91 * @param positionStart The position of the first removed item. 94 public void onItemRangeRemoved(int positionStart, int itemCount) { argument 110 public void notifyItemRangeChanged(int positionStart, int itemCount) { argument 112 mObservers.get(i).onItemRangeChanged(positionStart, itemCoun 116 notifyItemRangeChanged(int positionStart, int itemCount, Object payload) argument 122 notifyItemRangeInserted(int positionStart, int itemCount) argument 128 notifyItemRangeRemoved(int positionStart, int itemCount) argument 134 notifyItemMoved(int positionStart, int toPosition) argument 238 notifyItemRangeChanged(int positionStart, int itemCount) argument 249 notifyItemRangeChanged(int positionStart, int itemCount, Object payload) argument 259 notifyItemRangeInserted(int positionStart, int itemCount) argument 269 notifyItemRangeRemoved(int positionStart, int itemCount) argument [all...] |
H A D | SparseArrayObjectAdapter.java | 68 * @param positionStart The position of first item that has changed. 71 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { argument 72 notifyItemRangeChanged(positionStart, itemCount);
|
H A D | ItemBridgeAdapter.java | 166 public void onItemRangeChanged(int positionStart, int itemCount) { 167 ItemBridgeAdapter.this.notifyItemRangeChanged(positionStart, itemCount); 171 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { 172 ItemBridgeAdapter.this.notifyItemRangeChanged(positionStart, itemCount, payload); 176 public void onItemRangeInserted(int positionStart, int itemCount) { 177 ItemBridgeAdapter.this.notifyItemRangeInserted(positionStart, itemCount); 181 public void onItemRangeRemoved(int positionStart, int itemCount) { 182 ItemBridgeAdapter.this.notifyItemRangeRemoved(positionStart, itemCount);
|
H A D | ArrayObjectAdapter.java | 90 * @param positionStart The position of first item that has changed. 93 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { argument 94 notifyItemRangeChanged(positionStart, itemCount);
|
H A D | ControlBarPresenter.java | 111 public void onItemRangeChanged(int positionStart, int itemCount) { 114 bindControlToAction(positionStart + i, mPresenter);
|
H A D | PlaybackControlsPresenter.java | 82 public void onItemRangeChanged(int positionStart, int itemCount) { 85 bindControlToAction(positionStart + i, mPresenter);
|
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/ |
H A D | ObservableList.java | 63 * @param positionStart The starting index that has changed. 66 public abstract void onItemRangeChanged(T sender, int positionStart, int itemCount); argument 71 * @param positionStart The insertion index 74 public abstract void onItemRangeInserted(T sender, int positionStart, int itemCount); argument 89 * @param positionStart The starting index of the deleted items. 92 public abstract void onItemRangeRemoved(T sender, int positionStart, int itemCount); argument
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ItemHierarchy.java | 48 void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount); argument 53 void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount); argument 64 void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount); argument
|
H A D | ItemAdapter.java | 93 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 98 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 109 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument
|
H A D | ItemGroup.java | 227 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 231 notifyItemRangeChanged(childPosition + positionStart, itemCount); 238 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 242 notifyItemRangeInserted(childPosition + positionStart, itemCount); 262 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 266 notifyItemRangeRemoved(childPosition + positionStart, itemCount);
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
H A D | RecyclerItemAdapter.java | 165 public void onItemRangeChanged(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 166 notifyItemRangeChanged(positionStart, itemCount); 170 public void onItemRangeInserted(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 171 notifyItemRangeInserted(positionStart, itemCount); 193 public void onItemRangeRemoved(ItemHierarchy itemHierarchy, int positionStart, int itemCount) { argument 194 notifyItemRangeRemoved(positionStart, itemCount);
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/ |
H A D | HeaderRecyclerView.java | 79 public void onItemRangeChanged(int positionStart, int itemCount) { 81 positionStart++; 83 notifyItemRangeChanged(positionStart, itemCount); 87 public void onItemRangeInserted(int positionStart, int itemCount) { 89 positionStart++; 91 notifyItemRangeInserted(positionStart, itemCount); 107 public void onItemRangeRemoved(int positionStart, int itemCount) { 109 positionStart++; 111 notifyItemRangeRemoved(positionStart, itemCount);
|
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/ |
H A D | AdapterHelperTest.java | 101 public void offsetPositionsForRemovingInvisible(int positionStart, int itemCount) { 102 final int positionEnd = positionStart + itemCount; 106 } else if (holder.mPosition >= positionStart) { 107 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, true); 113 public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, 115 final int positionEnd = positionStart + itemCount; 119 } else if (holder.mPosition >= positionStart) { 120 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, false); 126 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { 127 final int positionEnd = positionStart [all...] |
H A D | OpReorderTest.java | 391 items.add(op.positionStart + i, newItem); 396 mRemovedItems.add(items.remove(op.positionStart)); 400 items.add(op.itemCount, items.remove(op.positionStart)); 404 final int index = op.positionStart + i; 415 copy.add(new UpdateOp(op.cmd, op.positionStart, op.itemCount, null));
|
/frameworks/support/preference/src/main/java/androidx/preference/ |
H A D | PreferenceFragment.java | 747 public void onItemRangeChanged(int positionStart, int itemCount) { argument 752 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { argument 757 public void onItemRangeInserted(int positionStart, int itemCount) { argument 762 public void onItemRangeRemoved(int positionStart, int itemCount) { argument
|
H A D | PreferenceFragmentCompat.java | 747 public void onItemRangeChanged(int positionStart, int itemCount) { argument 752 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { argument 757 public void onItemRangeInserted(int positionStart, int itemCount) { argument 762 public void onItemRangeRemoved(int positionStart, int itemCount) { argument
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/ |
H A D | AnimatedRecyclerView.java | 652 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { argument 653 if (positionStart < mFirstPosition) { 659 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { argument 660 if (positionStart < mFirstPosition) {
|