/dalvik/libcore/luni/src/main/java/java/util/ |
Queue.java | 52 public boolean offer(E o); method in interface:Queue
|
AbstractQueue.java | 22 * {@code element} are based on {@code offer, poll}, and {@code peek} except 53 if (offer(o)) {
|
PriorityQueue.java | 187 public boolean offer(E o) { method in class:PriorityQueue 274 return offer(o);
|
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
BlockingQueue.java | 43 * <td>{@link #offer offer(e)}</td> 45 * <td>{@link #offer offer(e, time, unit)}</td> 65 * to <tt>add</tt>, <tt>put</tt> or <tt>offer</tt> a <tt>null</tt>. A 159 * use {@link #offer offer}. 190 boolean offer(E e); method in interface:BlockingQueue 224 boolean offer(E e, long timeout, TimeUnit unit) method in interface:BlockingQueue
|
DelayQueue.java | 95 return offer(e); 105 public boolean offer(E e) { method in class:DelayQueue 109 q.offer(e); 128 offer(e); 141 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:DelayQueue 142 return offer(e);
|
PriorityBlockingQueue.java | 146 return offer(e); 154 * @return <tt>true</tt> (as specified by {@link Queue#offer}) 160 public boolean offer(E e) { method in class:PriorityBlockingQueue 164 boolean ok = q.offer(e); 184 offer(e); // never need to block 200 public boolean offer(E e, long timeout, TimeUnit unit) { method in class:PriorityBlockingQueue 201 return offer(e); // never need to block
|
ScheduledThreadPoolExecutor.java | 860 public boolean offer(Runnable x) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue 895 public boolean offer(Runnable e, long timeout, TimeUnit unit) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue [all...] |
ConcurrentLinkedQueue.java | 230 return offer(e); 262 * @return {@code true} (as specified by {@link Queue#offer}) 265 public boolean offer(E e) { method in class:ConcurrentLinkedQueue 657 offer(item);
|
/external/guava/src/com/google/common/collect/ |
ForwardingQueue.java | 39 public boolean offer(E o) { method in class:ForwardingQueue 40 return delegate().offer(o);
|
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/ |
SynchronousQueueTest.java | 34 assertFalse(q.offer(zero)); 45 assertFalse(q.offer(zero)); 49 * offer(null) throws NPE 54 q.offer(null); 71 * offer fails if no active taker 75 assertFalse(q.offer(one)); 218 * timed offer times out if elements not taken 226 threadAssertFalse(q.offer(new Object(), SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); 227 q.offer(new Object(), LONG_DELAY_MS, TimeUnit.MILLISECONDS); 328 * timed offer times out if elements not take [all...] |
AbstractQueueTest.java | 26 public boolean offer(Integer x) { method in class:AbstractQueueTest.Succeed 37 public boolean offer(Integer x) { method in class:AbstractQueueTest.Fail 48 * add returns true if offer succeeds 56 * add throws ISE true if offer fails 68 * add throws NPE if offer does
|
PriorityQueueTest.java | 42 assertTrue(q.offer(new Integer(i))); 44 assertTrue(q.offer(new Integer(i))); 168 * offer(null) throws NPE 173 q.offer(null); 190 * Offer of comparable element succeeds 194 assertTrue(q.offer(zero)); 195 assertTrue(q.offer(one)); 199 * Offer of non-Comparable throws CCE 204 q.offer(new Object()); 205 q.offer(new Object()) [all...] |
PriorityBlockingQueueTest.java | 45 assertTrue(q.offer(new Integer(i))); 47 assertTrue(q.offer(new Integer(i))); 176 * offer(null) throws NPE 181 q.offer(null); 198 * Offer of comparable element succeeds 202 assertTrue(q.offer(zero)); 203 assertTrue(q.offer(one)); 207 * Offer of non-Comparable throws CCE 212 q.offer(new Object()); 213 q.offer(new Object()) [all...] |
ArrayBlockingQueueTest.java | 32 assertTrue(q.offer(new Integer(i))); 135 assertFalse(q.offer(three)); 156 * offer(null) throws NPE 161 q.offer(null); 178 * Offer succeeds if not full; fails if full 182 assertTrue(q.offer(zero)); 183 assertFalse(q.offer(one)); 384 * timed offer times out if full and elements not taken 393 threadAssertFalse(q.offer(new Object(), SHORT_DELAY_MS/2, TimeUnit.MILLISECONDS)); 394 q.offer(new Object(), LONG_DELAY_MS, TimeUnit.MILLISECONDS) [all...] |
LinkedBlockingQueueTest.java | 35 assertTrue(q.offer(new Integer(i))); 126 assertFalse(q.offer(three)); 147 * offer(null) throws NPE 152 q.offer(null); 169 * Offer succeeds if not full; fails if full 173 assertTrue(q.offer(zero)); 174 assertFalse(q.offer(one)); 374 * timed offer times out if full and elements not taken 383 threadAssertFalse(q.offer(new Object(), SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); 384 q.offer(new Object(), LONG_DELAY_MS, TimeUnit.MILLISECONDS) [all...] |
ConcurrentLinkedQueueTest.java | 34 assertTrue(q.offer(new Integer(i))); 129 * offer(null) throws NPE 134 q.offer(null); 152 * Offer returns true 156 assertTrue(q.offer(zero)); 157 assertTrue(q.offer(one));
|
LinkedListTest.java | 32 assertTrue(q.offer(new Integer(i))); 102 * offer(null) succeeds 107 q.offer(null); 114 * Offer succeeds 118 assertTrue(q.offer(new Integer(0))); 119 assertTrue(q.offer(new Integer(1)));
|
DelayQueueTest.java | 125 assertTrue(q.offer(new PDelay(i))); 127 assertTrue(q.offer(new PDelay(i))); 227 * offer(null) throws NPE 232 q.offer(null); 249 * offer non-null succeeds 253 assertTrue(q.offer(new PDelay(0))); 254 assertTrue(q.offer(new PDelay(1))); 403 * timed offer does not time out 412 threadAssertTrue(q.offer(new PDelay(0), SHORT_DELAY_MS, TimeUnit.MILLISECONDS)); 413 threadAssertTrue(q.offer(new PDelay(0), LONG_DELAY_MS, TimeUnit.MILLISECONDS)) [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
PriorityQueueTest.java | 57 integerQueue.offer(array[i]); 110 integerQueue.offer(0); 144 integerQueue.offer(array[i]); 182 integerQueue.offer(array[i]); 217 integerQueue.offer(array[i]); 410 queue.offer(array[i]); 460 integerQueue.offer(array[i]); 539 * @tests java.util.PriorityQueue#offer(Object) 544 method = "offer", 552 queue.offer(array[i]) [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
LinkedListTest.java | 434 list.offer(i); 435 list.offer(i); 436 list.offer(i); 437 list.offer(i); 438 list.offer(i); 439 list.offer(i); 440 list.offer(i); 441 list.offer(i); 442 list.offer(i); 443 list.offer(i) [all...] |
/external/dhcpcd/ |
client.c | 131 struct dhcp_message *offer; member in struct:if_state 452 state->offer = dhcp; 914 state->new = state->offer; 915 state->offer = NULL; 1055 free(state->offer); 1057 state->offer = ipv4ll_get_dhcp(0); 1062 state->offer->yiaddr != iface->addr.s_addr && 1144 free(state->offer); 1145 state->offer = read_lease(state->interface); 1152 free(state->offer); [all...] |
/dalvik/tests/083-jit-regressions/src/ |
Main.java | 80 q.offer(new Integer(0));
|
/frameworks/base/core/java/android/webkit/ |
ByteArrayBuilder.java | 148 sPool.offer(new SoftReference<Chunk>(this, sQueue));
|
HttpAuthHandler.java | 221 mLoaderQueue.offer(loader);
|
SslErrorHandler.java | 143 mLoaderQueue.offer(loader);
|