Searched refs:suggestedPosition (Results 1 – 2 of 2) sorted by relevance
125 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument127 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()
2705 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument2712 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()2725 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()