Searched refs:minCapacity (Results 1 – 2 of 2) sorted by relevance
97 long minCapacity = ((long) mSize) + minAvailable; in ensureAvailable() local98 if (minCapacity <= mArray.length) { in ensureAvailable()101 if (minCapacity > Integer.MAX_VALUE) { in ensureAvailable()103 "Required capacity too large: " + minCapacity + ", max: " + Integer.MAX_VALUE); in ensureAvailable()106 int newSize = (int) Math.max(minCapacity, doubleCurrentSize); in ensureAvailable()
80 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument81 if (minCapacity < 0) { in ensureCapacity()83 } else if (minCapacity <= mMaxBytes) { in ensureCapacity()97 int growthFactorMultiples = (int)Math.ceil(minCapacity / mGrowthFactor / curSize); in ensureCapacity()