/libcore/luni/src/test/java/tests/api/java/util/concurrent/ |
D | LinkedBlockingDequeTest.java | 30 assertEquals(0, q.remainingCapacity()); in populatedDeque() 289 assertEquals(SIZE, new LinkedBlockingDeque(SIZE).remainingCapacity()); in testConstructor1() 290 assertEquals(Integer.MAX_VALUE, new LinkedBlockingDeque().remainingCapacity()); in testConstructor1() 355 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 360 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 370 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 375 assertEquals(SIZE-i, q.remainingCapacity()); in testRemainingCapacity() 425 assertEquals(0, q.remainingCapacity()); in testPush() 475 assertEquals(0, q.remainingCapacity()); in testAdd() 579 assertEquals(0, q.remainingCapacity()); in testPut() [all …]
|
D | LinkedBlockingQueueTest.java | 33 assertEquals(0, q.remainingCapacity()); in populatedQueue() 43 assertEquals(SIZE, new LinkedBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 44 assertEquals(Integer.MAX_VALUE, new LinkedBlockingQueue().remainingCapacity()); in testConstructor1() 109 assertEquals("should have room for 2", 2, q.remainingCapacity()); in testEmptyFull() 114 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 124 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 129 assertEquals(SIZE-i, q.remainingCapacity()); in testRemainingCapacity() 175 assertEquals(0, q.remainingCapacity()); in testAdd() 277 assertEquals(0, q.remainingCapacity()); in testPut() 290 assertEquals(0, q.remainingCapacity()); in testBlockingPut() [all …]
|
D | ArrayBlockingQueueTest.java | 32 assertEquals(0, q.remainingCapacity()); in populatedQueue() 41 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 119 assertEquals(2, q.remainingCapacity()); in testEmptyFull() 124 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 134 assertEquals(i, q.remainingCapacity()); in testRemainingCapacity() 139 assertEquals(SIZE-i, q.remainingCapacity()); in testRemainingCapacity() 185 assertEquals(0, q.remainingCapacity()); in testAdd() 288 assertEquals(0, q.remainingCapacity()); in testPut() 301 assertEquals(0, q.remainingCapacity()); in testBlockingPut() 313 assertEquals(0, q.remainingCapacity()); in testBlockingPut() [all …]
|
D | DelayQueueTest.java | 118 assertEquals(NOCAP, q.remainingCapacity()); in populatedQueue() 127 assertEquals(NOCAP, new DelayQueue().remainingCapacity()); in testConstructor1() 182 assertEquals(NOCAP, q.remainingCapacity()); in testEmpty() 198 assertEquals(NOCAP, q.remainingCapacity()); in testRemainingCapacity() 203 assertEquals(NOCAP, q.remainingCapacity()); in testRemainingCapacity() 588 assertEquals(NOCAP, q.remainingCapacity()); in testClear()
|
D | SynchronousQueueTest.java | 29 assertEquals(0, q.remainingCapacity()); in testEmptyFull() 40 assertEquals(0, q.remainingCapacity()); in testFairEmptyFull() 80 assertEquals(0, q.remainingCapacity()); in testAdd() 570 assertEquals(0, q.remainingCapacity()); in testOfferInExecutor()
|
D | PriorityBlockingQueueTest.java | 43 assertEquals(NOCAP, q.remainingCapacity()); in populatedQueue() 52 assertEquals(NOCAP, new PriorityBlockingQueue(SIZE).remainingCapacity()); in testConstructor1() 132 assertEquals(NOCAP, q.remainingCapacity()); in testEmpty() 148 assertEquals(NOCAP, q.remainingCapacity()); in testRemainingCapacity() 153 assertEquals(NOCAP, q.remainingCapacity()); in testRemainingCapacity()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | BlockingQueue.java | 264 int remainingCapacity(); in remainingCapacity() method
|
D | ThreadPoolExecutor.java | 1955 int remainingCapacity = e.getQueue().remainingCapacity(); in rejectedExecution() local 1958 if (remainingCapacity != Integer.MAX_VALUE) { in rejectedExecution() 1959 message += "/" + (queueSize + remainingCapacity); in rejectedExecution()
|
D | PriorityBlockingQueue.java | 302 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
|
D | DelayQueue.java | 373 public int remainingCapacity() { in remainingCapacity() method in DelayQueue
|
D | ArrayBlockingQueue.java | 399 public int remainingCapacity() { in remainingCapacity() method in ArrayBlockingQueue
|
D | LinkedBlockingQueue.java | 290 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
|
D | SynchronousQueue.java | 922 public int remainingCapacity() { in remainingCapacity() method in SynchronousQueue
|
D | LinkedBlockingDeque.java | 681 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque
|
D | ScheduledThreadPoolExecutor.java | 960 public int remainingCapacity() { in remainingCapacity() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
|