/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | BlockingQueue.java | 349 int drainTo(Collection<? super E> c); in drainTo() method 374 int drainTo(Collection<? super E> c, int maxElements); in drainTo() method
|
D | DelayQueue.java | 331 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
|
D | ScheduledThreadPoolExecutor.java | 1262 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
|
D | PriorityBlockingQueue.java | 711 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
|
D | LinkedBlockingQueue.java | 688 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
|
D | ArrayBlockingQueue.java | 698 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
|
D | LinkedBlockingDeque.java | 725 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
|
D | SynchronousQueue.java | 1080 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/ |
D | BlockingQueueTest.java | 152 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));
|
D | SynchronousQueueTest.java | 555 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();
|
D | PriorityBlockingQueueTest.java | 672 q.drainTo(l); in testDrainTo() 683 q.drainTo(l); in testDrainTo() 702 q.drainTo(l); in testDrainToWithActivePut() 719 q.drainTo(l, i); in testDrainToN()
|
D | DelayQueueTest.java | 751 q.drainTo(l); in testDrainTo() 761 q.drainTo(l); in testDrainTo() 780 q.drainTo(l); in testDrainToWithActivePut() 793 q.drainTo(l, i); in testDrainToN()
|
D | LinkedBlockingQueueTest.java | 797 q.drainTo(l); in testDrainTo() 808 q.drainTo(l); in testDrainTo() 827 q.drainTo(l); in testDrainToWithActivePut() 844 q.drainTo(l, i); in testDrainToN()
|
D | ArrayBlockingQueueTest.java | 864 q.drainTo(l); in testDrainTo() 875 q.drainTo(l); in testDrainTo() 894 q.drainTo(l); in testDrainToWithActivePut() 911 q.drainTo(l, i); in testDrainToN()
|
D | LinkedTransferQueueTest.java | 675 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/ |
D | BlockingQueueTest.java | 176 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));
|
D | SynchronousQueueTest.java | 575 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();
|
D | PriorityBlockingQueueTest.java | 705 q.drainTo(l); in testDrainTo() 716 q.drainTo(l); in testDrainTo() 735 q.drainTo(l); in testDrainToWithActivePut() 752 q.drainTo(l, i); in testDrainToN()
|
D | DelayQueueTest.java | 759 q.drainTo(l); in testDrainTo() 769 q.drainTo(l); in testDrainTo() 788 q.drainTo(l); in testDrainToWithActivePut() 801 q.drainTo(l, i); in testDrainToN()
|
D | LinkedBlockingQueueTest.java | 827 q.drainTo(l); in testDrainTo() 838 q.drainTo(l); in testDrainTo() 857 q.drainTo(l); in testDrainToWithActivePut() 874 q.drainTo(l, i); in testDrainToN()
|
D | LinkedTransferQueueTest.java | 692 q.drainTo(l); in testDrainTo() 704 q.drainTo(l); in testDrainTo() 722 q.drainTo(l); in testDrainToWithActivePut() 740 q.drainTo(l, i); in testDrainToN()
|
D | ArrayBlockingQueueTest.java | 908 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/ |
D | LinkedBlockingQueue.java | 148 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
|
D | PriorityBlockingQueue.java | 160 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
|
D | LinkedBlockingDeque.java | 214 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
|