Home
last modified time | relevance | path

Searched refs:mPendingMoves (Results 1 – 2 of 2) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DDefaultItemAnimator.java41 private ArrayList<MoveInfo> mPendingMoves = new ArrayList<>(); field in DefaultItemAnimator
99 boolean movesPending = !mPendingMoves.isEmpty(); in runPendingAnimations()
114 moves.addAll(mPendingMoves); in runPendingAnimations()
116 mPendingMoves.clear(); in runPendingAnimations()
267 mPendingMoves.add(new MoveInfo(holder, fromX, fromY, toX, toY)); in animateMove()
433 for (int i = mPendingMoves.size() - 1; i >= 0; i--) { in endAnimation()
434 MoveInfo moveInfo = mPendingMoves.get(i); in endAnimation()
439 mPendingMoves.remove(i); in endAnimation()
522 !mPendingMoves.isEmpty() || in isRunning()
546 int count = mPendingMoves.size(); in endAnimations()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java262 private int mPendingMoves; field in GridLayoutManager.PendingMoveSmoothScroller
265 mPendingMoves = initialPendingMoves; in PendingMoveSmoothScroller()
271 if (mPendingMoves < MAX_PENDING_MOVES) { in increasePendingMoves()
272 mPendingMoves++; in increasePendingMoves()
277 if (mPendingMoves > -MAX_PENDING_MOVES) { in decreasePendingMoves()
278 mPendingMoves--; in decreasePendingMoves()
288 if (mStaggeredGrid || mPendingMoves == 0) { in consumePendingMovesBeforeLayout()
292 int startPos = mPendingMoves > 0 ? mFocusPosition + mNumRows : in consumePendingMovesBeforeLayout()
294 for (int pos = startPos; mPendingMoves != 0; in consumePendingMovesBeforeLayout()
295 pos = mPendingMoves > 0 ? pos + mNumRows: pos - mNumRows) { in consumePendingMovesBeforeLayout()
[all …]