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.java707 int leftIdx = 0; in unstableRemoveIf() local
709 while (leftIdx <= rightIdx) { in unstableRemoveIf()
711 while (leftIdx < size && !predicate.test(collection.get(leftIdx))) { in unstableRemoveIf()
712 leftIdx++; in unstableRemoveIf()
716 while (rightIdx > leftIdx && predicate.test(collection.get(rightIdx))) { in unstableRemoveIf()
720 if (leftIdx >= rightIdx) { in unstableRemoveIf()
725 Collections.swap(collection, leftIdx, rightIdx); in unstableRemoveIf()
726 leftIdx++; in unstableRemoveIf()
731 for (int i = size - 1; i >= leftIdx; i--) { in unstableRemoveIf()
734 return size - leftIdx; in unstableRemoveIf()