/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 | 60 Appendable::getAppendBuffer(int32_t minCapacity, in getAppendBuffer() argument 64 if(minCapacity<1 || scratchCapacity<minCapacity) { in getAppendBuffer()
|
D | charstr.cpp | 107 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()
|
D | unistr.cpp | 1753 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()
|
D | charstr.h | 120 char *getAppendBuffer(int32_t minCapacity,
|
D | uniset.cpp | 1637 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/ |
D | ServletUtils.java | 211 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/ |
D | BOCSU.java | 137 …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/ |
D | BOCSU.java | 136 …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/ |
D | Pool.java | 47 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument 48 objects.ensureCapacity(minCapacity); in ensureCapacity()
|
D | TweenManager.java | 125 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument 126 objects.ensureCapacity(minCapacity); in ensureCapacity()
|
D | Timeline.java | 71 public static void ensurePoolCapacity(int minCapacity) { in ensurePoolCapacity() argument 72 pool.ensureCapacity(minCapacity); in ensurePoolCapacity()
|
D | Tween.java | 140 public static void ensurePoolCapacity(int minCapacity) { in ensurePoolCapacity() argument 141 pool.ensureCapacity(minCapacity); in ensurePoolCapacity()
|
/external/icu/icu4c/source/common/unicode/ |
D | appendable.h | 141 virtual char16_t *getAppendBuffer(int32_t minCapacity, 223 virtual char16_t *getAppendBuffer(int32_t minCapacity,
|
D | uniset.h | 1541 static int32_t nextCapacity(int32_t minCapacity);
|
D | unistr.h | 2854 char16_t *getBuffer(int32_t minCapacity);
|
/external/icu/icu4c/source/test/intltest/ |
D | collationtest.cpp | 1459 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/ |
D | UnicodeSet.java | 2933 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/ |
D | UnicodeSet.java | 3006 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()
|