Home
last modified time | relevance | path

Searched refs:positionStart (Results 1 – 16 of 16) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DOpReorderer.java67 if (moveOp.positionStart < moveOp.itemCount) { in swapMoveRemove()
69 if (removeOp.positionStart == moveOp.positionStart in swapMoveRemove()
70 && removeOp.itemCount == moveOp.itemCount - moveOp.positionStart) { in swapMoveRemove()
75 if (removeOp.positionStart == moveOp.itemCount + 1 && in swapMoveRemove()
76 removeOp.itemCount == moveOp.positionStart - moveOp.itemCount) { in swapMoveRemove()
82 if (moveOp.itemCount < removeOp.positionStart) { in swapMoveRemove()
83 removeOp.positionStart--; in swapMoveRemove()
84 } else if (moveOp.itemCount < removeOp.positionStart + removeOp.itemCount) { in swapMoveRemove()
98 if (moveOp.positionStart <= removeOp.positionStart) { in swapMoveRemove()
99 removeOp.positionStart++; in swapMoveRemove()
[all …]
DAdapterHelper.java131 int tmpStart = op.positionStart; in applyRemove()
133 int tmpEnd = op.positionStart + op.itemCount; in applyRemove()
135 for (int position = op.positionStart; position < tmpEnd; position++) { in applyRemove()
185 int tmpStart = op.positionStart; in applyUpdate()
187 int tmpEnd = op.positionStart + op.itemCount; in applyUpdate()
189 for (int position = op.positionStart; position < tmpEnd; position++) { in applyUpdate()
242 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders()
244 Log.d(TAG, "pos:" + op.positionStart + ",updatedPos:" + tmpStart); in dispatchAndUpdateViewHolders()
247 int offsetPositionForPartial = op.positionStart; in dispatchAndUpdateViewHolders()
260 final int pos = op.positionStart + (positionMultiplier * p); in dispatchAndUpdateViewHolders()
[all …]
DStaggeredGridLayoutManager.java1326 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {
1327 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.REMOVE);
1331 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) {
1332 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.ADD);
1347 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount,
1349 handleUpdate(positionStart, itemCount, AdapterHelper.UpdateOp.UPDATE);
1355 private void handleUpdate(int positionStart, int itemCountOrToPosition, int cmd) {
1361 if (positionStart < itemCountOrToPosition) {
1363 affectedRangeStart = positionStart;
1365 affectedRangeEnd = positionStart + 1;
[all …]
DRecyclerView.java662 … public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) { in initAdapterManager()
663 offsetPositionRecordsForRemove(positionStart, itemCount, false); in initAdapterManager()
668 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in initAdapterManager()
669 viewRangeUpdate(positionStart, itemCount, payload); in initAdapterManager()
681 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
684 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
687 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, in initAdapterManager()
691 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); in initAdapterManager()
702 public void offsetPositionsForAdd(int positionStart, int itemCount) { in initAdapterManager()
703 offsetPositionRecordsForInsert(positionStart, itemCount); in initAdapterManager()
[all …]
DGridLayoutManager.java197 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() argument
207 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsRemoved() argument
212 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount, in onItemsUpdated() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DObjectAdapter.java48 public void onItemRangeChanged(int positionStart, int itemCount) { in onItemRangeChanged() argument
58 public void onItemRangeInserted(int positionStart, int itemCount) { in onItemRangeInserted() argument
68 public void onItemRangeRemoved(int positionStart, int itemCount) { in onItemRangeRemoved() argument
81 public void notifyItemRangeChanged(int positionStart, int itemCount) { in notifyItemRangeChanged() argument
83 mObservers.get(i).onItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
87 public void notifyItemRangeInserted(int positionStart, int itemCount) { in notifyItemRangeInserted() argument
89 mObservers.get(i).onItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
93 public void notifyItemRangeRemoved(int positionStart, int itemCount) { in notifyItemRangeRemoved() argument
95 mObservers.get(i).onItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
179 final protected void notifyItemRangeChanged(int positionStart, int itemCount) { in notifyItemRangeChanged() argument
[all …]
DItemBridgeAdapter.java151 public void onItemRangeChanged(int positionStart, int itemCount) {
152 ItemBridgeAdapter.this.notifyItemRangeChanged(positionStart, itemCount);
155 public void onItemRangeInserted(int positionStart, int itemCount) {
156 ItemBridgeAdapter.this.notifyItemRangeInserted(positionStart, itemCount);
159 public void onItemRangeRemoved(int positionStart, int itemCount) {
160 ItemBridgeAdapter.this.notifyItemRangeRemoved(positionStart, itemCount);
DSparseArrayObjectAdapter.java71 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { in notifyArrayItemRangeChanged() argument
72 notifyItemRangeChanged(positionStart, itemCount); in notifyArrayItemRangeChanged()
DArrayObjectAdapter.java78 public void notifyArrayItemRangeChanged(int positionStart, int itemCount) { in notifyArrayItemRangeChanged() argument
79 notifyItemRangeChanged(positionStart, itemCount); in notifyArrayItemRangeChanged()
DControlBarPresenter.java110 public void onItemRangeChanged(int positionStart, int itemCount) { in ViewHolder()
113 bindControlToAction(positionStart + i, mPresenter); in ViewHolder()
DPlaybackControlsPresenter.java82 public void onItemRangeChanged(int positionStart, int itemCount) { in ViewHolder()
85 bindControlToAction(positionStart + i, mPresenter); in ViewHolder()
DGridLayoutManager.java2184 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) {
2186 + positionStart + " itemCount " + itemCount);
2189 if (positionStart <= pos) {
2204 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {
2206 + positionStart + " itemCount " + itemCount);
2209 if (positionStart <= pos) {
2210 if (positionStart + itemCount > pos) {
2243 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) {
2245 + positionStart + " itemCount " + itemCount);
2246 for (int i = positionStart, end = positionStart + itemCount; i < end; i++) {
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DObservableList.java66 public abstract void onItemRangeChanged(T sender, int positionStart, int itemCount); in onItemRangeChanged() argument
74 public abstract void onItemRangeInserted(T sender, int positionStart, int itemCount); in onItemRangeInserted() argument
92 public abstract void onItemRangeRemoved(T sender, int positionStart, int itemCount); in onItemRangeRemoved() argument
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DAdapterHelperTest.java92 public void offsetPositionsForRemovingInvisible(int positionStart, int itemCount) { in cleanState()
93 final int positionEnd = positionStart + itemCount; in cleanState()
97 } else if (holder.mPosition >= positionStart) { in cleanState()
98 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, true); in cleanState()
104 public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, in cleanState()
106 final int positionEnd = positionStart + itemCount; in cleanState()
110 } else if (holder.mPosition >= positionStart) { in cleanState()
111 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, false); in cleanState()
117 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in cleanState()
118 final int positionEnd = positionStart + itemCount; in cleanState()
[all …]
DOpReorderTest.java386 items.add(op.positionStart + i, newItem); in apply()
391 mRemovedItems.add(items.remove(op.positionStart)); in apply()
395 items.add(op.itemCount, items.remove(op.positionStart)); in apply()
399 final int index = op.positionStart + i; in apply()
410 copy.add(new UpdateOp(op.cmd, op.positionStart, op.itemCount, null)); in rewriteOps()
/frameworks/data-binding/library/src/main/java/android/databinding/
DViewDataBinding.java867 public void onItemRangeChanged(ObservableList sender, int positionStart, int itemCount) { in onItemRangeChanged() argument
872 public void onItemRangeInserted(ObservableList sender, int positionStart, int itemCount) { in onItemRangeInserted() argument
883 public void onItemRangeRemoved(ObservableList sender, int positionStart, int itemCount) { in onItemRangeRemoved() argument