HomeSort by relevance Sort by last modified time
    Searched refs:remainingCapacity (Results 1 - 25 of 106) sorted by null

1 2 3 4 5

  /external/guava/guava-tests/test/com/google/common/collect/
EvictingQueueTest.java 71 assertEquals(0, queue.remainingCapacity());
76 assertEquals(1, queue.remainingCapacity());
78 assertEquals(0, queue.remainingCapacity());
83 assertEquals(3, queue.remainingCapacity());
85 assertEquals(2, queue.remainingCapacity());
87 assertEquals(1, queue.remainingCapacity());
89 assertEquals(0, queue.remainingCapacity());
95 assertEquals(1, queue.remainingCapacity());
101 assertEquals(0, queue.remainingCapacity());
107 assertEquals(0, queue.remainingCapacity());
    [all...]
ForwardingBlockingDequeTest.java 47 forward.remainingCapacity();
48 assertEquals("[remainingCapacity]", getCalls());
QueuesTest.java 218 assertEquals(1, Queues.newLinkedBlockingDeque(1).remainingCapacity());
219 assertEquals(11, Queues.newLinkedBlockingDeque(11).remainingCapacity());
229 assertEquals(1, Queues.newLinkedBlockingQueue(1).remainingCapacity());
230 assertEquals(11, Queues.newLinkedBlockingQueue(11).remainingCapacity());
  /libcore/luni/src/main/java/java/util/concurrent/
