Home
last modified time | relevance | path

Searched refs:suggestedPosition (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DTask.java146 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument
148 if (suggestedPosition >= size) { in getAdjustedAddPosition()
149 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
152 for (int pos = 0; pos < size && pos < suggestedPosition; ++pos) { in getAdjustedAddPosition()
156 ++suggestedPosition; in getAdjustedAddPosition()
159 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
DActivityStack.java3083 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument
3090 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()
3103 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()