Home
last modified time | relevance | path

Searched refs:take (Results 1 – 25 of 48) sorted by relevance

12

/libcore/ojluni/src/test/java/util/concurrent/tck/
DExecutorCompletionServiceTest.java113 Future f = cs.take(); in testTake()
124 Future f2 = cs.take(); in testTake2()
186 assertSame(TEST_STRING, cs.take().get()); in testPollReturnsNull()
205 if (cs.take().get() == TEST_STRING) in testTaskAssortment()
242 Future f2 = cs.take(); in testNewTaskForCallable()
272 Future f2 = cs.take(); in testNewTaskForRunnable()
DExecutorCompletionService9Test.java67 Integer r = cs.take().get(); in solveAll()
85 Integer r = cs.take().get(); in solveAny()
DPriorityBlockingQueueTest.java327 q.take(); in testPutWithTake()
352 assertEquals(i, q.take()); in testTake()
365 assertEquals(i, q.take()); in testBlockingTake()
370 q.take(); in testBlockingTake()
377 q.take(); in testBlockingTake()
582 assertSame(o[i], q.take()); in testToArray()
595 assertSame(ints[i], q.take()); in testToArray2()
DLinkedBlockingQueueTest.java355 assertEquals(0, q.take()); in testPutWithTake()
396 assertEquals(i, q.take()); in testTake()
409 assertEquals(i, q.take()); in testBlockingTake()
414 q.take(); in testBlockingTake()
421 q.take(); in testBlockingTake()
553 assertNotNull(q.take()); in testRemoveElementAndAdd()
680 assertEquals(it.next(), q.take()); in testIterator()
774 assertSame(one, q.take()); in testOfferInExecutor()
DLinkedTransferQueueTest.java228 assertEquals(i, (int) q.take()); in testTake()
241 assertEquals(i, q.take()); in testBlockingTake()
246 q.take(); in testBlockingTake()
253 q.take(); in testBlockingTake()
411 assertSame(q.take(), three); in testRemoveElementAndAdd()
541 assertEquals(it.next(), q.take()); in testIterator()
635 assertSame(one, q.take()); in testOfferInExecutor()
893 assertSame(four, q.take()); in testTransfer5()
961 assertSame(q.take(), hotPotato);
DDelayQueueTest.java357 assertEquals(new PDelay(i), q.take()); in testTake()
370 assertEquals(new PDelay(i), ((PDelay)q.take())); in testBlockingTake()
375 q.take(); in testBlockingTake()
382 q.take(); in testBlockingTake()
601 assertSame(o[i], q.take()); in testToArray()
711 NanoDelay e = q.take(); in testDelay()
DArrayBlockingQueueTest.java403 assertEquals(0, q.take()); in testPutWithTake()
444 assertEquals(i, q.take()); in testTake()
457 assertEquals(i, q.take()); in testBlockingTake()
462 q.take(); in testBlockingTake()
469 q.take(); in testBlockingTake()
758 assertEquals(it.next(), q.take()); in testIterator()
855 assertSame(one, q.take()); in testOfferInExecutor()
DBlockingQueueTest.java291 q.take();
313 q.take();
DLinkedBlockingDequeTest.java667 assertEquals(0, q.take()); in testPutWithTake()
708 assertEquals(i, q.take()); in testTake()
721 assertEquals(i, q.take()); in testBlockingTake()
726 q.take(); in testBlockingTake()
733 q.take(); in testBlockingTake()
897 assertEquals(capacity - 1, q.take()); in testPutFirstWithTake()
1246 assertEquals(0, q.take());
1574 assertEquals(it.next(), q.take());
1732 assertSame(one, q.take());
/libcore/jsr166-tests/src/test/java/jsr166/
DExecutorCompletionServiceTest.java99 Future f = ecs.take(); in testTake()
113 Future f2 = ecs.take(); in testTake2()
182 Future f2 = ecs.take(); in testNewTaskForCallable()
213 Future f2 = ecs.take(); in testNewTaskForRunnable()
DPriorityBlockingQueueTest.java294 q.take(); in testPutWithTake()
319 assertEquals(i, q.take()); in testTake()
332 assertEquals(i, q.take()); in testBlockingTake()
337 q.take(); in testBlockingTake()
344 q.take(); in testBlockingTake()
549 assertSame(o[i], q.take()); in testToArray()
562 assertSame(ints[i], q.take()); in testToArray2()
DLinkedBlockingQueueTest.java325 assertEquals(0, q.take()); in testPutWithTake()
366 assertEquals(i, q.take()); in testTake()
379 assertEquals(i, q.take()); in testBlockingTake()
384 q.take(); in testBlockingTake()
391 q.take(); in testBlockingTake()
523 assertNotNull(q.take()); in testRemoveElementAndAdd()
650 assertEquals(it.next(), q.take()); in testIterator()
744 assertSame(one, q.take()); in testOfferInExecutor()
DLinkedTransferQueueTest.java210 assertEquals(i, (int) q.take()); in testTake()
223 assertEquals(i, q.take()); in testBlockingTake()
228 q.take(); in testBlockingTake()
235 q.take(); in testBlockingTake()
393 assertSame(q.take(), three); in testRemoveElementAndAdd()
523 assertEquals(it.next(), q.take()); in testIterator()
618 assertSame(one, q.take()); in testOfferInExecutor()
879 assertSame(four, q.take()); in testTransfer5()
947 assertSame(q.take(), hotPotato);
DDelayQueueTest.java349 assertEquals(new PDelay(i), q.take()); in testTake()
362 assertEquals(new PDelay(i), ((PDelay)q.take())); in testBlockingTake()
367 q.take(); in testBlockingTake()
374 q.take(); in testBlockingTake()
593 assertSame(o[i], q.take()); in testToArray()
703 NanoDelay e = q.take(); in testDelay()
DArrayBlockingQueueTest.java335 assertEquals(0, q.take()); in testPutWithTake()
376 assertEquals(i, q.take()); in testTake()
389 assertEquals(i, q.take()); in testBlockingTake()
394 q.take(); in testBlockingTake()
401 q.take(); in testBlockingTake()
714 assertEquals(it.next(), q.take()); in testIterator()
811 assertSame(one, q.take()); in testOfferInExecutor()
DBlockingQueueTest.java267 q.take();
289 q.take();
DLinkedBlockingDequeTest.java633 assertEquals(0, q.take()); in testPutWithTake()
674 assertEquals(i, q.take()); in testTake()
687 assertEquals(i, q.take()); in testBlockingTake()
692 q.take(); in testBlockingTake()
699 q.take(); in testBlockingTake()
863 assertEquals(capacity - 1, q.take()); in testPutFirstWithTake()
1212 assertEquals(0, q.take());
1540 assertEquals(it.next(), q.take());
1698 assertSame(one, q.take());
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchService.java114 public final WatchKey take() in take() method in AbstractWatchService
118 WatchKey key = pendingKeys.take(); in take()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutorCompletionService.java194 public Future<V> take() throws InterruptedException { in take() method in ExecutorCompletionService
195 return completionQueue.take(); in take()
DArrayBlockingQueue.java382 public E take() throws InterruptedException { in take() method in ArrayBlockingQueue
676 int take = takeIndex; in drainTo() local
681 E x = (E) items[take]; in drainTo()
683 items[take] = null; in drainTo()
684 if (++take == items.length) take = 0; in drainTo()
692 takeIndex = take; in drainTo()
696 else if (i > take) in drainTo()
DCompletionService.java98 Future<V> take() throws InterruptedException; in take() method
DBlockingQueue.java263 E take() throws InterruptedException; in take() method
DBlockingDeque.java550 E take() throws InterruptedException; in take() method
/libcore/ojluni/src/main/java/java/nio/file/
DWatchService.java173 WatchKey take() throws InterruptedException; in take() method
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java93 ecs.take().get(); in testSecureRandomThreadSafety()

12