Home
last modified time | relevance | path

Searched refs:maxPosition (Results 1 – 3 of 3) sorted by relevance

/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/
DTask.java2741 private int computeMaxUserPosition(int maxPosition) { in computeMaxUserPosition() argument
2742 while (maxPosition > 0) { in computeMaxUserPosition()
2743 final WindowContainer child = mChildren.get(maxPosition); in computeMaxUserPosition()
2748 maxPosition--; in computeMaxUserPosition()
2750 return maxPosition; in computeMaxUserPosition()
2760 int maxPosition = (canShowChild) ? size : computeMaxUserPosition(size - 1); in getAdjustedChildPosition() local
2766 while (maxPosition > minPosition) { in getAdjustedChildPosition()
2767 if (!mChildren.get(maxPosition - 1).isAlwaysOnTop()) break; in getAdjustedChildPosition()
2768 --maxPosition; in getAdjustedChildPosition()
2775 } else if (suggestedPosition == POSITION_TOP && maxPosition >= (size - 1)) { in getAdjustedChildPosition()
[all …]
DTaskDisplayArea.java455 int maxPosition = findMaxPositionForStack(stack); in findPositionForStack() local
468 targetPosition = Math.min(targetPosition, maxPosition); in findPositionForStack()