Home
last modified time | relevance | path

Searched refs:positionStart (Results 1 – 22 of 22) 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.java135 int tmpStart = op.positionStart; in applyRemove()
137 int tmpEnd = op.positionStart + op.itemCount; in applyRemove()
139 for (int position = op.positionStart; position < tmpEnd; position++) { in applyRemove()
189 int tmpStart = op.positionStart; in applyUpdate()
191 int tmpEnd = op.positionStart + op.itemCount; in applyUpdate()
193 for (int position = op.positionStart; position < tmpEnd; position++) { in applyUpdate()
246 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders()
248 Log.d(TAG, "pos:" + op.positionStart + ",updatedPos:" + tmpStart); in dispatchAndUpdateViewHolders()
251 int offsetPositionForPartial = op.positionStart; in dispatchAndUpdateViewHolders()
264 final int pos = op.positionStart + (positionMultiplier * p); in dispatchAndUpdateViewHolders()
[all …]
DStaggeredGridLayoutManager.java1449 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;
[all …]
DRecyclerView.java756 … public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, int itemCount) { in initAdapterManager()
757 offsetPositionRecordsForRemove(positionStart, itemCount, false); in initAdapterManager()
762 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in initAdapterManager()
763 viewRangeUpdate(positionStart, itemCount, payload); in initAdapterManager()
775 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
778 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager()
781 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, in initAdapterManager()
785 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); in initAdapterManager()
796 public void offsetPositionsForAdd(int positionStart, int itemCount) { in initAdapterManager()
797 offsetPositionRecordsForInsert(positionStart, itemCount); in initAdapterManager()
[all …]
DGridLayoutManager.java199 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsAdded() argument
209 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) { in onItemsRemoved() argument
214 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.java2334 public void onItemsAdded(RecyclerView recyclerView, int positionStart, int itemCount) {
2336 + positionStart + " itemCount " + itemCount);
2340 if (positionStart <= pos) {
2355 public void onItemsRemoved(RecyclerView recyclerView, int positionStart, int itemCount) {
2357 + positionStart + " itemCount " + itemCount);
2361 if (positionStart <= pos) {
2362 if (positionStart + itemCount > pos) {
2395 public void onItemsUpdated(RecyclerView recyclerView, int positionStart, int itemCount) {
2397 + positionStart + " itemCount " + itemCount);
2398 for (int i = positionStart, end = positionStart + itemCount; i < end; i++) {
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DSectionBreakDocumentsAdapterWrapper.java193 public void onItemRangeChanged(int positionStart, int itemCount) {
197 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) {
199 notifyItemRangeChanged(toViewPosition(positionStart), itemCount, payload);
202 public void onItemRangeInserted(int positionStart, int itemCount) {
204 if (positionStart < mBreakPosition) {
207 notifyItemRangeInserted(toViewPosition(positionStart), itemCount);
210 public void onItemRangeRemoved(int positionStart, int itemCount) {
212 if (positionStart < mBreakPosition) {
215 notifyItemRangeRemoved(toViewPosition(positionStart), itemCount);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java76 public void onItemRangeChanged(int positionStart, int itemCount) {
77 notifyItemRangeChanged(positionStart, itemCount);
81 public void onItemRangeInserted(int positionStart, int itemCount) {
82 notifyItemRangeInserted(positionStart, itemCount);
92 public void onItemRangeRemoved(int positionStart, int itemCount) {
93 notifyItemRangeRemoved(positionStart, itemCount);
/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.java94 public void offsetPositionsForRemovingInvisible(int positionStart, int itemCount) { in cleanState()
95 final int positionEnd = positionStart + itemCount; in cleanState()
99 } else if (holder.mPosition >= positionStart) { in cleanState()
100 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, true); in cleanState()
106 public void offsetPositionsForRemovingLaidOutOrNewView(int positionStart, in cleanState()
108 final int positionEnd = positionStart + itemCount; in cleanState()
112 } else if (holder.mPosition >= positionStart) { in cleanState()
113 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, false); in cleanState()
119 public void markViewHoldersUpdated(int positionStart, int itemCount, Object payload) { in cleanState()
120 final int positionEnd = positionStart + itemCount; in cleanState()
[all …]
DOpReorderTest.java388 items.add(op.positionStart + i, newItem); in apply()
393 mRemovedItems.add(items.remove(op.positionStart)); in apply()
397 items.add(op.itemCount, items.remove(op.positionStart)); in apply()
401 final int index = op.positionStart + i; in apply()
412 copy.add(new UpdateOp(op.cmd, op.positionStart, op.itemCount, null)); in rewriteOps()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceFragmentCompat.java730 public void onItemRangeChanged(int positionStart, int itemCount) { in onItemRangeChanged() argument
735 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { in onItemRangeChanged() argument
740 public void onItemRangeInserted(int positionStart, int itemCount) { in onItemRangeInserted() argument
745 public void onItemRangeRemoved(int positionStart, int itemCount) { in onItemRangeRemoved() argument
/frameworks/support/v14/preference/src/android/support/v14/preference/
DPreferenceFragment.java747 public void onItemRangeChanged(int positionStart, int itemCount) { in onItemRangeChanged() argument
752 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { in onItemRangeChanged() argument
757 public void onItemRangeInserted(int positionStart, int itemCount) { in onItemRangeInserted() argument
762 public void onItemRangeRemoved(int positionStart, int itemCount) { in onItemRangeRemoved() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBaseRowSupportFragment.java99 public void onItemRangeInserted(int positionStart, int itemCount) { in onItemRangeInserted() argument
DBaseRowFragment.java97 public void onItemRangeInserted(int positionStart, int itemCount) { in onItemRangeInserted() argument
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java1193 public void onItemRangeChanged(ObservableList sender, int positionStart, int itemCount) { in onItemRangeChanged() argument
1198 public void onItemRangeInserted(ObservableList sender, int positionStart, int itemCount) { in onItemRangeInserted() argument
1209 public void onItemRangeRemoved(ObservableList sender, int positionStart, int itemCount) { in onItemRangeRemoved() argument