Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/collect/
DMinMaxPriorityQueueTest.java772 assertTrue(MinMaxPriorityQueue.isEvenLevel(0)); in testIsEvenLevel()
773 assertFalse(MinMaxPriorityQueue.isEvenLevel(1)); in testIsEvenLevel()
774 assertFalse(MinMaxPriorityQueue.isEvenLevel(2)); in testIsEvenLevel()
775 assertTrue(MinMaxPriorityQueue.isEvenLevel(3)); in testIsEvenLevel()
777 assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2)); in testIsEvenLevel()
778 assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1)); in testIsEvenLevel()
781 assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 2)); in testIsEvenLevel()
782 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 1)); in testIsEvenLevel()
783 assertFalse(MinMaxPriorityQueue.isEvenLevel(i)); in testIsEvenLevel()
786 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 2)); in testIsEvenLevel()
[all …]
/external/guava/guava/src/com/google/common/collect/
DMinMaxPriorityQueue.java455 return isEvenLevel(i) ? minHeap : maxHeap; in heapForIndex()
461 @VisibleForTesting static boolean isEvenLevel(int index) { in isEvenLevel() method in MinMaxPriorityQueue