Searched refs:targetPosition (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListSetSelectionTest.java | 64 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/ |
D | GridTouchSetSelectionTest.java | 62 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/services/core/java/com/android/server/wm/ |
D | TaskDisplayArea.java | 398 final int targetPosition = findPositionForRootTask(position, child, false /* adding */); 399 super.positionChildAt(targetPosition, child, false /* includingParents */); 406 child.updateTaskMovement(moveToTop, targetPosition); 619 int targetPosition = requestedPosition; 620 targetPosition = Math.min(targetPosition, maxPosition); 621 targetPosition = Math.max(targetPosition, minPosition); 629 if ((targetPosition != requestedPosition) && (adding || targetPosition < prevPosition)) { 630 targetPosition++; 633 return targetPosition;
|
D | DisplayArea.java | 136 final int targetPosition = findPositionForChildDisplayArea(position, child.asDisplayArea()); in positionChildAt() local 137 super.positionChildAt(targetPosition, child, false /* includingParents */); in positionChildAt()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearSmoothScroller.java | 351 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument 355 .computeScrollVectorForPosition(targetPosition); in computeScrollVectorForPosition()
|
D | LinearLayoutManager.java | 443 public PointF computeScrollVectorForPosition(int targetPosition) { in computeScrollVectorForPosition() argument 448 final int direction = targetPosition < firstChildPos != mShouldReverseLayout ? -1 : 1; in computeScrollVectorForPosition()
|
D | RecyclerView.java | 10766 public void setTargetPosition(int targetPosition) { in setTargetPosition() argument 10767 mTargetPosition = targetPosition; in setTargetPosition() 11019 public void jumpTo(int targetPosition) { in jumpTo() argument 11020 mJumpToPosition = targetPosition; in jumpTo() 11149 PointF computeScrollVectorForPosition(int targetPosition);
|
/frameworks/base/core/java/android/widget/ |
D | Gallery.java | 1312 int targetPosition = mSelectedPosition + direction; in moveDirection() local 1314 if (mItemCount > 0 && targetPosition >= 0 && targetPosition < mItemCount) { in moveDirection() 1315 scrollToChild(targetPosition - mFirstPosition); in moveDirection()
|
D | Switch.java | 1213 final float targetPosition = newCheckedState ? 1 : 0; in animateThumbToCheckedState() local 1214 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotView.java | 515 Rect targetPosition = new Rect(); in createScreenshotDropInAnimation() local 516 mScreenshotPreview.getHitRect(targetPosition); in createScreenshotDropInAnimation() 538 final PointF finalPos = new PointF(targetPosition.exactCenterX(), in createScreenshotDropInAnimation() 539 targetPosition.exactCenterY()); in createScreenshotDropInAnimation() 544 startPos.offset(targetPosition.left - locInScreen[0], targetPosition.top - locInScreen[1]); in createScreenshotDropInAnimation()
|