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.java124 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument
126 if (suggestedPosition >= size) { in getAdjustedAddPosition()
127 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
130 for (int pos = 0; pos < size && pos < suggestedPosition; ++pos) { in getAdjustedAddPosition()
134 ++suggestedPosition; in getAdjustedAddPosition()
137 return Math.min(size, suggestedPosition); in getAdjustedAddPosition()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java2796 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument
2803 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()
2816 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()