Searched refs:suggestedPosition (Results 1 – 2 of 2) sorted by relevance
146 private int getAdjustedAddPosition(int suggestedPosition) { in getAdjustedAddPosition() argument148 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()
3083 int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition, in getAdjustedPositionForTask() argument3090 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()3103 return Math.min(suggestedPosition, maxPosition); in getAdjustedPositionForTask()