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

/libcore/ojluni/src/main/java/java/util/
H A DIdentityHashMap.java459 * @param newCapacity the new capacity, must be a power of two.
461 private void resize(int newCapacity) { argument
462 // assert (newCapacity & -newCapacity) == newCapacity; // power of 2
463 int newLength = newCapacity * 2;
H A DWeakHashMap.java461 * @param newCapacity the new capacity, MUST be a power of two;
466 void resize(int newCapacity) { argument
474 Entry<K,V>[] newTable = newTable(newCapacity);
484 threshold = (int)(newCapacity * loadFactor);
540 int newCapacity = table.length;
541 while (newCapacity < targetCapacity)
542 newCapacity <<= 1;
543 if (newCapacity > table.length)
544 resize(newCapacity);
H A DHashMap.java498 * @param newCapacity the new capacity, MUST be a power of two;
503 void resize(int newCapacity) { argument
511 HashMapEntry[] newTable = new HashMapEntry[newCapacity];
514 threshold = (int)Math.min(newCapacity * loadFactor, MAXIMUM_CAPACITY + 1);
521 int newCapacity = newTable.length;
525 int i = indexFor(e.hash, newCapacity);
563 int newCapacity = table.length;
564 while (newCapacity < targetCapacity)
565 newCapacity <<= 1;
566 if (newCapacity > tabl
[all...]
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp73 int newCapacity = capacity * 2; local
74 jstring* newArray = new jstring[newCapacity];
83 capacity = newCapacity;

Completed in 120 milliseconds