Searched defs:newCapacity (Results 1 - 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
H A DAbstractStringBuilder.java126 newCapacity(minimumCapacity));
149 private int newCapacity(int minCapacity) { method in class:AbstractStringBuilder
151 int newCapacity = (value.length << 1) + 2;
152 if (newCapacity - minCapacity < 0) {
153 newCapacity = minCapacity;
155 return (newCapacity <= 0 || MAX_ARRAY_SIZE - newCapacity < 0)
157 : newCapacity;
/libcore/ojluni/src/main/java/java/util/
H A DIdentityHashMap.java454 * @param newCapacity the new capacity, must be a power of two.
457 private boolean resize(int newCapacity) { argument
458 // assert (newCapacity & -newCapacity) == newCapacity; // power of 2
459 int newLength = newCapacity * 2;
H A DWeakHashMap.java479 * @param newCapacity the new capacity, MUST be a power of two;
484 void resize(int newCapacity) { argument
492 Entry<K,V>[] newTable = newTable(newCapacity);
502 threshold = (int)(newCapacity * loadFactor);
558 int newCapacity = table.length;
559 while (newCapacity < targetCapacity)
560 newCapacity <<= 1;
561 if (newCapacity > table.length)
562 resize(newCapacity);
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp75 int newCapacity = capacity * 2; local
76 jstring* newArray = new jstring[newCapacity];
85 capacity = newCapacity;

Completed in 3011 milliseconds