/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 | 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 | BlockingQueue.java | 219 boolean offer(E e); in offer() method 253 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
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()
|
/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()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SynchronousQueueTest.java | 86 assertFalse(q.offer(zero)); in testEmptyFull() 96 assertFalse(q.offer(one)); in testOffer() 220 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer() 224 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer() 308 try { assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); } in testTimedPollWithOffer() 506 assertFalse(q.offer(one)); 508 assertTrue(q.offer(one, LONG_DELAY_MS, MILLISECONDS)); 563 assertFalse(clone.offer(zero));
|
D | PriorityQueueTest.java | 78 assertTrue(q.offer(new Integer(i))); in populatedQueue() 80 assertTrue(q.offer(new Integer(i))); in populatedQueue() 199 q.offer(null); in testOfferNull() 220 assertTrue(q.offer(zero)); in testOffer() 221 assertTrue(q.offer(one)); in testOffer() 230 q.offer(new Object()); in testOfferNonComparable()
|
D | AbstractQueueTest.java | 54 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Succeed 65 public boolean offer(Integer x) { in offer() method in AbstractQueueTest.Fail
|
D | PriorityBlockingQueueTest.java | 102 assertTrue(q.offer(new Integer(i))); in populatedQueue() 104 assertTrue(q.offer(new Integer(i))); in populatedQueue() 229 assertTrue(q.offer(zero)); in testOffer() 230 assertTrue(q.offer(one)); in testOffer() 239 q.offer(new Object()); in testOfferNonComparable() 339 assertTrue(q.offer(new Integer(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer() 340 assertTrue(q.offer(new Integer(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer() 750 assertTrue(q.offer(new Integer(j))); in testDrainToN()
|
D | LinkedBlockingQueueTest.java | 94 assertTrue(q.offer(new Integer(i))); in populatedQueue() 181 assertFalse(q.offer(three)); in testEmptyFull() 206 assertTrue(q.offer(zero)); in testOffer() 207 assertFalse(q.offer(one)); in testOffer() 375 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer() 379 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer() 765 assertFalse(q.offer(three)); in testOfferInExecutor() 767 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor() 872 assertTrue(q.offer(new Integer(j))); in testDrainToN()
|
D | ArrayBlockingQueueTest.java | 117 assertTrue(q.offer((Integer) i)); in populatedQueue() 222 assertTrue(q.offer(two)); in testEmptyFull() 225 assertFalse(q.offer(three)); in testEmptyFull() 253 assertTrue(q.offer(zero)); in testOffer() 254 assertFalse(q.offer(one)); in testOffer() 423 assertFalse(q.offer(new Object(), timeoutMillis(), MILLISECONDS)); in testTimedOffer() 427 q.offer(new Object(), 2 * LONG_DELAY_MS, MILLISECONDS); in testTimedOffer() 845 assertFalse(q.offer(three)); in testOfferInExecutor() 847 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor() 953 assertTrue(q.offer(new Integer(j))); in testDrainToN()
|
D | BlockingQueueTest.java | 96 q.offer(null); in testOfferNull() 119 q.offer(null, LONG_DELAY_MS, MILLISECONDS); in testTimedOfferNull() 272 assertTrue(q.offer(zero, LONG_DELAY_MS, MILLISECONDS)); in testTimedPollWithOffer()
|
/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
|