Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java64 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelection() local
68 mListView.setSelection(targetPosition); in testSetSelection()
77 if (child.getId() == targetPosition) { in testSetSelection()
94 final int targetPosition = mListView.getAdapter().getCount() / 2; in testSetSelectionFromTop() local
98 mListView.setSelectionFromTop(targetPosition, 100); in testSetSelectionFromTop()
108 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/com/android/internal/widget/
DLinearSmoothScroller.java351 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument
355 .computeScrollVectorForPosition(targetPosition); in computeScrollVectorForPosition()
DLinearLayoutManager.java443 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument
448 final int direction = targetPosition < firstChildPos != mShouldReverseLayout ? -1 : 1; in computeScrollVectorForPosition()
DRecyclerView.java10645 public void setTargetPosition(int targetPosition) { in setTargetPosition() argument
10646 mTargetPosition = targetPosition; in setTargetPosition()
10898 public void jumpTo(int targetPosition) { in jumpTo() argument
10899 mJumpToPosition = targetPosition; in jumpTo()
11028 PointF computeScrollVectorForPosition(int targetPosition); in computeScrollVectorForPosition() argument
/frameworks/base/services/core/java/com/android/server/wm/
DTaskStack.java609 final int targetPosition = findPositionForTask(child, position, showForAllUsers, in positionChildAt() local
611 super.positionChildAt(targetPosition, child, includingParents); in positionChildAt()
617 final int toTop = targetPosition == mChildren.size() - 1 ? 1 : 0; in positionChildAt()
618 EventLog.writeEvent(EventLogTags.WM_TASK_MOVED, child.mTaskId, toTop, targetPosition); in positionChildAt()
638 private int findPositionForTask(Task task, int targetPosition, boolean showForAllUsers, in findPositionForTask() argument
654 if (targetPosition == POSITION_BOTTOM && minPosition == 0) { in findPositionForTask()
656 } else if (targetPosition == POSITION_TOP in findPositionForTask()
661 return Math.min(Math.max(targetPosition, minPosition), maxPosition); in findPositionForTask()
DDisplayContent.java4287 final int targetPosition = findPositionForStack(position, child, false /* adding */); in positionChildAt() local
4288 super.positionChildAt(targetPosition, child, includingParents); in positionChildAt()
4296 if (targetPosition < topChildPosition && position >= topChildPosition) { in positionChildAt()
4346 int targetPosition = requestedPosition; in findPositionForStack() local
4347 targetPosition = Math.min(targetPosition, maxPosition); in findPositionForStack()
4348 targetPosition = Math.max(targetPosition, minPosition); in findPositionForStack()
4356 if ((targetPosition != requestedPosition) && in findPositionForStack()
4357 (adding || targetPosition < prevPosition)) { in findPositionForStack()
4358 targetPosition++; in findPositionForStack()
4361 return targetPosition; in findPositionForStack()
/frameworks/base/core/java/android/widget/
DGallery.java1311 int targetPosition = mSelectedPosition + direction; in moveDirection() local
1313 if (mItemCount > 0 && targetPosition >= 0 && targetPosition < mItemCount) { in moveDirection()
1314 scrollToChild(targetPosition - mFirstPosition); in moveDirection()
DSwitch.java1130 final float targetPosition = newCheckedState ? 1 : 0; in animateThumbToCheckedState() local
1131 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()