Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/collect/
DEvictingQueueTest.java71 assertEquals(0, queue.remainingCapacity()); in testRemainingCapacity_maxSize0()
76 assertEquals(1, queue.remainingCapacity()); in testRemainingCapacity_maxSize1()
78 assertEquals(0, queue.remainingCapacity()); in testRemainingCapacity_maxSize1()
83 assertEquals(3, queue.remainingCapacity()); in testRemainingCapacity_maxSize3()
85 assertEquals(2, queue.remainingCapacity()); in testRemainingCapacity_maxSize3()
87 assertEquals(1, queue.remainingCapacity()); in testRemainingCapacity_maxSize3()
89 assertEquals(0, queue.remainingCapacity()); in testRemainingCapacity_maxSize3()
95 assertEquals(1, queue.remainingCapacity()); in testEvictingAfterOne()
101 assertEquals(0, queue.remainingCapacity()); in testEvictingAfterOne()
107 assertEquals(0, queue.remainingCapacity()); in testEvictingAfterOne()
[all …]
DQueuesTest.java218 assertEquals(1, Queues.newLinkedBlockingDeque(1).remainingCapacity()); in testNewLinkedBlockingDequeCapacity()
219 assertEquals(11, Queues.newLinkedBlockingDeque(11).remainingCapacity()); in testNewLinkedBlockingDequeCapacity()
229 assertEquals(1, Queues.newLinkedBlockingQueue(1).remainingCapacity()); in testNewLinkedBlockingQueueCapacity()
230 assertEquals(11, Queues.newLinkedBlockingQueue(11).remainingCapacity()); in testNewLinkedBlockingQueueCapacity()
DForwardingBlockingDequeTest.java47 forward.remainingCapacity(); in testRemainingCapacity()
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingBlockingQueue.java67 @Override public int remainingCapacity() { in remainingCapacity() method in ForwardingBlockingQueue
68 return delegate().remainingCapacity(); in remainingCapacity()
/external/guava/guava/src/com/google/common/collect/
DForwardingBlockingDeque.java50 public int remainingCapacity() { in remainingCapacity() method in ForwardingBlockingDeque
51 return delegate().remainingCapacity(); in remainingCapacity()
DEvictingQueue.java75 public int remainingCapacity() { in remainingCapacity() method in EvictingQueue
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DBOCSU.java138 int remainingCapacity = sink.bytes.length - sink.size; in ensureAppendCapacity() local
139 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DBOCSU.java137 int remainingCapacity = sink.bytes.length - sink.size; in ensureAppendCapacity() local
138 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
/external/icu/icu4c/source/common/
Dnormalizer2impl.cpp176 remainingCapacity(str.getCapacity()), lastCC(0) { in ReorderingBuffer()
192 remainingCapacity=str.getCapacity()-length; in init()
242 if(remainingCapacity<2 && !resize(2, errorCode)) { in appendSupplementary()
256 remainingCapacity-=2; in appendSupplementary()
266 if(remainingCapacity<length && !resize(length, errorCode)) { in append()
269 remainingCapacity-=length; in append()
303 if(remainingCapacity<cpLength && !resize(cpLength, errorCode)) { in appendZeroCC()
306 remainingCapacity-=cpLength; in appendZeroCC()
324 if(remainingCapacity<length && !resize(length, errorCode)) { in appendZeroCC()
329 remainingCapacity-=length; in appendZeroCC()
[all …]
Dnormalizer2impl.h145 remainingCapacity(0), lastCC(0) {} in ReorderingBuffer()
173 if(remainingCapacity==0 && !resize(1, errorCode)) { in appendBMP()
185 --remainingCapacity; in appendBMP()
193 remainingCapacity+=(int32_t)(limit-newLimit); in setReorderingLimit()
229 int32_t remainingCapacity; variable
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedPriorityBlockingQueue.java312 public int remainingCapacity() { in remainingCapacity() method in MonitorBasedPriorityBlockingQueue
DMonitorBasedArrayBlockingQueue.java388 public int remainingCapacity() { in remainingCapacity() method in MonitorBasedArrayBlockingQueue