Home
last modified time | relevance | path

Searched refs:leftIdx (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java795 int leftIdx = 0; in unstableRemoveIf() local
797 while (leftIdx <= rightIdx) { in unstableRemoveIf()
799 while (leftIdx < size && !predicate.test(collection.get(leftIdx))) { in unstableRemoveIf()
800 leftIdx++; in unstableRemoveIf()
804 while (rightIdx > leftIdx && predicate.test(collection.get(rightIdx))) { in unstableRemoveIf()
808 if (leftIdx >= rightIdx) { in unstableRemoveIf()
813 Collections.swap(collection, leftIdx, rightIdx); in unstableRemoveIf()
814 leftIdx++; in unstableRemoveIf()
819 for (int i = size - 1; i >= leftIdx; i--) { in unstableRemoveIf()
822 return size - leftIdx; in unstableRemoveIf()