Home
last modified time | relevance | path

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

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java48 integerQueue.offer(array[i]); in test_iterator()
89 integerQueue.offer(0); in test_iterator_outofbound()
117 integerQueue.offer(array[i]); in test_iterator_remove()
145 integerQueue.offer(array[i]); in test_iterator_removeEquals()
160 integerQueue.offer(array[i]); in test_iterator_remove_illegalState()
189 integerQueue.offer(array[i]); in test_size()
321 queue.offer(array[i]); in test_ConstructorLjava_util_Colleciton_from_priorityqueue()
359 integerQueue.offer(array[i]); in test_ConstructorLjava_util_PriorityQueue()
420 queue.offer(array[i]); in test_offerLjava_lang_Object()
436 queue.offer(null); in test_offerLjava_lang_Object_null()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DBlockingQueue.java219 boolean offer(E e); in offer() method
253 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
DDelayQueue.java132 return offer(e); in add()
142 public boolean offer(E e) { in offer() method in DelayQueue
146 q.offer(e); in offer()
165 offer(e); in put()
178 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in DelayQueue
179 return offer(e); in offer()
DBlockingDeque.java476 boolean offer(E e); in offer() method
513 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
DPriorityBlockingQueue.java462 return offer(e); in add()
476 public boolean offer(E e) { in offer() method in PriorityBlockingQueue
510 offer(e); // never need to block in put()
528 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in PriorityBlockingQueue
529 return offer(e); // never need to block in offer()
DScheduledThreadPoolExecutor.java1045 public boolean offer(Runnable x) { in offer() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
1073 offer(e); in put()
1077 return offer(e); in add()
1080 public boolean offer(Runnable e, long timeout, TimeUnit unit) { in offer() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
1081 return offer(e); in offer()
/libcore/ojluni/src/main/java/sun/nio/ch/
DEPollPort.java109 this.queue.offer(NEED_TO_POLL); in EPollPort()
217 queue.offer(EXECUTE_TASK_OR_SHUTDOWN); in poll()
231 queue.offer(ev); in poll()
244 queue.offer(NEED_TO_POLL); in poll()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchService.java72 pendingKeys.offer(key); in enqueueKey()
158 pendingKeys.offer(CLOSE_KEY); in close()
/libcore/jsr166-tests/src/test/java/jsr166/
DPriorityQueueTest.java47 assertTrue(q.offer(new Integer(i))); in populatedQueue()
49 assertTrue(q.offer(new Integer(i))); in populatedQueue()
167 q.offer(null); in testOfferNull()
188 assertTrue(q.offer(zero)); in testOffer()
189 assertTrue(q.offer(one)); in testOffer()
198 q.offer(new Object()); in testOfferNonComparable()
199 q.offer(new Object()); in testOfferNonComparable()
DSynchronousQueueTest.java65 assertFalse(q.offer(zero)); in testEmptyFull()
75 assertFalse(q.offer(one)); in testOffer()
199 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
203 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
287 try { assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); } in testTimedPollWithOffer()
486 assertFalse(q.offer(one));
488 assertTrue(q.offer(one, LONG_DELAY_MS, MILLISECONDS));
543 assertFalse(clone.offer(zero));
DPriorityBlockingQueueTest.java73 assertTrue(q.offer(new Integer(i))); in populatedQueue()
75 assertTrue(q.offer(new Integer(i))); in populatedQueue()
199 assertTrue(q.offer(zero)); in testOffer()
200 assertTrue(q.offer(one)); in testOffer()
209 q.offer(new Object()); in testOfferNonComparable()
210 q.offer(new Object()); in testOfferNonComparable()
306 assertTrue(q.offer(new Integer(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer()
307 assertTrue(q.offer(new Integer(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer()
717 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DAbstractQueueTest.java31 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Succeed
42 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Fail
DLinkedBlockingQueueTest.java65 assertTrue(q.offer(new Integer(i))); in populatedQueue()
151 assertFalse(q.offer(three)); in testEmptyFull()
176 assertTrue(q.offer(zero)); in testOffer()
177 assertFalse(q.offer(one)); in testOffer()
345 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
349 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
735 assertFalse(q.offer(three)); in testOfferInExecutor()
737 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
842 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DArrayBlockingQueueTest.java64 assertTrue(q.offer(new Integer(i))); in populatedQueue()
162 assertFalse(q.offer(three)); in testEmptyFull()
187 assertTrue(q.offer(zero)); in testOffer()
188 assertFalse(q.offer(one)); in testOffer()
355 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer()
359 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer()
801 assertFalse(q.offer(three)); in testOfferInExecutor()
803 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
909 assertTrue(q.offer(new Integer(j))); in testDrainToN()
DBlockingQueueTest.java72 q.offer(null); in testOfferNull()
95 q.offer(null, LONG_DELAY_MS, MILLISECONDS); in testTimedOfferNull()
248 assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); in testTimedPollWithOffer()
DDelayQueueTest.java143 assertTrue(q.offer(new PDelay(i))); in populatedQueue()
145 assertTrue(q.offer(new PDelay(i))); in populatedQueue()
241 assertTrue(q.offer(new PDelay(0))); in testOffer()
242 assertTrue(q.offer(new PDelay(1))); in testOffer()
336 assertTrue(q.offer(new PDelay(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer()
337 assertTrue(q.offer(new PDelay(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer()
DConcurrentLinkedQueueTest.java41 assertTrue(q.offer(new Integer(i))); in populatedQueue()
134 q.offer(null); in testOfferNull()
155 assertTrue(q.offer(zero)); in testOffer()
156 assertTrue(q.offer(one)); in testOffer()
DLinkedTransferQueueTest.java611 assertTrue(q.offer(one, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
720 assertTrue(q.offer(j)); in testDrainToN()
760 assertTrue(q.offer(one)); in testWaitingConsumer()
856 assertTrue(q.offer(three)); in testTransfer4()
1011 assertTrue(q.offer(four));
1036 assertTrue(q.offer(four));
1052 assertTrue(q.offer(i));
DLinkedListTest.java39 assertTrue(q.offer(new Integer(i))); in populatedQueue()
108 q.offer(null); in testOfferNull()
118 assertTrue(q.offer(new Integer(0))); in testOffer()
119 assertTrue(q.offer(new Integer(1))); in testOffer()
/libcore/ojluni/src/main/java/java/util/
DQueue.java172 boolean offer(E e); in offer() method
DAbstractQueue.java95 if (offer(e)) in add()
DDeque.java428 boolean offer(E e); in offer() method
/libcore/ojluni/annotations/sdk/nullability/java/util/
DQueue.annotated.java45 public boolean offer(@libcore.util.NullFromTypeParam E e); in offer() method
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DLinkedBlockingQueue.java92 public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit) in offer() method in LinkedBlockingQueue
97 public boolean offer(E e) { in offer() method in LinkedBlockingQueue
DPriorityBlockingQueue.java95 public boolean offer(E e) { in offer() method in PriorityBlockingQueue
103 public boolean offer(E e, long timeout, java.util.concurrent.TimeUnit unit) { in offer() method in PriorityBlockingQueue

123