Home
last modified time | relevance | path

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

/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/
DDisplayArea.java291 int minPosition = findMinPositionForChildDisplayArea(child); in findPositionForChildDisplayArea() local
295 for (int i = minPosition; i <= maxPosition; i++) { in findPositionForChildDisplayArea()
301 minPosition = maxPosition - alwaysOnTopCount + 1; in findPositionForChildDisplayArea()
305 return Math.max(Math.min(requestPosition, maxPosition), minPosition); in findPositionForChildDisplayArea()
DTaskDisplayArea.java549 int minPosition = POSITION_BOTTOM;
552 minPosition = i;
565 if (currentIndex > minPosition) {
566 minPosition = currentIndex;
569 return minPosition;
609 int minPosition = findMinPositionForRootTask(rootTask);
621 targetPosition = Math.max(targetPosition, minPosition);
DTask.java2509 private int computeMinUserPosition(int minPosition, int size) { in computeMinUserPosition() argument
2510 while (minPosition < size) { in computeMinUserPosition()
2511 final WindowContainer child = mChildren.get(minPosition); in computeMinUserPosition()
2516 minPosition++; in computeMinUserPosition()
2518 return minPosition; in computeMinUserPosition()
2545 int minPosition = (canShowChild) ? computeMinUserPosition(0, size) : 0; in getAdjustedChildPosition() local
2546 int maxPosition = minPosition; in getAdjustedChildPosition()
2554 while (maxPosition > minPosition) { in getAdjustedChildPosition()
2561 if (suggestedPosition == POSITION_BOTTOM && minPosition == 0) { in getAdjustedChildPosition()
2573 return Math.min(Math.max(suggestedPosition, minPosition), maxPosition); in getAdjustedChildPosition()