Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java28 import java.util.PriorityQueue;
45 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_iterator()
66 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_iterator_empty()
88 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_iterator_outofbound()
114 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_iterator_remove()
142PriorityQueue<String> integerQueue = new PriorityQueue<String>(10, new MockComparatorStringByLengt… in test_iterator_removeEquals()
157 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_iterator_remove_illegalState()
185 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); in test_size()
198 PriorityQueue<Object> queue = new PriorityQueue<Object>(); in test_Constructor()
208 PriorityQueue<Object> queue = new PriorityQueue<Object>(100); in test_ConstructorI()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DPriorityQueueTest.java16 import java.util.PriorityQueue;
43 private PriorityQueue<Integer> populatedQueue(int n) { in populatedQueue()
44 PriorityQueue<Integer> q = new PriorityQueue<Integer>(n); in populatedQueue()
59 assertEquals(0, new PriorityQueue(SIZE).size()); in testConstructor1()
67 new PriorityQueue(0); in testConstructor2()
77 new PriorityQueue((Collection)null); in testConstructor3()
87 new PriorityQueue(Arrays.asList(new Integer[SIZE])); in testConstructor4()
100 new PriorityQueue(Arrays.asList(ints)); in testConstructor5()
112 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor6()
122 PriorityQueue q = new PriorityQueue(SIZE, cmp); in testConstructor7()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldPriorityQueueTest.java22 import java.util.PriorityQueue;
28 PriorityQueue<Object> queue = new PriorityQueue<Object>(100); in test_ConstructorI()
34 new PriorityQueue(0); in test_ConstructorI()
42 PriorityQueue<String> queue = new PriorityQueue<String>(10, in test_remove_Ljava_lang_Object_using_comparator()
59 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(list); in test_remove_Ljava_lang_Object_not_exists()
75 PriorityQueue<Integer> srcIntegerQueue = new PriorityQueue<Integer>( in test_Serialization()
77 new SerializationTester<PriorityQueue<Integer>>(srcIntegerQueue, s) { in test_Serialization()
78 @Override protected boolean equals(PriorityQueue<Integer> a, PriorityQueue<Integer> b) { in test_Serialization()
112 PriorityQueue<Integer> q = new PriorityQueue<Integer>(); in test_removeAt_siftUp()
/libcore/ojluni/annotations/hiddenapi/java/util/
DPriorityQueue.java31 public class PriorityQueue<E> extends java.util.AbstractQueue<E> implements java.io.Serializable { class
33 public PriorityQueue() { in PriorityQueue() method in PriorityQueue
37 public PriorityQueue(int initialCapacity) { in PriorityQueue() method in PriorityQueue
41 public PriorityQueue(java.util.Comparator<? super E> comparator) { in PriorityQueue() method in PriorityQueue
45 public PriorityQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityQueue() method in PriorityQueue
49 public PriorityQueue(java.util.Collection<? extends E> c) { in PriorityQueue() method in PriorityQueue
53 public PriorityQueue(java.util.PriorityQueue<? extends E> c) { in PriorityQueue() method in PriorityQueue
57 public PriorityQueue(java.util.SortedSet<? extends E> c) { in PriorityQueue() method in PriorityQueue
61 private void initFromPriorityQueue(java.util.PriorityQueue<? extends E> c) { in initFromPriorityQueue()
237 java.util.PriorityQueue<E> pq, int origin, int fence, int expectedModCount) { in PriorityQueueSpliterator()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DPriorityQueueBenchmark.java24 import java.util.PriorityQueue;
31 private PriorityQueue<Integer> pq;
32 private PriorityQueue<Integer> usepq;
38 pq = new PriorityQueue<Integer>(); in setUp()
39 usepq = new PriorityQueue<Integer>(); in setUp()
63 usepq = new PriorityQueue<Integer>(pq); in setUp()
79 usepq = new PriorityQueue<Integer>(pq); in timeRemove()
/libcore/ojluni/src/main/java/java/util/
DPriorityQueue.java82 public class PriorityQueue<E> extends AbstractQueue<E> class
121 public PriorityQueue() { in PriorityQueue() method in PriorityQueue
134 public PriorityQueue(int initialCapacity) { in PriorityQueue() method in PriorityQueue
147 public PriorityQueue(Comparator<? super E> comparator) { in PriorityQueue() method in PriorityQueue
162 public PriorityQueue(int initialCapacity, in PriorityQueue() method in PriorityQueue
189 public PriorityQueue(Collection<? extends E> c) { in PriorityQueue() method in PriorityQueue
195 else if (c instanceof PriorityQueue<?>) { in PriorityQueue()
196 PriorityQueue<? extends E> pq = (PriorityQueue<? extends E>) c; in PriorityQueue()
221 public PriorityQueue(PriorityQueue<? extends E> c) { in PriorityQueue() method in PriorityQueue
240 public PriorityQueue(SortedSet<? extends E> c) { in PriorityQueue() method in PriorityQueue
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java44 import java.util.PriorityQueue;
80 private final PriorityQueue<E> q = new PriorityQueue<E>();
DPriorityBlockingQueue.java44 import java.util.PriorityQueue;
183 private PriorityQueue<E> q;
905 q = new PriorityQueue<E>(Math.max(size, 1), comparator); in writeObject()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java231 private java.util.PriorityQueue<E> q;
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectionAndMapModifyStreamTest.java72 collections.add(new PriorityQueue<>(content)); in createCollections()
/libcore/
Dopenjdk_java_files.bp1150 "ojluni/src/main/java/java/util/PriorityQueue.java",