BlockingQueue.java 71 * time it may have a {@code remainingCapacity} beyond which no
258 * an element will succeed by inspecting {@code remainingCapacity}
264 int remainingCapacity();
DelayQueue.java 382 public int remainingCapacity() {
  /external/guava/guava/src/com/google/common/util/concurrent/
ForwardingBlockingQueue.java 67 @Override public int remainingCapacity() {
68 return delegate().remainingCapacity();
  /external/guava/guava/src/com/google/common/collect/
ForwardingBlockingDeque.java 50 public int remainingCapacity() {
51 return delegate().remainingCapacity();
EvictingQueue.java 75 public int remainingCapacity() {
  /libcore/jsr166-tests/src/test/java/jsr166/
ArrayBlockingQueueTest.java 66 assertEquals(0, q.remainingCapacity());
75 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity());
156 assertEquals(2, q.remainingCapacity());
161 assertEquals(0, q.remainingCapacity());
166 * remainingCapacity decreases on add, increases on remove
171 assertEquals(i, q.remainingCapacity());
172 assertEquals(SIZE, q.size() + q.remainingCapacity());
176 assertEquals(SIZE - i, q.remainingCapacity());
177 assertEquals(SIZE, q.size() + q.remainingCapacity());
199 assertEquals(0, q.remainingCapacity());
    [all...]
LinkedBlockingQueueTest.java 67 assertEquals(0, q.remainingCapacity());
77 assertEquals(SIZE, new LinkedBlockingQueue(SIZE).remainingCapacity());
78 assertEquals(Integer.MAX_VALUE, new LinkedBlockingQueue().remainingCapacity());
145 assertEquals("should have room for 2", 2, q.remainingCapacity());
150 assertEquals(0, q.remainingCapacity());
155 * remainingCapacity decreases on add, increases on remove
160 assertEquals(i, q.remainingCapacity());
161 assertEquals(SIZE, q.size() + q.remainingCapacity());
165 assertEquals(SIZE - i, q.remainingCapacity());
166 assertEquals(SIZE, q.size() + q.remainingCapacity());
    [all...]
LinkedBlockingDequeTest.java 64 assertEquals(0, q.remainingCapacity());
333 assertEquals(SIZE, new LinkedBlockingDeque(SIZE).remainingCapacity());
334 assertEquals(Integer.MAX_VALUE, new LinkedBlockingDeque().remainingCapacity());
401 assertEquals("should have room for 2", 2, q.remainingCapacity());
406 assertEquals(0, q.remainingCapacity());
411 * remainingCapacity decreases on add, increases on remove
416 assertEquals(i, q.remainingCapacity());
417 assertEquals(SIZE, q.size() + q.remainingCapacity());
421 assertEquals(SIZE - i, q.remainingCapacity());
422 assertEquals(SIZE, q.size() + q.remainingCapacity());
    [all...]
SynchronousQueueTest.java 64 assertEquals(0, q.remainingCapacity());
85 assertEquals(0, q.remainingCapacity());
151 assertEquals(0, q.remainingCapacity());
177 assertEquals(0, q.remainingCapacity());
185 assertEquals(0, q.remainingCapacity());
489 assertEquals(0, q.remainingCapacity());
542 assertEquals(0, clone.remainingCapacity());
PriorityBlockingQueueTest.java 77 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
87 new PriorityBlockingQueue(SIZE).remainingCapacity());
168 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
178 * remainingCapacity() always returns Integer.MAX_VALUE
183 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
188 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
BlockingQueueTest.java 198 if (q.remainingCapacity() > 0) {
345 final int size = Math.min(q.remainingCapacity(), SIZE);
DelayQueueTest.java 147 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
156 assertEquals(Integer.MAX_VALUE, new DelayQueue().remainingCapacity());
210 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
220 * remainingCapacity() always returns Integer.MAX_VALUE
225 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
230 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
527 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
LinkedTransferQueueTest.java 132 * remainingCapacity() always returns Integer.MAX_VALUE
137 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
142 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
414 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
559 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
563 assertEquals(Integer.MAX_VALUE, q.remainingCapacity());
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
BOCSU.java 136 int remainingCapacity = sink.bytes.length - sink.size;
137 if (remainingCapacity >= minCapacity) { return; }
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
BOCSU.java 135 int remainingCapacity = sink.bytes.length - sink.size;
136 if (remainingCapacity >= minCapacity) { return; }
  /frameworks/rs/
rsFont.cpp 722 uint32_t remainingCapacity = 0;
725 remainingCapacity += (mCacheLines[i]->mMaxWidth - mCacheLines[i]->mCurrentCol);
728 remainingCapacity = (remainingCapacity * 100) / totalPixels;
729 return remainingCapacity;
734 uint32_t remainingCapacity = getRemainingCacheCapacity();
737 while ((remainingCapacity > 25) && (precacheIdx < l)) {
739 remainingCapacity = getRemainingCacheCapacity();
  /external/icu/icu4c/source/common/
normalizer2impl.h 121 remainingCapacity(0), lastCC(0) {}
152 if(remainingCapacity==0 && !resize(1, errorCode)) {
164 --remainingCapacity;
172 remainingCapacity+=(int32_t)(limit-newLimit);
208 int32_t remainingCapacity;
normalizer2impl.cpp 47 remainingCapacity=str.getCapacity()-length;
71 if(remainingCapacity<2 && !resize(2, errorCode)) {
85 remainingCapacity-=2;
95 if(remainingCapacity<length && !resize(length, errorCode)) {
98 remainingCapacity-=length;
129 if(remainingCapacity<cpLength && !resize(cpLength, errorCode)) {
132 remainingCapacity-=cpLength;
150 if(remainingCapacity<length && !resize(length, errorCode)) {
155 remainingCapacity-=length;
163 remainingCapacity=str.getCapacity()
    [all...]
  /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
MonitorBasedPriorityBlockingQueue.java 312 public int remainingCapacity() {
MonitorBasedArrayBlockingQueue.java 383 * an element will succeed by inspecting <tt>remainingCapacity</tt>
388 public int remainingCapacity() {
  /packages/apps/Nfc/src/com/android/nfc/echoserver/
EchoServer.java 120 if (dumpWhenFull && dataQueue.remainingCapacity() == 0) {
  /external/jetty/src/java/org/eclipse/jetty/util/
BlockingArrayQueue.java 676 public int remainingCapacity()

Completed in 1313 milliseconds

1 2 3 4 5