Searched refs:minCapacity (Results 1 – 10 of 10) sorted by relevance
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableCollection.java | 218 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()
|
D | ImmutableMap.java | 193 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/ |
D | appendable.cpp | 58 Appendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument 62 if(minCapacity<1 || scratchCapacity<minCapacity) { in getAppendBuffer()
|
D | charstr.cpp | 82 char *CharString::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument 91 if(appendCapacity>=minCapacity) { in getAppendBuffer() 95 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
|
D | unistr.cpp | 1577 UnicodeString::getBuffer(int32_t minCapacity) { in getBuffer() argument 1578 if(minCapacity>=-1 && cloneArrayIfNeeded(minCapacity)) { in getBuffer() 1748 UnicodeStringAppendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument 1752 if(minCapacity < 1 || scratchCapacity < minCapacity) { in getAppendBuffer() 1757 if(str.cloneArrayIfNeeded(oldLength + minCapacity, oldLength + desiredCapacityHint)) { in getAppendBuffer()
|
D | charstr.h | 103 char *getAppendBuffer(int32_t minCapacity,
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | BOCSU.java | 134 …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/icu4c/source/common/unicode/ |
D | appendable.h | 139 virtual UChar *getAppendBuffer(int32_t minCapacity, 221 virtual UChar *getAppendBuffer(int32_t minCapacity,
|
D | unistr.h | 2757 UChar *getBuffer(int32_t minCapacity);
|
/external/icu/icu4c/source/test/intltest/ |
D | collationtest.cpp | 1464 int32_t minCapacity = key1Length + key2Length; in getMergedCollationKey() local 1465 if(key1Length > 0) { --minCapacity; } in getMergedCollationKey() 1466 if(minCapacity <= mergedKeyCapacity) { in getMergedCollationKey() 1469 if(minCapacity <= 200) { in getMergedCollationKey() 1471 } else if(minCapacity <= 2 * mergedKeyCapacity) { in getMergedCollationKey() 1474 mergedKeyCapacity = minCapacity; in getMergedCollationKey()
|