Home
last modified time | relevance | path

Searched refs:updateOp (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DOpReorderer.java181 UpdateOp updateOp) { in swapMoveUpdate() argument
185 if (moveOp.itemCount < updateOp.positionStart) { in swapMoveUpdate()
186 updateOp.positionStart--; in swapMoveUpdate()
187 } else if (moveOp.itemCount < updateOp.positionStart + updateOp.itemCount) { in swapMoveUpdate()
189 updateOp.itemCount--; in swapMoveUpdate()
190 extraUp1 = mCallback.obtainUpdateOp(UPDATE, moveOp.positionStart, 1, updateOp.payload); in swapMoveUpdate()
193 if (moveOp.positionStart <= updateOp.positionStart) { in swapMoveUpdate()
194 updateOp.positionStart++; in swapMoveUpdate()
195 } else if (moveOp.positionStart < updateOp.positionStart + updateOp.itemCount) { in swapMoveUpdate()
196 final int remaining = updateOp.positionStart + updateOp.itemCount in swapMoveUpdate()
[all …]
DAdapterHelper.java238 for (UpdateOp updateOp : mPostponedList) { in dispatchAndUpdateViewHolders()
239 Log.d(TAG, updateOp.toString()); in dispatchAndUpdateViewHolders()
308 for (UpdateOp updateOp : mPostponedList) { in dispatchAndUpdateViewHolders()
309 Log.d(TAG, updateOp.toString()); in dispatchAndUpdateViewHolders()
390 for (UpdateOp updateOp : mPostponedList) { in updatePositionWithPostponed()
391 Log.d(TAG, updateOp.toString()); in updatePositionWithPostponed()
769 void onDispatchFirstPass(UpdateOp updateOp); in onDispatchFirstPass() argument
771 void onDispatchSecondPass(UpdateOp updateOp); in onDispatchSecondPass() argument
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DAdapterHelperTest.java130 public void onDispatchFirstPass(AdapterHelper.UpdateOp updateOp) { in cleanState()
132 log("first pass:" + updateOp.toString()); in cleanState()
135 for (int i = 0; i < updateOp.itemCount; i++) { in cleanState()
138 viewHolder.getLayoutPosition() == updateOp.positionStart + i); in cleanState()
142 mFirstPassUpdates.add(updateOp); in cleanState()
146 public void onDispatchSecondPass(AdapterHelper.UpdateOp updateOp) { in cleanState()
148 log("second pass:" + updateOp.toString()); in cleanState()
150 mSecondPassUpdates.add(updateOp); in cleanState()