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.java680 int leftIdx = 0; in unstableRemoveIf() local
682 while (leftIdx <= rightIdx) { in unstableRemoveIf()
684 while (leftIdx < size && !predicate.test(collection.get(leftIdx))) { in unstableRemoveIf()
685 leftIdx++; in unstableRemoveIf()
689 while (rightIdx > leftIdx && predicate.test(collection.get(rightIdx))) { in unstableRemoveIf()
693 if (leftIdx >= rightIdx) { in unstableRemoveIf()
698 Collections.swap(collection, leftIdx, rightIdx); in unstableRemoveIf()
699 leftIdx++; in unstableRemoveIf()
704 for (int i = size - 1; i >= leftIdx; i--) { in unstableRemoveIf()
707 return size - leftIdx; in unstableRemoveIf()