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.java125 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument
127 if (suggestedPosition >= size) { in getAdjustedAddPosition()
128 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
131 for (int pos = 0; pos < size && pos < suggestedPosition; ++pos) { in getAdjustedAddPosition()
135 ++suggestedPosition; in getAdjustedAddPosition()
138 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java2705 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument
2712 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()
2725 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()