Home
last modified time | relevance | path

Searched refs:targetPosition (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java62 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection() local
66 mListView.setSelection(targetPosition); in testSetSelection()
75 if (child.getId() == targetPosition) { in testSetSelection()
92 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop() local
96 mListView.setSelectionFromTop(targetPosition, 100); in testSetSelectionFromTop()
106 if (child.getId() == targetPosition) { in testSetSelectionFromTop()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchSetSelectionTest.java62 final int targetPosition = mGridView.getAdapter().getCount() / 2; in testSetSelection() local
66 mGridView.setSelection(targetPosition); in testSetSelection()
75 if (child.getId() == targetPosition) { in testSetSelection()
/frameworks/base/core/java/android/widget/
DGallery.java1260 int targetPosition = mSelectedPosition + direction; in moveDirection() local
1262 if (mItemCount > 0 && targetPosition >= 0 && targetPosition < mItemCount) { in moveDirection()
1263 scrollToChild(targetPosition - mFirstPosition); in moveDirection()
DSwitch.java1036 final float targetPosition = newCheckedState ? 1 : 0; in animateThumbToCheckedState() local
1037 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearSmoothScroller.java337 abstract public PointF computeScrollVectorForPosition(int targetPosition); in computeScrollVectorForPosition() argument
DLinearLayoutManager.java428 public PointF computeScrollVectorForPosition(int targetPosition) { in smoothScrollToPosition()
430 .computeScrollVectorForPosition(targetPosition); in smoothScrollToPosition()
437 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument
442 final int direction = targetPosition < firstChildPos != mShouldReverseLayout ? -1 : 1; in computeScrollVectorForPosition()
DStaggeredGridLayoutManager.java1862 public PointF computeScrollVectorForPosition(int targetPosition) {
1863 final int direction = calculateScrollDirectionForPosition(targetPosition);
DRecyclerView.java8905 public void setTargetPosition(int targetPosition) { in setTargetPosition() argument
8906 mTargetPosition = targetPosition; in setTargetPosition()
9158 public void jumpTo(int targetPosition) { in jumpTo() argument
9159 mJumpToPosition = targetPosition; in jumpTo()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java301 final int targetPosition; in keepFocusOnResizeTest() local
303 targetPosition = mLayoutManager.findFirstVisibleItemPosition(); in keepFocusOnResizeTest()
305 targetPosition = mLayoutManager.findLastVisibleItemPosition(); in keepFocusOnResizeTest()
309 .findViewHolderForLayoutPosition(targetPosition); in keepFocusOnResizeTest()
377 .findViewHolderForLayoutPosition(targetPosition); in keepFocusOnResizeTest()
DRecyclerViewLayoutTest.java1329 public PointF computeScrollVectorForPosition(int targetPosition) { in smoothScrollTest()
1358 final int targetPosition = visibleChildCount * (removeItem ? 30 : 4); in smoothScrollTest() local
1362 rv.smoothScrollToPosition(targetPosition); in smoothScrollTest()
1366 Log.d(TAG, "scrolling to target position " + targetPosition); in smoothScrollTest()
1370 final int newTarget = targetPosition - 10; in smoothScrollTest()
1404 rv.findViewHolderForLayoutPosition(targetPosition)); in smoothScrollTest()
3034 public PointF computeScrollVectorForPosition(int targetPosition) {
3100 public PointF computeScrollVectorForPosition(int targetPosition) {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java325 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument
2138 public PointF computeScrollVectorForPosition(int targetPosition) {
2145 final boolean isStart = mReverseFlowPrimary ? targetPosition > firstChildPos
2146 : targetPosition < firstChildPos;