Searched refs:maxPosition (Results 1 – 4 of 4) sorted by relevance
39 final int maxPosition = Math.max(lm.getPosition(startChild), in computeScrollOffset() local42 ? Math.max(0, state.getItemCount() - maxPosition - 1) in computeScrollOffset()
289 int maxPosition = findMaxPositionForChildDisplayArea(child); in findPositionForChildDisplayArea() local295 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()
2527 private int computeMaxUserPosition(int maxPosition) { in computeMaxUserPosition() argument2528 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() local2548 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 …]
607 int maxPosition = findMaxPositionForRootTask(rootTask);620 targetPosition = Math.min(targetPosition, maxPosition);