Home
last modified time | relevance | path

Searched refs:drainTo (Results 1 – 25 of 30) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DBlockingQueue.java349 int drainTo(Collection<? super E> c); in drainTo() method
374 int drainTo(Collection<? super E> c, int maxElements); in drainTo() method
DDelayQueue.java331 public int drainTo(Collection<? super E> c) { in drainTo() method in DelayQueue
332 return drainTo(c, Integer.MAX_VALUE); in drainTo()
341 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in DelayQueue
DScheduledThreadPoolExecutor.java1262 public int drainTo(Collection<? super Runnable> c) { in drainTo() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
1263 return drainTo(c, Integer.MAX_VALUE); in drainTo()
1266 public int drainTo(Collection<? super Runnable> c, int maxElements) { in drainTo() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
DPriorityBlockingQueue.java711 public int drainTo(Collection<? super E> c) { in drainTo() method in PriorityBlockingQueue
712 return drainTo(c, Integer.MAX_VALUE); in drainTo()
721 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in PriorityBlockingQueue
DLinkedBlockingQueue.java688 public int drainTo(Collection<? super E> c) { in drainTo() method in LinkedBlockingQueue
689 return drainTo(c, Integer.MAX_VALUE); in drainTo()
698 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in LinkedBlockingQueue
DArrayBlockingQueue.java698 public int drainTo(Collection<? super E> c) { in drainTo() method in ArrayBlockingQueue
699 return drainTo(c, Integer.MAX_VALUE); in drainTo()
708 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in ArrayBlockingQueue
DLinkedBlockingDeque.java725 public int drainTo(Collection<? super E> c) { in drainTo() method in LinkedBlockingDeque
726 return drainTo(c, Integer.MAX_VALUE); in drainTo()
735 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in LinkedBlockingDeque
DSynchronousQueue.java1080 public int drainTo(Collection<? super E> c) { in drainTo() method in SynchronousQueue
1096 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() method in SynchronousQueue
/libcore/jsr166-tests/src/test/java/jsr166/
DBlockingQueueTest.java152 q.drainTo(null);
163 q.drainTo(q);
174 q.drainTo(null, 0);
185 q.drainTo(q, 0);
197 assertEquals(0, q.drainTo(new ArrayList(), n));
204 assertEquals(0, q.drainTo(new ArrayList(), n));
DSynchronousQueueTest.java555 q.drainTo(l);
575 q.drainTo(l);
602 while ((drained = q.drainTo(l, 1)) == 0) Thread.yield();
605 while ((drained = q.drainTo(l, 1)) == 0) Thread.yield();
DPriorityBlockingQueueTest.java672 q.drainTo(l); in testDrainTo()
683 q.drainTo(l); in testDrainTo()
702 q.drainTo(l); in testDrainToWithActivePut()
719 q.drainTo(l, i); in testDrainToN()
DDelayQueueTest.java751 q.drainTo(l); in testDrainTo()
761 q.drainTo(l); in testDrainTo()
780 q.drainTo(l); in testDrainToWithActivePut()
793 q.drainTo(l, i); in testDrainToN()
DLinkedBlockingQueueTest.java797 q.drainTo(l); in testDrainTo()
808 q.drainTo(l); in testDrainTo()
827 q.drainTo(l); in testDrainToWithActivePut()
844 q.drainTo(l, i); in testDrainToN()
DArrayBlockingQueueTest.java864 q.drainTo(l); in testDrainTo()
875 q.drainTo(l); in testDrainTo()
894 q.drainTo(l); in testDrainToWithActivePut()
911 q.drainTo(l, i); in testDrainToN()
DLinkedTransferQueueTest.java675 q.drainTo(l); in testDrainTo()
687 q.drainTo(l); in testDrainTo()
705 q.drainTo(l); in testDrainToWithActivePut()
723 q.drainTo(l, i); in testDrainToN()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DBlockingQueueTest.java176 q.drainTo(null);
187 q.drainTo(q);
198 q.drainTo(null, 0);
209 q.drainTo(q, 0);
221 assertEquals(0, q.drainTo(new ArrayList(), n));
228 assertEquals(0, q.drainTo(new ArrayList(), n));
DSynchronousQueueTest.java575 q.drainTo(l);
595 q.drainTo(l);
622 while ((drained = q.drainTo(l, 1)) == 0) Thread.yield();
625 while ((drained = q.drainTo(l, 1)) == 0) Thread.yield();
DPriorityBlockingQueueTest.java705 q.drainTo(l); in testDrainTo()
716 q.drainTo(l); in testDrainTo()
735 q.drainTo(l); in testDrainToWithActivePut()
752 q.drainTo(l, i); in testDrainToN()
DDelayQueueTest.java759 q.drainTo(l); in testDrainTo()
769 q.drainTo(l); in testDrainTo()
788 q.drainTo(l); in testDrainToWithActivePut()
801 q.drainTo(l, i); in testDrainToN()
DLinkedBlockingQueueTest.java827 q.drainTo(l); in testDrainTo()
838 q.drainTo(l); in testDrainTo()
857 q.drainTo(l); in testDrainToWithActivePut()
874 q.drainTo(l, i); in testDrainToN()
DLinkedTransferQueueTest.java692 q.drainTo(l); in testDrainTo()
704 q.drainTo(l); in testDrainTo()
722 q.drainTo(l); in testDrainToWithActivePut()
740 q.drainTo(l, i); in testDrainToN()
DArrayBlockingQueueTest.java908 q.drainTo(l); in testDrainTo()
919 q.drainTo(l); in testDrainTo()
938 q.drainTo(l); in testDrainToWithActivePut()
955 q.drainTo(l, i); in testDrainToN()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DLinkedBlockingQueue.java148 public int drainTo(java.util.Collection<? super E> c) { in drainTo() method in LinkedBlockingQueue
152 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() method in LinkedBlockingQueue
DPriorityBlockingQueue.java160 public int drainTo(java.util.Collection<? super E> c) { in drainTo() method in PriorityBlockingQueue
164 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() method in PriorityBlockingQueue
DLinkedBlockingDeque.java214 public int drainTo(java.util.Collection<? super E> c) { in drainTo() method in LinkedBlockingDeque
218 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() method in LinkedBlockingDeque

12