Home
last modified time | relevance | path

Searched defs:q (Results 1 – 25 of 90) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentLinkedDequeTest.java40 ConcurrentLinkedDeque<Integer> q = new ConcurrentLinkedDeque<Integer>(); in populatedDeque() local
97 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(Arrays.asList(ints)); in testConstructor6() local
106 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testEmpty() local
120 ConcurrentLinkedDeque q = populatedDeque(SIZE); in testSize() local
135 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testPushNull() local
146 ConcurrentLinkedDeque q = populatedDeque(3); in testPush() local
156 ConcurrentLinkedDeque q = populatedDeque(SIZE); in testPop() local
170 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferNull() local
181 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferFirstNull() local
192 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferLastNull() local
[all …]
DArrayDequeTest.java37 ArrayDeque<Integer> q = new ArrayDeque<Integer>(); in populatedDeque() local
93 ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); in testConstructor6() local
102 ArrayDeque q = new ArrayDeque(); in testEmpty() local
116 ArrayDeque q = populatedDeque(SIZE); in testSize() local
131 ArrayDeque q = new ArrayDeque(1); in testPushNull() local
142 ArrayDeque q = populatedDeque(3); in testPush() local
152 ArrayDeque q = populatedDeque(SIZE); in testPop() local
166 ArrayDeque q = new ArrayDeque(); in testOfferNull() local
177 ArrayDeque q = new ArrayDeque(); in testOfferFirstNull() local
188 ArrayDeque q = new ArrayDeque(); in testOfferLastNull() local
[all …]
DLinkedBlockingDequeTest.java58 LinkedBlockingDeque<Integer> q = in populatedDeque() local
73 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testEmpty() local
87 LinkedBlockingDeque q = populatedDeque(SIZE); in testSize() local
102 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferFirstNull() local
113 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferLastNull() local
124 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferFirst() local
133 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferLast() local
142 LinkedBlockingDeque q = populatedDeque(SIZE); in testPollFirst() local
153 LinkedBlockingDeque q = populatedDeque(SIZE); in testPollLast() local
164 LinkedBlockingDeque q = populatedDeque(SIZE); in testPeekFirst() local
[all …]
DLinkedListTest.java36 LinkedList<Integer> q = new LinkedList<Integer>(); in populatedQueue() local
69 LinkedList q = new LinkedList(Arrays.asList(ints)); in testConstructor6() local
78 LinkedList q = new LinkedList(); in testEmpty() local
92 LinkedList q = populatedQueue(SIZE); in testSize() local
107 LinkedList q = new LinkedList(); in testOfferNull() local
117 LinkedList q = new LinkedList(); in testOffer() local
126 LinkedList q = new LinkedList(); in testAdd() local
137 LinkedList q = new LinkedList(); in testAddAll1() local
152 LinkedList q = new LinkedList(); in testAddAll5() local
191 LinkedList q = populatedQueue(SIZE); in testPoll() local
[all …]
DConcurrentLinkedQueueTest.java38 ConcurrentLinkedQueue<Integer> q = new ConcurrentLinkedQueue<Integer>(); in populatedQueue() local
94 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor6() local
103 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testEmpty() local
117 ConcurrentLinkedQueue q = populatedQueue(SIZE); in testSize() local
132 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testOfferNull() local
143 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAddNull() local
154 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testOffer() local
163 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAdd() local
174 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAddAll1() local
185 ConcurrentLinkedQueue q = populatedQueue(SIZE); in testAddAllSelf() local
[all …]
DPriorityQueueTest.java44 PriorityQueue<Integer> q = new PriorityQueue<Integer>(n); in populatedQueue() local
112 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor6() local
122 PriorityQueue q = new PriorityQueue(SIZE, cmp); in testConstructor7() local
136 PriorityQueue q = new PriorityQueue(2); in testEmpty() local
150 PriorityQueue q = populatedQueue(SIZE); in testSize() local
165 PriorityQueue q = new PriorityQueue(1); in testOfferNull() local
176 PriorityQueue q = new PriorityQueue(1); in testAddNull() local
187 PriorityQueue q = new PriorityQueue(1); in testOffer() local
196 PriorityQueue q = new PriorityQueue(1); in testOfferNonComparable() local
208 PriorityQueue q = new PriorityQueue(SIZE); in testAdd() local
[all …]
DPriorityBlockingQueueTest.java69 PriorityBlockingQueue<Integer> q = in populatedQueue() local
142 PriorityBlockingQueue q = new PriorityBlockingQueue(Arrays.asList(ints)); in testConstructor6() local
152 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE, cmp); in testConstructor7() local
166 PriorityBlockingQueue q = new PriorityBlockingQueue(2); in testEmpty() local
181 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
198 PriorityBlockingQueue q = new PriorityBlockingQueue(1); in testOffer() local
207 PriorityBlockingQueue q = new PriorityBlockingQueue(1); in testOfferNonComparable() local
219 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE); in testAdd() local
230 PriorityBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
242 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE); in testAddAll3() local
[all …]
DLinkedBlockingQueueTest.java61 LinkedBlockingQueue<Integer> q = in populatedQueue() local
134 LinkedBlockingQueue q = new LinkedBlockingQueue(Arrays.asList(ints)); in testConstructor6() local
143 LinkedBlockingQueue q = new LinkedBlockingQueue(2); in testEmptyFull() local
158 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
175 LinkedBlockingQueue q = new LinkedBlockingQueue(1); in testOffer() local
184 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAdd() local
198 LinkedBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
210 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAddAll3() local
225 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE - 1); in testAddAll4() local
244 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAddAll5() local
[all …]
DLinkedTransferQueueTest.java117 LinkedTransferQueue q in testConstructor5() local
136 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
153 LinkedTransferQueue q = populatedQueue(SIZE); in testAddAllSelf() local
165 LinkedTransferQueue q = new LinkedTransferQueue(); in testAddAll3() local
184 LinkedTransferQueue q = new LinkedTransferQueue(); in testAddAll5() local
196 LinkedTransferQueue<Integer> q = new LinkedTransferQueue<Integer>(); in testPut() local
208 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testTake() local
218 final BlockingQueue q = populatedQueue(SIZE); in testBlockingTake() local
251 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testPoll() local
263 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testTimedPoll0() local
[all …]
DArrayBlockingQueueTest.java61 ArrayBlockingQueue<Integer> q = new ArrayBlockingQueue<Integer>(n); in populatedQueue() local
145 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE, true, elements); in testConstructor7() local
154 ArrayBlockingQueue q = new ArrayBlockingQueue(2); in testEmptyFull() local
169 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
186 ArrayBlockingQueue q = new ArrayBlockingQueue(1); in testOffer() local
195 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAdd() local
210 ArrayBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
222 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAddAll3() local
236 ArrayBlockingQueue q = new ArrayBlockingQueue(1); in testAddAll4() local
254 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAddAll5() local
[all …]
DDelayQueueTest.java140 DelayQueue<PDelay> q = new DelayQueue<PDelay>(); in populatedQueue() local
199 DelayQueue q = new DelayQueue(Arrays.asList(ints)); in testConstructor6() local
208 DelayQueue q = new DelayQueue(); in testEmpty() local
223 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
240 DelayQueue q = new DelayQueue(); in testOffer() local
249 DelayQueue q = new DelayQueue(); in testAdd() local
260 DelayQueue q = populatedQueue(SIZE); in testAddAllSelf() local
272 DelayQueue q = new DelayQueue(); in testAddAll3() local
290 DelayQueue q = new DelayQueue(); in testAddAll5() local
301 DelayQueue q = new DelayQueue(); in testPut() local
[all …]
DConcurrentSkipListSubSetTest.java41 ConcurrentSkipListSet<Integer> q = in populatedSet() local
61 ConcurrentSkipListSet q = new ConcurrentSkipListSet(); in set5() local
79 ConcurrentSkipListSet q = new ConcurrentSkipListSet(); in dset5() local
114 NavigableSet q = set0(); in testEmpty() local
128 NavigableSet q = populatedSet(SIZE); in testSize() local
143 NavigableSet q = set0(); in testAddNull() local
154 NavigableSet q = set0(); in testAdd() local
162 NavigableSet q = set0(); in testAddDup() local
171 NavigableSet q = set0(); in testAddNonComparable() local
183 NavigableSet q = set0(); in testAddAll1() local
[all …]
DTreeSubSetTest.java42 TreeSet<Integer> q = new TreeSet<Integer>(); in populatedSet() local
61 TreeSet q = new TreeSet(); in set5() local
76 TreeSet q = new TreeSet(); in dset5() local
111 NavigableSet q = set0(); in testEmpty() local
125 NavigableSet q = populatedSet(SIZE); in testSize() local
140 NavigableSet q = set0(); in testAddNull() local
151 NavigableSet q = set0(); in testAdd() local
159 NavigableSet q = set0(); in testAddDup() local
168 NavigableSet q = set0(); in testAddNonComparable() local
180 NavigableSet q = set0(); in testAddAll1() local
[all …]
DAbstractQueueTest.java56 Succeed q = new Succeed(); in testAddS() local
64 Fail q = new Fail(); in testAddF() local
75 Succeed q = new Succeed(); in testAddNPE() local
86 Succeed q = new Succeed(); in testRemoveS() local
94 Fail q = new Fail(); in testRemoveF() local
105 Succeed q = new Succeed(); in testElementS() local
113 Fail q = new Fail(); in testElementF() local
124 Succeed q = new Succeed(); in testAddAll1() local
135 Succeed q = new Succeed(); in testAddAllSelf() local
146 Succeed q = new Succeed(); in testAddAll2() local
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentLinkedDequeTest.java72 ConcurrentLinkedDeque<Integer> q = new ConcurrentLinkedDeque<>(); in populatedDeque() local
131 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(Arrays.asList(ints)); in testConstructor6() local
140 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testEmpty() local
154 ConcurrentLinkedDeque q = populatedDeque(SIZE); in testSize() local
169 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testPushNull() local
180 ConcurrentLinkedDeque q = populatedDeque(3); in testPush() local
190 ConcurrentLinkedDeque q = populatedDeque(SIZE); in testPop() local
204 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferNull() local
215 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferFirstNull() local
226 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(); in testOfferLastNull() local
[all …]
DLinkedBlockingDequeTest.java90 LinkedBlockingDeque<Integer> q = in populatedDeque() local
107 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testEmpty() local
121 LinkedBlockingDeque q = populatedDeque(SIZE); in testSize() local
136 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferFirstNull() local
147 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferLastNull() local
158 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferFirst() local
167 LinkedBlockingDeque q = new LinkedBlockingDeque(); in testOfferLast() local
176 LinkedBlockingDeque q = populatedDeque(SIZE); in testPollFirst() local
187 LinkedBlockingDeque q = populatedDeque(SIZE); in testPollLast() local
198 LinkedBlockingDeque q = populatedDeque(SIZE); in testPeekFirst() local
[all …]
DLinkedListTest.java75 LinkedList<Integer> q = new LinkedList<>(); in populatedQueue() local
110 LinkedList q = new LinkedList(Arrays.asList(ints)); in testConstructor6() local
119 LinkedList q = new LinkedList(); in testEmpty() local
133 LinkedList q = populatedQueue(SIZE); in testSize() local
148 LinkedList q = new LinkedList(); in testOfferNull() local
158 LinkedList q = new LinkedList(); in testOffer() local
167 LinkedList q = new LinkedList(); in testAdd() local
178 LinkedList q = new LinkedList(); in testAddAll1() local
193 LinkedList q = new LinkedList(); in testAddAll5() local
232 LinkedList q = populatedQueue(SIZE); in testPoll() local
[all …]
DConcurrentLinkedQueueTest.java70 ConcurrentLinkedQueue<Integer> q = new ConcurrentLinkedQueue<>(); in populatedQueue() local
127 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor6() local
136 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testEmpty() local
150 ConcurrentLinkedQueue q = populatedQueue(SIZE); in testSize() local
165 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testOfferNull() local
176 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAddNull() local
187 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testOffer() local
196 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAdd() local
207 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); in testAddAll1() local
218 ConcurrentLinkedQueue q = populatedQueue(SIZE); in testAddAllSelf() local
[all …]
DLinkedTransferQueueTest.java135 LinkedTransferQueue q in testConstructor5() local
154 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
171 LinkedTransferQueue q = populatedQueue(SIZE); in testAddAllSelf() local
183 LinkedTransferQueue q = new LinkedTransferQueue(); in testAddAll3() local
202 LinkedTransferQueue q = new LinkedTransferQueue(); in testAddAll5() local
214 LinkedTransferQueue<Integer> q = new LinkedTransferQueue<>(); in testPut() local
226 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testTake() local
236 final BlockingQueue q = populatedQueue(SIZE); in testBlockingTake() local
269 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testPoll() local
281 LinkedTransferQueue<Integer> q = populatedQueue(SIZE); in testTimedPoll0() local
[all …]
DLinkedBlockingQueueTest.java90 LinkedBlockingQueue<Integer> q = in populatedQueue() local
164 LinkedBlockingQueue q = new LinkedBlockingQueue(Arrays.asList(ints)); in testConstructor6() local
173 LinkedBlockingQueue q = new LinkedBlockingQueue(2); in testEmptyFull() local
188 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
205 LinkedBlockingQueue q = new LinkedBlockingQueue(1); in testOffer() local
214 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAdd() local
228 LinkedBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
240 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAddAll3() local
255 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE - 1); in testAddAll4() local
274 LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); in testAddAll5() local
[all …]
DPriorityBlockingQueueTest.java98 PriorityBlockingQueue<Integer> q = in populatedQueue() local
172 PriorityBlockingQueue q = new PriorityBlockingQueue(Arrays.asList(ints)); in testConstructor6() local
182 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE, cmp); in testConstructor7() local
196 PriorityBlockingQueue q = new PriorityBlockingQueue(2); in testEmpty() local
211 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
228 PriorityBlockingQueue q = new PriorityBlockingQueue(1); in testOffer() local
237 PriorityBlockingQueue q = new PriorityBlockingQueue(1); in testOfferNonComparable() local
252 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE); in testAdd() local
263 PriorityBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
275 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE); in testAddAll3() local
[all …]
DDelayQueueTest.java147 DelayQueue<PDelay> q = new DelayQueue<>(); in populatedQueue() local
207 DelayQueue q = new DelayQueue(Arrays.asList(ints)); in testConstructor6() local
216 DelayQueue q = new DelayQueue(); in testEmpty() local
231 BlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity() local
248 DelayQueue q = new DelayQueue(); in testOffer() local
257 DelayQueue q = new DelayQueue(); in testAdd() local
268 DelayQueue q = populatedQueue(SIZE); in testAddAllSelf() local
280 DelayQueue q = new DelayQueue(); in testAddAll3() local
298 DelayQueue q = new DelayQueue(); in testAddAll5() local
309 DelayQueue q = new DelayQueue(); in testPut() local
[all …]
DTreeSubSetTest.java65 TreeSet<Integer> q = new TreeSet<>(); in populatedSet() local
84 TreeSet q = new TreeSet(); in set5() local
99 TreeSet q = new TreeSet(); in dset5() local
134 NavigableSet q = set0(); in testEmpty() local
148 NavigableSet q = populatedSet(SIZE); in testSize() local
163 NavigableSet q = set0(); in testAddNull() local
174 NavigableSet q = set0(); in testAdd() local
182 NavigableSet q = set0(); in testAddDup() local
191 NavigableSet q = set0(); in testAddNonComparable() local
203 NavigableSet q = set0(); in testAddAll1() local
[all …]
DArrayBlockingQueueTest.java108 ArrayBlockingQueue<Integer> q = new ArrayBlockingQueue<>(capacity); in populatedQueue() local
208 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE, true, elements); in testConstructor7() local
217 BlockingQueue q = populatedQueue(0, 2, 2, false); in testEmptyFull() local
233 BlockingQueue q = populatedQueue(size, size, 2 * size, false); in testRemainingCapacity() local
252 ArrayBlockingQueue q = new ArrayBlockingQueue(1); in testOffer() local
261 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAdd() local
274 ArrayBlockingQueue q = populatedQueue(SIZE); in testAddAllSelf() local
286 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAddAll3() local
301 ArrayBlockingQueue q = populatedQueue(0, size, size, false); in testAddAll_insufficientSpace() local
322 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE); in testAddAll5() local
[all …]
DAbstractQueueTest.java79 Succeed q = new Succeed(); in testAddS() local
87 Fail q = new Fail(); in testAddF() local
98 Succeed q = new Succeed(); in testAddNPE() local
109 Succeed q = new Succeed(); in testRemoveS() local
117 Fail q = new Fail(); in testRemoveF() local
128 Succeed q = new Succeed(); in testElementS() local
136 Fail q = new Fail(); in testElementF() local
147 Succeed q = new Succeed(); in testAddAll1() local
158 Succeed q = new Succeed(); in testAddAllSelf() local
169 Succeed q = new Succeed(); in testAddAll2() local
[all …]

1234