Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DAdapterHelper.java54 private Pools.Pool<UpdateOp> mUpdateOpPool = new Pools.SimplePool<UpdateOp>(UpdateOp.POOL_SIZE);
56 final ArrayList<UpdateOp> mPendingUpdates = new ArrayList<UpdateOp>();
58 final ArrayList<UpdateOp> mPostponedList = new ArrayList<UpdateOp>();
80 AdapterHelper addUpdateOp(UpdateOp... ops) { in addUpdateOp()
95 UpdateOp op = mPendingUpdates.get(i); in preProcess()
97 case UpdateOp.ADD: in preProcess()
100 case UpdateOp.REMOVE: in preProcess()
103 case UpdateOp.UPDATE: in preProcess()
106 case UpdateOp.MOVE: in preProcess()
126 private void applyMove(UpdateOp op) { in applyMove()
[all …]
DOpReorderer.java19 import static com.android.internal.widget.AdapterHelper.UpdateOp.ADD;
20 import static com.android.internal.widget.AdapterHelper.UpdateOp.MOVE;
21 import static com.android.internal.widget.AdapterHelper.UpdateOp.REMOVE;
22 import static com.android.internal.widget.AdapterHelper.UpdateOp.UPDATE;
24 import com.android.internal.widget.AdapterHelper.UpdateOp;
36 void reorderOps(List<UpdateOp> ops) { in reorderOps()
45 private void swapMoveOp(List<UpdateOp> list, int badMove, int next) { in swapMoveOp()
46 final UpdateOp moveOp = list.get(badMove); in swapMoveOp()
47 final UpdateOp nextOp = list.get(next); in swapMoveOp()
61 void swapMoveRemove(List<UpdateOp> list, int movePos, UpdateOp moveOp, in swapMoveRemove()
[all …]
DRecyclerView.java822 public void onDispatchFirstPass(AdapterHelper.UpdateOp op) { in initAdapterManager()
826 void dispatchUpdate(AdapterHelper.UpdateOp op) { in initAdapterManager()
828 case AdapterHelper.UpdateOp.ADD: in initAdapterManager()
831 case AdapterHelper.UpdateOp.REMOVE: in initAdapterManager()
834 case AdapterHelper.UpdateOp.UPDATE: in initAdapterManager()
838 case AdapterHelper.UpdateOp.MOVE: in initAdapterManager()
845 public void onDispatchSecondPass(AdapterHelper.UpdateOp op) { in initAdapterManager()
1600 if (mAdapterHelper.hasAnyUpdateTypes(AdapterHelper.UpdateOp.UPDATE) && !mAdapterHelper in consumePendingUpdateOperations()
1601 .hasAnyUpdateTypes(AdapterHelper.UpdateOp.ADD | AdapterHelper.UpdateOp.REMOVE in consumePendingUpdateOperations()
1602 | AdapterHelper.UpdateOp.MOVE)) { in consumePendingUpdateOperations()