Home
last modified time | relevance | path

Searched refs:oldCapacity (Results 1 – 25 of 36) sorted by relevance

12

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableCollection.java126 static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
131 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
/external/guava/guava/src/com/google/common/collect/
DImmutableCollection.java380 static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
385 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DMinMaxPriorityQueue.java945 int oldCapacity = queue.length; in calculateNewCapacity() local
947 (oldCapacity < 64) ? (oldCapacity + 1) * 2 : IntMath.checkedMultiply(oldCapacity / 2, 3); in calculateNewCapacity()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DExpandedNameTable.java247 int oldCapacity = m_capacity; in rehash() local
250 int newCapacity = 2 * oldCapacity + 1; in rehash()
255 for (int i = oldCapacity-1; i >=0 ; i--) in rehash()
/external/flatbuffers/java/com/google/flatbuffers/
DArrayReadWriteBuf.java236 int oldCapacity = buffer.length; in requestCapacity() local
237 int newCapacity = oldCapacity + (oldCapacity >> 1); in requestCapacity()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DASN1EncodableVector.java147 int oldCapacity = elements.length; in reallocate() local
148 int newCapacity = Math.max(oldCapacity, minCapacity + (minCapacity >> 1)); in reallocate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1EncodableVector.java145 int oldCapacity = elements.length; in reallocate() local
146 int newCapacity = Math.max(oldCapacity, minCapacity + (minCapacity >> 1)); in reallocate()
/external/guava/android/guava/src/com/google/common/collect/
DObjectCountHashMap.java347 int oldCapacity = entries.length; in resizeEntries() local
349 if (newCapacity > oldCapacity) { in resizeEntries()
350 Arrays.fill(entries, oldCapacity, newCapacity, UNSET); in resizeEntries()
357 int oldCapacity = oldTable.length; in resizeTable() local
358 if (oldCapacity >= MAXIMUM_CAPACITY) { in resizeTable()
DImmutableCollection.java350 static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
355 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DObjectCountLinkedHashMap.java164 int oldCapacity = links.length; in resizeEntries() local
166 Arrays.fill(links, oldCapacity, newCapacity, UNSET); in resizeEntries()
DMinMaxPriorityQueue.java945 int oldCapacity = queue.length; in calculateNewCapacity() local
947 (oldCapacity < 64) ? (oldCapacity + 1) * 2 : IntMath.checkedMultiply(oldCapacity / 2, 3); in calculateNewCapacity()
/external/antlr/tool/src/main/java/org/antlr/misc/
DIntArrayList.java90 int oldCapacity = elements.length; in ensureCapacity() local
91 if (n>=oldCapacity) { in ensureCapacity()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1EncodableVector.java149 int oldCapacity = elements.length; in reallocate() local
150 int newCapacity = Math.max(oldCapacity, minCapacity + (minCapacity >> 1)); in reallocate()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java318 int oldCapacity = usingBytes ? bcdBytes.length : 0; in ensureCapacity() local
321 } else if (oldCapacity < capacity) { in ensureCapacity()
323 System.arraycopy(bcdBytes, 0, bcd1, 0, oldCapacity); in ensureCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java320 int oldCapacity = usingBytes ? bcdBytes.length : 0; in ensureCapacity() local
323 } else if (oldCapacity < capacity) { in ensureCapacity()
325 System.arraycopy(bcdBytes, 0, bcd1, 0, oldCapacity); in ensureCapacity()
/external/guava/android/guava/src/com/google/common/primitives/
DImmutableDoubleArray.java273 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
278 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DImmutableIntArray.java270 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
275 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DImmutableLongArray.java272 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
277 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/moshi/
DLinkedHashTreeMap.java568 int oldCapacity = oldTable.length; in doubleCapacity() local
570 Node<K, V>[] newTable = new Node[oldCapacity * 2]; in doubleCapacity()
576 for (int i = 0; i < oldCapacity; i++) { in doubleCapacity()
587 if ((node.hash & oldCapacity) == 0) { in doubleCapacity()
599 if ((node.hash & oldCapacity) == 0) { in doubleCapacity()
608 newTable[i + oldCapacity] = rightSize > 0 ? rightBuilder.root() : null; in doubleCapacity()
/external/guava/guava/src/com/google/common/primitives/
DImmutableIntArray.java299 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
304 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DImmutableDoubleArray.java302 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
307 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
DImmutableLongArray.java301 private static int expandedCapacity(int oldCapacity, int minCapacity) { in expandedCapacity() argument
306 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; in expandedCapacity()
/external/icu/icu4c/source/i18n/
Dformatted_string_builder.cpp274 int32_t oldCapacity = getCapacity(); in prepareForInsertHelper() local
278 if (fLength + count > oldCapacity) { in prepareForInsertHelper()
321 int32_t newZero = oldCapacity / 2 - (fLength + count) / 2; in prepareForInsertHelper()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedStringBuilder.java328 int oldCapacity = getCapacity();
332 if (length + count > oldCapacity) {
359 int newZero = oldCapacity / 2 - (length + count) / 2;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedStringBuilder.java326 int oldCapacity = getCapacity();
330 if (length + count > oldCapacity) {
357 int newZero = oldCapacity / 2 - (length + count) / 2;

12