/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 | 92 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()
|
D | charstr.h | 106 char *getAppendBuffer(int32_t minCapacity,
|
D | unistr.cpp | 1682 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/ |
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/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | BOCSU.java | 135 …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/ |
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 | 139 virtual UChar *getAppendBuffer(int32_t minCapacity, 221 virtual UChar *getAppendBuffer(int32_t minCapacity,
|
D | unistr.h | 2864 UChar *getBuffer(int32_t minCapacity);
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | ComparableTimSort.java | 770 private Object[] ensureCapacity (int minCapacity) { 771 tmpCount = Math.max(tmpCount, minCapacity); 772 if (tmp.length < minCapacity) { 774 int newSize = minCapacity; 783 newSize = minCapacity;
|
D | TimSort.java | 804 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/ |
D | collationtest.cpp | 1461 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()
|