Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerPrepareForDropTest.java126 final int toPos = mLayoutManager.getPosition(onChild); in prepareForDropTest() local
129 final boolean towardsHead = toPos < fromPos; in prepareForDropTest()
152 mTestAdapter.moveInUIThread(fromPos, toPos); in prepareForDropTest()
153 mTestAdapter.notifyItemMoved(fromPos, toPos); in prepareForDropTest()
159 assertSame(fromChild, mRecyclerView.findViewHolderForAdapterPosition(toPos).itemView); in prepareForDropTest()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
DItemTouchHelperTest.java246 final int fromPos, toPos; field in ItemTouchHelperTest.MoveRecord
255 toPos = to.getAdapterPosition(); in MoveRecord()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java1909 final ViewHolder viewHolder, int fromPos, final ViewHolder target, int toPos, int x, in onMoved() argument
1922 recyclerView.scrollToPosition(toPos); in onMoved()
1926 recyclerView.scrollToPosition(toPos); in onMoved()
1933 recyclerView.scrollToPosition(toPos); in onMoved()
1937 recyclerView.scrollToPosition(toPos); in onMoved()