Home
last modified time | relevance | path

Searched refs:minPosition (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DLinearLayoutManagerBaseConfigSetTest.java299 int minPosition = Integer.MAX_VALUE, maxPosition = Integer.MIN_VALUE; in findInvisibleTarget() local
303 if (position < minPosition) { in findInvisibleTarget()
304 minPosition = position; in findInvisibleTarget()
312 final int headTarget = minPosition / 2; in findInvisibleTarget()
316 if (Math.abs(tailTarget - maxPosition) > Math.abs(headTarget - minPosition)) { in findInvisibleTarget()
325 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition); in findInvisibleTarget()
DBaseStaggeredGridLayoutManagerTest.java240 int minPosition = Integer.MAX_VALUE, maxPosition = Integer.MIN_VALUE; in findInvisibleTarget() local
244 if (position < minPosition) { in findInvisibleTarget()
245 minPosition = position; in findInvisibleTarget()
252 final int headTarget = minPosition / 2; in findInvisibleTarget()
256 if (Math.abs(tailTarget - maxPosition) > Math.abs(headTarget - minPosition)) { in findInvisibleTarget()
265 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition); in findInvisibleTarget()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DScrollbarHelper.java36 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset() local
42 : Math.max(0, minPosition); in computeScrollOffset()
DStaggeredGridLayoutManager.java1533 int minPosition = mShouldReverseLayout ? getLastChildPosition() : getFirstChildPosition();
1565 if (affectedRangeEnd <= minPosition) {
/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java37 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset() local
43 : Math.max(0, minPosition); in computeScrollOffset()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskStack.java640 int minPosition = 0; in findPositionForTask() local
644 minPosition = computeMinPosition(minPosition, stackSize); in findPositionForTask()
650 if (targetPosition == POSITION_BOTTOM && minPosition == 0) { in findPositionForTask()
657 return Math.min(Math.max(targetPosition, minPosition), maxPosition); in findPositionForTask()
666 private int computeMinPosition(int minPosition, int size) { in computeMinPosition() argument
667 while (minPosition < size) { in computeMinPosition()
668 final Task tmpTask = mChildren.get(minPosition); in computeMinPosition()
675 minPosition++; in computeMinPosition()
677 return minPosition; in computeMinPosition()