/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PriorityQueueTest.java | 48 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/ |
D | BlockingQueue.java | 219 boolean offer(E e); in offer() method 253 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
D | DelayQueue.java | 132 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()
|
D | BlockingDeque.java | 476 boolean offer(E e); in offer() method 513 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
D | PriorityBlockingQueue.java | 462 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()
|
D | ScheduledThreadPoolExecutor.java | 1045 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/ |
D | EPollPort.java | 109 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/ |
D | AbstractWatchService.java | 72 pendingKeys.offer(key); in enqueueKey() 158 pendingKeys.offer(CLOSE_KEY); in close()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PriorityQueueTest.java | 47 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()
|
D | SynchronousQueueTest.java | 65 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));
|
D | PriorityBlockingQueueTest.java | 73 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()
|
D | AbstractQueueTest.java | 31 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Succeed 42 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Fail
|
D | LinkedBlockingQueueTest.java | 65 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()
|
D | ArrayBlockingQueueTest.java | 64 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()
|
D | BlockingQueueTest.java | 72 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()
|
D | DelayQueueTest.java | 143 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()
|
D | ConcurrentLinkedQueueTest.java | 41 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()
|
D | LinkedTransferQueueTest.java | 611 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));
|
D | LinkedListTest.java | 39 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/ |
D | Queue.java | 172 boolean offer(E e); in offer() method
|
D | AbstractQueue.java | 95 if (offer(e)) in add()
|
D | Deque.java | 428 boolean offer(E e); in offer() method
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Queue.annotated.java | 45 public boolean offer(@libcore.util.NullFromTypeParam E e); in offer() method
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingQueue.java | 92 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
|
D | PriorityBlockingQueue.java | 95 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
|