/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ArrayBlockingQueueTest.java | 119 assertEquals(capacity - size, q.remainingCapacity()); in populatedQueue() 130 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 219 assertEquals(2, q.remainingCapacity()); in testEmptyFull() 224 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 234 int spare = q.remainingCapacity(); in testRemainingCapacity() 237 assertEquals(spare + i, q.remainingCapacity()); in testRemainingCapacity() 238 assertEquals(capacity, q.size() + q.remainingCapacity()); in testRemainingCapacity() 242 assertEquals(capacity - i, q.remainingCapacity()); in testRemainingCapacity() 243 assertEquals(capacity, q.size() + q.remainingCapacity()); in testRemainingCapacity() 263 assertEquals(0, q.remainingCapacity()); in testAdd() [all …]
|
D | LinkedBlockingQueueTest.java | 96 assertEquals(0, q.remainingCapacity()); in populatedQueue() 107 assertEquals(SIZE, new LinkedBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 108 assertEquals(Integer.MAX_VALUE, new LinkedBlockingQueue().remainingCapacity()); in testConstructor1() 175 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 180 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 190 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 191 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 195 assertEquals(SIZE - i, q.remainingCapacity()); in testRemainingCapacity() 196 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 217 assertEquals(0, q.remainingCapacity()); in testAdd() [all …]
|
D | LinkedBlockingDequeTest.java | 96 assertEquals(0, q.remainingCapacity()); in populatedDeque() 367 assertEquals(SIZE, new LinkedBlockingDeque(SIZE).remainingCapacity()); in testConstructor1() 368 assertEquals(Integer.MAX_VALUE, new LinkedBlockingDeque().remainingCapacity()); in testConstructor1() 435 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 440 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 450 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 451 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 455 assertEquals(SIZE - i, q.remainingCapacity()); in testRemainingCapacity() 456 assertEquals(SIZE, q.size() + q.remainingCapacity()); in testRemainingCapacity() 482 assertEquals(0, q.remainingCapacity()); in testPush() [all …]
|
D | SynchronousQueueTest.java | 85 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 106 assertEquals(0, q.remainingCapacity()); in testAdd() 172 assertEquals(0, q.remainingCapacity()); in testBlockingPut() 198 assertEquals(0, q.remainingCapacity()); in testPutWithTake() 206 assertEquals(0, q.remainingCapacity()); in testPutWithTake() 509 assertEquals(0, q.remainingCapacity()); 562 assertEquals(0, clone.remainingCapacity());
|
D | DelayQueueTest.java | 154 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in populatedQueue() 164 assertEquals(Integer.MAX_VALUE, new DelayQueue().remainingCapacity()); in testConstructor1() 218 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testEmpty() 233 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 238 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 535 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testClear()
|
D | PriorityBlockingQueueTest.java | 106 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in populatedQueue() 117 new PriorityBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 198 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testEmpty() 213 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 218 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity()
|
D | LinkedTransferQueueTest.java | 156 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 161 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testRemainingCapacity() 433 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testClear() 577 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testIteratorOrdering() 581 assertEquals(Integer.MAX_VALUE, q.remainingCapacity()); in testIteratorOrdering() 1067 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
|
D | BlockingQueueTest.java | 222 if (q.remainingCapacity() > 0) { 369 final int size = Math.min(q.remainingCapacity(), SIZE);
|
/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 | 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());
|
D | BlockingQueueTest.java | 198 if (q.remainingCapacity() > 0) { 345 final int size = Math.min(q.remainingCapacity(), SIZE);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | BlockingQueue.java | 291 int remainingCapacity(); in remainingCapacity() method
|
D | DelayQueue.java | 387 public int remainingCapacity() { in remainingCapacity() method in DelayQueue
|
D | ScheduledThreadPoolExecutor.java | 1087 public int remainingCapacity() { in remainingCapacity() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
|
D | SynchronousQueue.java | 946 public int remainingCapacity() { in remainingCapacity() method in SynchronousQueue
|
D | PriorityBlockingQueue.java | 597 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
|
D | LinkedBlockingQueue.java | 315 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
|
/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
|