Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/collect/
DImmutableCollection.java218 static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
219 if (minCapacity < 0) { in expandedCapacity()
224 if (newCapacity < minCapacity) { in expandedCapacity()
225 newCapacity = Integer.highestOneBit(minCapacity - 1) << 1; in expandedCapacity()
330 private void ensureCapacity(int minCapacity) { in ensureCapacity() argument
331 if (contents.length < minCapacity) { in ensureCapacity()
333 this.contents, expandedCapacity(contents.length, minCapacity)); in ensureCapacity()
DImmutableMap.java193 private void ensureCapacity(int minCapacity) { in ensureCapacity() argument
194 if (minCapacity > entries.length) { in ensureCapacity()
196 entries, ImmutableCollection.Builder.expandedCapacity(entries.length, minCapacity)); in ensureCapacity()
/external/icu/icu4c/source/common/
Dappendable.cpp60 Appendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
64 if(minCapacity<1 || scratchCapacity<minCapacity) { in getAppendBuffer()
Dcharstr.cpp107 char *CharString::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
116 if(appendCapacity>=minCapacity) { in getAppendBuffer()
120 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
Dunistr.cpp1753 UnicodeString::getBuffer(int32_t minCapacity) { in getBuffer() argument
1754 if(minCapacity>=-1 && cloneArrayIfNeeded(minCapacity)) { in getBuffer()
1924 UnicodeStringAppendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
1928 if(minCapacity < 1 || scratchCapacity < minCapacity) { in getAppendBuffer()
1933 if(minCapacity <= (kMaxCapacity - oldLength) && in getAppendBuffer()
1935 str.cloneArrayIfNeeded(oldLength + minCapacity, oldLength + desiredCapacityHint)) { in getAppendBuffer()
Dcharstr.h120 char *getAppendBuffer(int32_t minCapacity,
Duniset.cpp1637 int32_t UnicodeSet::nextCapacity(int32_t minCapacity) { in nextCapacity() argument
1639 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
1640 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
1641 } else if (minCapacity <= 2500) { in nextCapacity()
1642 return 5 * minCapacity; in nextCapacity()
1644 int32_t newCapacity = 2 * minCapacity; in nextCapacity()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DServletUtils.java211 private void ensureCapacity(int minCapacity) { in ensureCapacity() argument
213 if (cap >= minCapacity) { in ensureCapacity()
217 if (newCapacity < minCapacity) { in ensureCapacity()
219 newCapacity = minCapacity; in ensureCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DBOCSU.java137 …private static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapaci… in ensureAppendCapacity() argument
139 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
140 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DBOCSU.java136 …private static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapaci… in ensureAppendCapacity() argument
138 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
139 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/
DPool.java47 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument
48 objects.ensureCapacity(minCapacity); in ensureCapacity()
DTweenManager.java125 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument
126 objects.ensureCapacity(minCapacity); in ensureCapacity()
DTimeline.java71 public static void ensurePoolCapacity(int minCapacity) { in ensurePoolCapacity() argument
72 pool.ensureCapacity(minCapacity); in ensurePoolCapacity()
DTween.java140 public static void ensurePoolCapacity(int minCapacity) { in ensurePoolCapacity() argument
141 pool.ensureCapacity(minCapacity); in ensurePoolCapacity()
/external/icu/icu4c/source/common/unicode/
Dappendable.h141 virtual char16_t *getAppendBuffer(int32_t minCapacity,
223 virtual char16_t *getAppendBuffer(int32_t minCapacity,
Duniset.h1541 static int32_t nextCapacity(int32_t minCapacity);
Dunistr.h2854 char16_t *getBuffer(int32_t minCapacity);
/external/icu/icu4c/source/test/intltest/
Dcollationtest.cpp1459 int32_t minCapacity = key1Length + key2Length; in getMergedCollationKey() local
1460 if(key1Length > 0) { --minCapacity; } in getMergedCollationKey()
1461 if(minCapacity <= mergedKeyCapacity) { in getMergedCollationKey()
1464 if(minCapacity <= 200) { in getMergedCollationKey()
1466 } else if(minCapacity <= 2 * mergedKeyCapacity) { in getMergedCollationKey()
1469 mergedKeyCapacity = minCapacity; in getMergedCollationKey()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeSet.java2933 private int nextCapacity(int minCapacity) { in nextCapacity() argument
2935 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
2936 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
2937 } else if (minCapacity <= 2500) { in nextCapacity()
2938 return 5 * minCapacity; in nextCapacity()
2940 int newCapacity = 2 * minCapacity; in nextCapacity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeSet.java3006 private int nextCapacity(int minCapacity) { in nextCapacity() argument
3008 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
3009 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
3010 } else if (minCapacity <= 2500) { in nextCapacity()
3011 return 5 * minCapacity; in nextCapacity()
3013 int newCapacity = 2 * minCapacity; in nextCapacity()