Home
last modified time | relevance | path

Searched refs:minCapacity (Results 1 – 17 of 17) 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.cpp58 Appendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
62 if(minCapacity<1 || scratchCapacity<minCapacity) { in getAppendBuffer()
Dcharstr.cpp92 char *CharString::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
101 if(appendCapacity>=minCapacity) { in getAppendBuffer()
105 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
Dcharstr.h106 char *getAppendBuffer(int32_t minCapacity,
Dunistr.cpp1682 UnicodeString::getBuffer(int32_t minCapacity) { in getBuffer() argument
1683 if(minCapacity>=-1 && cloneArrayIfNeeded(minCapacity)) { in getBuffer()
1853 UnicodeStringAppendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument
1857 if(minCapacity < 1 || scratchCapacity < minCapacity) { in getAppendBuffer()
1862 if(str.cloneArrayIfNeeded(oldLength + minCapacity, oldLength + desiredCapacityHint)) { in getAppendBuffer()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DBOCSU.java134 …private static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapaci… in ensureAppendCapacity() argument
136 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
137 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DBOCSU.java135 …private static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapaci… in ensureAppendCapacity() argument
137 if (remainingCapacity >= minCapacity) { return; } in ensureAppendCapacity()
138 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.h139 virtual UChar *getAppendBuffer(int32_t minCapacity,
221 virtual UChar *getAppendBuffer(int32_t minCapacity,
Dunistr.h2864 UChar *getBuffer(int32_t minCapacity);
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DComparableTimSort.java770 private Object[] ensureCapacity (int minCapacity) {
771 tmpCount = Math.max(tmpCount, minCapacity);
772 if (tmp.length < minCapacity) {
774 int newSize = minCapacity;
783 newSize = minCapacity;
DTimSort.java804 private T[] ensureCapacity (int minCapacity) {
805 tmpCount = Math.max(tmpCount, minCapacity);
806 if (tmp.length < minCapacity) {
808 int newSize = minCapacity;
817 newSize = minCapacity;
/external/icu/icu4c/source/test/intltest/
Dcollationtest.cpp1461 int32_t minCapacity = key1Length + key2Length; in getMergedCollationKey() local
1462 if(key1Length > 0) { --minCapacity; } in getMergedCollationKey()
1463 if(minCapacity <= mergedKeyCapacity) { in getMergedCollationKey()
1466 if(minCapacity <= 200) { in getMergedCollationKey()
1468 } else if(minCapacity <= 2 * mergedKeyCapacity) { in getMergedCollationKey()
1471 mergedKeyCapacity = minCapacity; in getMergedCollationKey()