/libcore/luni/src/main/java/java/util/concurrent/ |
D | BlockingQueue.java | 189 boolean offer(E e); in offer() method 223 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
D | DelayQueue.java | 97 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()
|
D | BlockingDeque.java | 440 boolean offer(E e); in offer() method 477 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
D | PriorityBlockingQueue.java | 424 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()
|
D | ScheduledThreadPoolExecutor.java | 972 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()
|
D | LinkedTransferQueue.java | 1021 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/ |
D | PriorityQueueTest.java | 44 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/ |
D | PriorityQueueTest.java | 36 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()
|
D | PriorityBlockingQueueTest.java | 46 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()
|
D | SynchronousQueueTest.java | 37 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));
|
D | AbstractQueueTest.java | 20 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Succeed 31 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Fail
|
D | LinkedBlockingQueueTest.java | 36 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()
|
D | ArrayBlockingQueueTest.java | 35 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()
|
D | BlockingQueueTest.java | 60 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()
|
D | ConcurrentLinkedQueueTest.java | 29 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()
|
D | DelayQueueTest.java | 119 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()
|
D | LinkedTransferQueueTest.java | 574 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()
|
D | LinkedListTest.java | 28 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()
|
D | LinkedBlockingDequeTest.java | 35 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)));
|
D | ConcurrentLinkedDequeTest.java | 30 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/ |
D | Queue.java | 151 boolean offer(E e); in offer() method
|
D | AbstractQueue.java | 66 if (offer(e)) in add()
|
D | Deque.java | 396 boolean offer(E e); in offer() method
|
D | PriorityQueue.java | 187 public boolean offer(E o) { in offer() method in PriorityQueue 270 return offer(o); in add()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldPriorityQueueTest.java | 46 queue.offer(array[i]); in test_remove_Ljava_lang_Object_using_comparator()
|