/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SubmissionPublisherTest.java | 697 assertEquals(0, p.offer(1, null)); in testEmptyOffer() 706 p.offer(null, null); in testNullOffer() 724 assertTrue(p.offer(1, null) >= 1); in testLaggedOffer() 725 assertTrue(p.offer(2, null) >= 2); in testLaggedOffer() 727 assertTrue(p.offer(3, null) >= 3); in testLaggedOffer() 729 p.offer(4, null); in testLaggedOffer() 752 assertTrue(p.offer(i, null) >= 0); in testDroppedOffer() 753 p.offer(5, null); in testDroppedOffer() 754 assertTrue(p.offer(6, null) < 0); in testDroppedOffer() 756 assertTrue(p.offer(7, null) < 0); in testDroppedOffer() [all …]
|
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 | 83 assertTrue(q.offer(new Integer(i))); in populatedQueue() 85 assertTrue(q.offer(new Integer(i))); in populatedQueue() 204 q.offer(null); in testOfferNull() 225 assertTrue(q.offer(zero)); in testOffer() 226 assertTrue(q.offer(one)); in testOffer() 238 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()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | CheckedQueue.java | 136 q.offer(null); in testOffer() 143 q.offer(0); in testOffer() 149 assertTrue(q.offer("0"), "queue should have room"); in testOffer() 152 assertFalse(q.offer("1"), "queue should be full"); in testOffer()
|
D | AsLifoQueue.java | 56 check(q.offer("b")); in realMain() 59 check(! q.offer("d")); in realMain()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PriorityQueueTest.java | 51 integerQueue.offer(array[i]); in test_iterator() 92 integerQueue.offer(0); in test_iterator_outofbound() 120 integerQueue.offer(array[i]); in test_iterator_remove() 148 integerQueue.offer(array[i]); in test_iterator_removeEquals() 163 integerQueue.offer(array[i]); in test_iterator_remove_illegalState() 192 integerQueue.offer(array[i]); in test_size() 324 queue.offer(array[i]); in test_ConstructorLjava_util_Colleciton_from_priorityqueue() 362 integerQueue.offer(array[i]); in test_ConstructorLjava_util_PriorityQueue() 423 queue.offer(array[i]); in test_offerLjava_lang_Object() 439 queue.offer(null); in test_offerLjava_lang_Object_null() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | DelayQueue.java | 133 return offer(e); in add() 143 public boolean offer(E e) { in offer() method in DelayQueue 147 q.offer(e); in offer() 166 offer(e); in put() 179 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() method in DelayQueue 180 return offer(e); in offer()
|
D | BlockingQueue.java | 217 boolean offer(E e); in offer() method 251 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
D | BlockingDeque.java | 467 boolean offer(E e); in offer() method 504 boolean offer(E e, long timeout, TimeUnit unit) in offer() method
|
/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 | 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 | PriorityQueueTest.java | 47 assertTrue(q.offer(Integer.valueOf(i))); in populatedQueue() 49 assertTrue(q.offer(Integer.valueOf(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 | PriorityBlockingQueueTest.java | 73 assertTrue(q.offer(Integer.valueOf(i))); in populatedQueue() 75 assertTrue(q.offer(Integer.valueOf(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(Integer.valueOf(0), SHORT_DELAY_MS, MILLISECONDS)); in testTimedOffer() 307 assertTrue(q.offer(Integer.valueOf(0), LONG_DELAY_MS, MILLISECONDS)); in testTimedOffer() 717 assertTrue(q.offer(Integer.valueOf(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(Integer.valueOf(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(Integer.valueOf(j))); in testDrainToN()
|
D | ArrayBlockingQueueTest.java | 64 assertTrue(q.offer(Integer.valueOf(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(Integer.valueOf(j))); in testDrainToN()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Queue.java | 175 boolean offer(E e); in offer() method
|
D | AbstractQueue.java | 95 if (offer(e)) in add()
|
/libcore/ojluni/src/test/java/util/SequencedCollection/ |
D | SimpleDeque.java | 171 public boolean offer(E e) { in offer() method in SimpleDeque 172 return deque.offer(e); in offer()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Queue.annotated.java | 45 public boolean offer(@libcore.util.NullFromTypeParam E e); in offer() method
|