Searched refs:suggestedPosition (Results 1 – 2 of 2) sorted by relevance
124 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument126 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()
2796 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument2803 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()2816 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()