Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/io/
DByteArrayOutputStream.java112 int oldCapacity = buf.length; in grow() local
113 int newCapacity = oldCapacity << 1; in grow()
/libcore/ojluni/src/main/java/java/util/
DPriorityQueue.java292 int oldCapacity = queue.length; in grow() local
294 int newCapacity = oldCapacity + ((oldCapacity < 64) ? in grow()
295 (oldCapacity + 2) : in grow()
296 (oldCapacity >> 1)); in grow()
DVector.java205 int oldCapacity = elementData.length; in trimToSize() local
206 if (elementCount < oldCapacity) { in trimToSize()
259 int oldCapacity = elementData.length; in grow() local
260 int newCapacity = oldCapacity + ((capacityIncrement > 0) ? in grow()
261 capacityIncrement : oldCapacity); in grow()
DHashtable.java392 int oldCapacity = table.length; in rehash() local
396 int newCapacity = (oldCapacity << 1) + 1; in rehash()
398 if (oldCapacity == MAX_ARRAY_SIZE) in rehash()
409 for (int i = oldCapacity ; i-- > 0 ;) { in rehash()
DArrayList.java268 int oldCapacity = elementData.length; in grow() local
269 int newCapacity = oldCapacity + (oldCapacity >> 1); in grow()
DWeakHashMap.java486 int oldCapacity = oldTable.length; in resize() local
487 if (oldCapacity == MAXIMUM_CAPACITY) { in resize()
/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java957 int oldCapacity = queue.length; in grow() local
958 int newCapacity = oldCapacity + (oldCapacity >> 1); // grow 50% in grow()