/libcore/jsr166-tests/src/test/java/jsr166/ |
D | LinkedBlockingQueueTest.java | 67 assertEquals(0, q.remainingCapacity()); in populatedQueue() 77 assertEquals(SIZE, new LinkedBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 78 assertEquals(Integer.MAX_VALUE, new LinkedBlockingQueue().remainingCapacity()); in testConstructor1() 145 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 150 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 160 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 161 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 165 assertEquals(SIZE - i, q.remainingCapacity()); in testRemainingCapacity() 166 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 187 assertEquals(0, q.remainingCapacity()); in testAdd() [all …]
|
D | ArrayBlockingQueueTest.java | 66 assertEquals(0, q.remainingCapacity()); in populatedQueue() 75 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 156 assertEquals(2, q.remainingCapacity()); in testEmptyFull() 161 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 171 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 172 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 176 assertEquals(SIZE - i, q.remainingCapacity()); in testRemainingCapacity() 177 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 199 assertEquals(0, q.remainingCapacity()); in testAdd() 271 assertEquals(0, q.remainingCapacity()); in testPut() [all …]
|
D | LinkedBlockingDequeTest.java | 64 assertEquals(0, q.remainingCapacity()); in populatedDeque() 333 assertEquals(SIZE, new LinkedBlockingDeque(SIZE).remainingCapacity()); in testConstructor1() 334 assertEquals(Integer.MAX_VALUE, new LinkedBlockingDeque().remainingCapacity()); in testConstructor1() 401 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 406 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 416 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 417 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 421 assertEquals(SIZE - i, q.remainingCapacity()); in testRemainingCapacity() 422 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 448 assertEquals(0, q.remainingCapacity()); in testPush() [all …]
|
D | SynchronousQueueTest.java | 64 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 85 assertEquals(0, q.remainingCapacity()); in testAdd() 151 assertEquals(0, q.remainingCapacity()); in testBlockingPut() 177 assertEquals(0, q.remainingCapacity()); in testPutWithTake() 185 assertEquals(0, q.remainingCapacity()); in testPutWithTake() 489 assertEquals(0, q.remainingCapacity()); 542 assertEquals(0, clone.remainingCapacity());
|
D | DelayQueueTest.java | 147 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in populatedQueue() 156 assertEquals(Integer.MAX_VALUE, new DelayQueue().remainingCapacity()); in testConstructor1() 210 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testEmpty() 225 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 230 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 527 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testClear()
|
D | PriorityBlockingQueueTest.java | 77 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in populatedQueue() 87 new PriorityBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 168 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testEmpty() 183 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 188 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity()
|
D | BlockingQueueTest.java | 198 if (q.remainingCapacity() > 0) { 345 final int size = Math.min(q.remainingCapacity(), SIZE);
|
D | LinkedTransferQueueTest.java | 138 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 143 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 415 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testClear() 560 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testIteratorOrdering() 564 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testIteratorOrdering() 1053 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | BlockingQueue.java | 293 int remainingCapacity(); in remainingCapacity() method
|
D | DelayQueue.java | 411 public int remainingCapacity() { in remainingCapacity() method in DelayQueue
|
D | SynchronousQueue.java | 980 public int remainingCapacity() { in remainingCapacity() method in SynchronousQueue
|
D | PriorityBlockingQueue.java | 607 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
|
D | LinkedBlockingQueue.java | 320 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
|
D | ScheduledThreadPoolExecutor.java | 1031 public int remainingCapacity() { in remainingCapacity() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
|
D | ArrayBlockingQueue.java | 450 public int remainingCapacity() { in remainingCapacity() method in ArrayBlockingQueue
|
D | LinkedBlockingDeque.java | 716 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque
|
D | LinkedTransferQueue.java | 1524 public int remainingCapacity() { in remainingCapacity() method in LinkedTransferQueue
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingQueue.java | 84 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
|
D | PriorityBlockingQueue.java | 132 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
|
D | LinkedBlockingDeque.java | 210 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque
|