Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DLinkedBlockingQueueTest.java67 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 …]
DArrayBlockingQueueTest.java66 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 …]
DLinkedBlockingDequeTest.java64 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 …]
DSynchronousQueueTest.java64 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());
DDelayQueueTest.java147 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()
DPriorityBlockingQueueTest.java77 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()
DBlockingQueueTest.java198 if (q.remainingCapacity() > 0) {
345 final int size = Math.min(q.remainingCapacity(), SIZE);
DLinkedTransferQueueTest.java138 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/
DBlockingQueue.java293 int remainingCapacity(); in remainingCapacity() method
DDelayQueue.java411 public int remainingCapacity() { in remainingCapacity() method in DelayQueue
DSynchronousQueue.java980 public int remainingCapacity() { in remainingCapacity() method in SynchronousQueue
DPriorityBlockingQueue.java607 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
DLinkedBlockingQueue.java320 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
DScheduledThreadPoolExecutor.java1031 public int remainingCapacity() { in remainingCapacity() method in ScheduledThreadPoolExecutor.DelayedWorkQueue
DArrayBlockingQueue.java450 public int remainingCapacity() { in remainingCapacity() method in ArrayBlockingQueue
DLinkedBlockingDeque.java716 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque
DLinkedTransferQueue.java1524 public int remainingCapacity() { in remainingCapacity() method in LinkedTransferQueue
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DLinkedBlockingQueue.java84 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingQueue
DPriorityBlockingQueue.java132 public int remainingCapacity() { in remainingCapacity() method in PriorityBlockingQueue
DLinkedBlockingDeque.java210 public int remainingCapacity() { in remainingCapacity() method in LinkedBlockingDeque