Home
last modified time | relevance | path

Searched refs:offer (Results 1 – 25 of 40) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
DBlockingQueue.java189 boolean offer(E e); in offer() method
223 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
DDelayQueue.java97 return offer(e); in add()
107 public boolean offer(E e) { in offer() method in DelayQueue
111 q.offer(e); in offer()
130 offer(e); in put()
143 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in DelayQueue
144 return offer(e); in offer()
DBlockingDeque.java440 boolean offer(E e); in offer() method
477 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
DPriorityBlockingQueue.java424 return offer(e); in add()
438 public boolean offer(E e) { in offer() method in PriorityBlockingQueue
472 offer(e); // never need to block in put()
490 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in PriorityBlockingQueue
491 return offer(e); // never need to block in offer()
DScheduledThreadPoolExecutor.java972 public boolean offer(Runnable x) { in offer() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
1000 offer(e); in put()
1004 return offer(e); in add()
1007 public boolean offer(Runnable e, long timeout, TimeUnit unit) { in offer() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
1008 return offer(e); in offer()
DLinkedTransferQueue.java1021 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in LinkedTransferQueue
1033 public boolean offer(E e) { in offer() method in LinkedTransferQueue
1293 offer(item); in readObject()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java44 integerQueue.offer(array[i]); in test_iterator()
85 integerQueue.offer(0); in test_iterator_outofbound()
113 integerQueue.offer(array[i]); in test_iterator_remove()
141 integerQueue.offer(array[i]); in test_iterator_removeEquals()
156 integerQueue.offer(array[i]); in test_iterator_remove_illegalState()
185 integerQueue.offer(array[i]); in test_size()
317 queue.offer(array[i]); in test_ConstructorLjava_util_Colleciton_from_priorityqueue()
355 integerQueue.offer(array[i]); in test_ConstructorLjava_util_PriorityQueue()
416 queue.offer(array[i]); in test_offerLjava_lang_Object()
432 queue.offer(null); in test_offerLjava_lang_Object_null()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DPriorityQueueTest.java36 assertTrue(q.offer(new Integer(i))); in populatedQueue()
38 assertTrue(q.offer(new Integer(i))); in populatedQueue()
157 q.offer(null); in testOfferNull()
178 assertTrue(q.offer(zero)); in testOffer()
179 assertTrue(q.offer(one)); in testOffer()
188 q.offer(new Object()); in testOfferNonComparable()
189 q.offer(new Object()); in testOfferNonComparable()
190 q.offer(new Object()); in testOfferNonComparable()
DPriorityBlockingQueueTest.java46 assertTrue(q.offer(new Integer(i))); in populatedQueue()
48 assertTrue(q.offer(new Integer(i))); in populatedQueue()
172 assertTrue(q.offer(zero)); in testOffer()
173 assertTrue(q.offer(one)); in testOffer()
182 q.offer(new Object()); in testOfferNonComparable()
183 q.offer(new Object()); in testOfferNonComparable()
184 q.offer(new Object()); in testOfferNonComparable()
280 assertTrue(q.offer(new Integer(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer()
281 assertTrue(q.offer(new Integer(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer()
687 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DSynchronousQueueTest.java37 assertFalse(q.offer(zero)); in testEmptyFull()
47 assertFalse(q.offer(one)); in testOffer()
171 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
175 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
258 try { assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); } in testTimedPollWithOffer()
462 assertFalse(q.offer(one));
464 assertTrue(q.offer(one, LONG_DELAY_MS, MILLISECONDS));
520 assertFalse(clone.offer(zero));
DAbstractQueueTest.java20 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Succeed
31 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Fail
DLinkedBlockingQueueTest.java36 assertTrue(q.offer(new Integer(i))); in populatedQueue()
122 assertFalse(q.offer(three)); in testEmptyFull()
147 assertTrue(q.offer(zero)); in testOffer()
148 assertFalse(q.offer(one)); in testOffer()
316 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
320 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
692 assertFalse(q.offer(three)); in testOfferInExecutor()
694 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
800 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DArrayBlockingQueueTest.java35 assertTrue(q.offer(new Integer(i))); in populatedQueue()
133 assertFalse(q.offer(three)); in testEmptyFull()
158 assertTrue(q.offer(zero)); in testOffer()
159 assertFalse(q.offer(one)); in testOffer()
326 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
330 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
758 assertFalse(q.offer(three)); in testOfferInExecutor()
760 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
867 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DBlockingQueueTest.java60 q.offer(null); in testOfferNull()
83 q.offer(null, LONG_DELAY_MS, MILLISECONDS); in testTimedOfferNull()
234 assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); in testTimedPollWithOffer()
DConcurrentLinkedQueueTest.java29 assertTrue(q.offer(new Integer(i))); in populatedQueue()
123 q.offer(null); in testOfferNull()
144 assertTrue(q.offer(zero)); in testOffer()
145 assertTrue(q.offer(one)); in testOffer()
DDelayQueueTest.java119 assertTrue(q.offer(new PDelay(i))); in populatedQueue()
121 assertTrue(q.offer(new PDelay(i))); in populatedQueue()
219 assertTrue(q.offer(new PDelay(0))); in testOffer()
220 assertTrue(q.offer(new PDelay(1))); in testOffer()
314 assertTrue(q.offer(new PDelay(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer()
315 assertTrue(q.offer(new PDelay(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer()
DLinkedTransferQueueTest.java574 assertTrue(q.offer(one, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
681 assertTrue(q.offer(j)); in testDrainToN()
718 assertTrue(q.offer(one)); in testWaitingConsumer()
811 assertTrue(q.offer(three)); in testTransfer4()
962 assertTrue(q.offer(four)); in testTryTransfer7()
985 assertTrue(q.offer(four)); in testTryTransfer8()
1001 assertTrue(q.offer(i)); in populatedQueue()
DLinkedListTest.java28 assertTrue(q.offer(new Integer(i))); in populatedQueue()
97 q.offer(null); in testOfferNull()
105 assertTrue(q.offer(new Integer(0))); in testOffer()
106 assertTrue(q.offer(new Integer(1))); in testOffer()
DLinkedBlockingDequeTest.java35 assertTrue(q.offer(new Integer(i))); in populatedDeque()
380 assertFalse(q.offer(three)); in testEmptyFull()
457 assertTrue(q.offer(zero)); in testOffer()
458 assertFalse(q.offer(one)); in testOffer()
626 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
630 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
1637 assertFalse(q.offer(three));
1639 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS));
1745 assertTrue(q.offer(new Integer(j)));
DConcurrentLinkedDequeTest.java30 assertTrue(q.offer(new Integer(i))); in populatedDeque()
160 q.offer(null); in testOfferNull()
192 assertTrue(q.offer(zero)); in testOffer()
193 assertTrue(q.offer(one)); in testOffer()
/libcore/luni/src/main/java/java/util/
DQueue.java151 boolean offer(E e); in offer() method
DAbstractQueue.java66 if (offer(e)) in add()
DDeque.java396 boolean offer(E e); in offer() method
DPriorityQueue.java187 public boolean offer(E o) { in offer() method in PriorityQueue
270 return offer(o); in add()
/libcore/luni/src/test/java/libcore/java/util/
DOldPriorityQueueTest.java46 queue.offer(array[i]); in test_remove_Ljava_lang_Object_using_comparator()

12