Home
last modified time | relevance | path

Searched refs:maxPosition (Results 1 – 7 of 7) 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
306 if (position > maxPosition) { in findInvisibleTarget()
307 maxPosition = position; in findInvisibleTarget()
310 final int tailTarget = maxPosition + in findInvisibleTarget()
311 (mRecyclerView.getAdapter().getItemCount() - maxPosition) / 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
247 if (position > maxPosition) { in findInvisibleTarget()
248 maxPosition = position; in findInvisibleTarget()
251 final int tailTarget = maxPosition + (mAdapter.getItemCount() - maxPosition) / 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.java38 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset() local
41 ? Math.max(0, state.getItemCount() - maxPosition - 1) in computeScrollOffset()
DStaggeredGridLayoutManager.java1569 int maxPosition = mShouldReverseLayout ? getFirstChildPosition() : getLastChildPosition();
1570 if (affectedRangeStart <= maxPosition) {
/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java39 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset() local
42 ? Math.max(0, state.getItemCount() - maxPosition - 1) in computeScrollOffset()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskStack.java641 int maxPosition = addingNew ? stackSize : stackSize - 1; in findPositionForTask() local
646 maxPosition = computeMaxPosition(maxPosition); in findPositionForTask()
653 && maxPosition == (addingNew ? stackSize : stackSize - 1)) { in findPositionForTask()
657 return Math.min(Math.max(targetPosition, minPosition), maxPosition); in findPositionForTask()
685 private int computeMaxPosition(int maxPosition) { in computeMaxPosition() argument
686 while (maxPosition > 0) { in computeMaxPosition()
687 final Task tmpTask = mChildren.get(maxPosition); in computeMaxPosition()
694 maxPosition--; in computeMaxPosition()
696 return maxPosition; in computeMaxPosition()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java2799 int maxPosition = mTaskHistory.size(); in getAdjustedPositionForTask() local
2803 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()
2807 while (maxPosition > 0) { in getAdjustedPositionForTask()
2808 final TaskRecord tmpTask = mTaskHistory.get(maxPosition - 1); in getAdjustedPositionForTask()
2813 maxPosition--; in getAdjustedPositionForTask()
2816 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()