Home | History | Annotate | Download | only in inputflinger

Lines Matching refs:parentIndex

5816         for (uint32_t parentIndex = startIndex; ;) {
5817 uint32_t childIndex = parentIndex * 2 + 1;
5827 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5831 swap(heap[parentIndex], heap[childIndex]);
5832 parentIndex = childIndex;
5863 for (uint32_t parentIndex = 0; ;) {
5864 uint32_t childIndex = parentIndex * 2 + 1;
5874 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5878 swap(heap[parentIndex], heap[childIndex]);
5879 parentIndex = childIndex;