Home
last modified time | relevance | path

Searched refs:maxPosition (Results 1 – 4 of 4) 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/
DDisplayArea.java289 int maxPosition = findMaxPositionForChildDisplayArea(child); in findPositionForChildDisplayArea() local
295 for (int i = minPosition; i <= maxPosition; i++) { in findPositionForChildDisplayArea()
301 minPosition = maxPosition - alwaysOnTopCount + 1; in findPositionForChildDisplayArea()
303 maxPosition -= alwaysOnTopCount; in findPositionForChildDisplayArea()
305 return Math.max(Math.min(requestPosition, maxPosition), minPosition); in findPositionForChildDisplayArea()
DTask.java2527 private int computeMaxUserPosition(int maxPosition) { in computeMaxUserPosition() argument
2528 while (maxPosition > 0) { in computeMaxUserPosition()
2529 final WindowContainer child = mChildren.get(maxPosition); in computeMaxUserPosition()
2534 maxPosition--; in computeMaxUserPosition()
2536 return maxPosition; in computeMaxUserPosition()
2546 int maxPosition = minPosition; in getAdjustedChildPosition() local
2548 maxPosition = (canShowChild) ? size - 1 : computeMaxUserPosition(size - 1); in getAdjustedChildPosition()
2554 while (maxPosition > minPosition) { in getAdjustedChildPosition()
2555 if (!mChildren.get(maxPosition).isAlwaysOnTop()) break; in getAdjustedChildPosition()
2556 --maxPosition; in getAdjustedChildPosition()
[all …]
DTaskDisplayArea.java607 int maxPosition = findMaxPositionForRootTask(rootTask);
620 targetPosition = Math.min(targetPosition, maxPosition);