Home
last modified time | relevance | path

Searched refs:remainingCapacity (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/java/tests/api/java/util/concurrent/
DLinkedBlockingDequeTest.java30 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 …]
DLinkedBlockingQueueTest.java33 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 …]
DArrayBlockingQueueTest.java32 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 …]
DDelayQueueTest.java118 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()
DSynchronousQueueTest.java29 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()
DPriorityBlockingQueueTest.java43 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/
DBlockingQueue.java264 int remainingCapacity(); in remainingCapacity() method
DThreadPoolExecutor.java1955 int remainingCapacity = e.getQueue().remainingCapacity(); in rejectedExecution() local
1958 if (remainingCapacity != Integer.MAX_VALUE) { in rejectedExecution()
1959 message += "/" + (queueSize + remainingCapacity); in rejectedExecution()
DPriorityBlockingQueue.java302 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
DDelayQueue.java373 public int remainingCapacity() { in remainingCapacity() method in DelayQueue
DArrayBlockingQueue.java399 public int remainingCapacity() { in remainingCapacity() method in ArrayBlockingQueue
DLinkedBlockingQueue.java290 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
DSynchronousQueue.java922 public int remainingCapacity() { in remainingCapacity() method in SynchronousQueue
DLinkedBlockingDeque.java681 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque
DScheduledThreadPoolExecutor.java960 public int remainingCapacity() { in remainingCapacity() method in ScheduledThreadPoolExecutor.DelayedWorkQueue