Searched refs:targetPosition (Results 1 – 11 of 11) sorted by relevance
62 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection() local66 mListView.setSelection(targetPosition); in testSetSelection()75 if (child.getId() == targetPosition) { in testSetSelection()92 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop() local96 mListView.setSelectionFromTop(targetPosition, 100); in testSetSelectionFromTop()106 if (child.getId() == targetPosition) { in testSetSelectionFromTop()
62 final int targetPosition = mGridView.getAdapter().getCount() / 2; in testSetSelection() local66 mGridView.setSelection(targetPosition); in testSetSelection()75 if (child.getId() == targetPosition) { in testSetSelection()
1260 int targetPosition = mSelectedPosition + direction; in moveDirection() local1262 if (mItemCount > 0 && targetPosition >= 0 && targetPosition < mItemCount) { in moveDirection()1263 scrollToChild(targetPosition - mFirstPosition); in moveDirection()
1036 final float targetPosition = newCheckedState ? 1 : 0; in animateThumbToCheckedState() local1037 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()
337 abstract public PointF computeScrollVectorForPosition(int targetPosition); in computeScrollVectorForPosition() argument
428 public PointF computeScrollVectorForPosition(int targetPosition) { in smoothScrollToPosition()430 .computeScrollVectorForPosition(targetPosition); in smoothScrollToPosition()437 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument442 final int direction = targetPosition < firstChildPos != mShouldReverseLayout ? -1 : 1; in computeScrollVectorForPosition()
1862 public PointF computeScrollVectorForPosition(int targetPosition) {1863 final int direction = calculateScrollDirectionForPosition(targetPosition);
8905 public void setTargetPosition(int targetPosition) { in setTargetPosition() argument8906 mTargetPosition = targetPosition; in setTargetPosition()9158 public void jumpTo(int targetPosition) { in jumpTo() argument9159 mJumpToPosition = targetPosition; in jumpTo()
301 final int targetPosition; in keepFocusOnResizeTest() local303 targetPosition = mLayoutManager.findFirstVisibleItemPosition(); in keepFocusOnResizeTest()305 targetPosition = mLayoutManager.findLastVisibleItemPosition(); in keepFocusOnResizeTest()309 .findViewHolderForLayoutPosition(targetPosition); in keepFocusOnResizeTest()377 .findViewHolderForLayoutPosition(targetPosition); in keepFocusOnResizeTest()
1329 public PointF computeScrollVectorForPosition(int targetPosition) { in smoothScrollTest()1358 final int targetPosition = visibleChildCount * (removeItem ? 30 : 4); in smoothScrollTest() local1362 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) {
325 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument2138 public PointF computeScrollVectorForPosition(int targetPosition) {2145 final boolean isStart = mReverseFlowPrimary ? targetPosition > firstChildPos2146 : targetPosition < firstChildPos;