Home
last modified time | relevance | path

Searched refs:targetPos (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DScrollToPositionWithAutoMeasure.java76 int targetPos = lastChildPos * 2; in test()
77 llm.scrollToPosition(targetPos); in test()
81 assertThat(recyclerView.findViewHolderForAdapterPosition(targetPos), in test()
85 recyclerView.findViewHolderForAdapterPosition(targetPos).itemView); in test()
91 assertThat(recyclerView.findViewHolderForAdapterPosition(targetPos), in test()
94 recyclerView.findViewHolderForAdapterPosition(targetPos); in test()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearLayoutManager.java1897 final int targetPos = getPosition(target); in prepareForDrop() local
1898 final int dropDirection = myPos < targetPos ? LayoutState.ITEM_DIRECTION_TAIL : in prepareForDrop()
1902 scrollToPositionWithOffset(targetPos, in prepareForDrop()
1907 scrollToPositionWithOffset(targetPos, in prepareForDrop()
1913 scrollToPositionWithOffset(targetPos, mOrientationHelper.getDecoratedStart(target)); in prepareForDrop()
1915 scrollToPositionWithOffset(targetPos, in prepareForDrop()
DStaggeredGridLayoutManager.java1401 final int targetPos = state.getTargetScrollPosition();
1402 if (targetPos != NO_POSITION) {
1403 if (mShouldReverseLayout == targetPos < anchorPosition) {
/frameworks/base/core/java/android/widget/
DAbsListView.java7381 private void scrollToVisible(int targetPos, int boundPos, int duration) {
7388 if (targetPos < firstPos || targetPos > lastPos) {
7389 Log.w(TAG, "scrollToVisible called with targetPos " + targetPos +
7397 final View targetChild = getChildAt(targetPos - firstPos);