Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerBaseConfigSetTest.java297 int minPosition = Integer.MAX_VALUE, maxPosition = Integer.MIN_VALUE; in findInvisibleTarget() local
301 if (position < minPosition) { in findInvisibleTarget()
302 minPosition = position; in findInvisibleTarget()
310 final int headTarget = minPosition / 2; in findInvisibleTarget()
314 if (Math.abs(tailTarget - maxPosition) > Math.abs(headTarget - minPosition)) { in findInvisibleTarget()
323 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition); in findInvisibleTarget()
DBaseStaggeredGridLayoutManagerTest.java221 int minPosition = Integer.MAX_VALUE, maxPosition = Integer.MIN_VALUE; in findInvisibleTarget() local
225 if (position < minPosition) { in findInvisibleTarget()
226 minPosition = position; in findInvisibleTarget()
233 final int headTarget = minPosition / 2; in findInvisibleTarget()
237 if (Math.abs(tailTarget - maxPosition) > Math.abs(headTarget - minPosition)) { in findInvisibleTarget()
246 config + " target:" + target + " min:" + minPosition + ", max:" + maxPosition); in findInvisibleTarget()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DScrollbarHelper.java36 final int minPosition = Math.min(lm.getPosition(startChild), in computeScrollOffset() local
42 : Math.max(0, minPosition); in computeScrollOffset()
DStaggeredGridLayoutManager.java1494 int minPosition = mShouldReverseLayout ? getLastChildPosition() : getFirstChildPosition();
1526 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.java602 int minPosition = 0; in findPositionForTask() local
606 minPosition = computeMinPosition(minPosition, stackSize); in findPositionForTask()
611 return Math.min(Math.max(targetPosition, minPosition), maxPosition); in findPositionForTask()
620 private int computeMinPosition(int minPosition, int size) { in computeMinPosition() argument
621 while (minPosition < size) { in computeMinPosition()
622 final Task tmpTask = mChildren.get(minPosition); in computeMinPosition()
629 minPosition++; in computeMinPosition()
631 return minPosition; in computeMinPosition()