Home
last modified time | relevance | path

Searched refs:minCapacity (Results 1 – 2 of 2) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DByteArrayDataSink.java97 long minCapacity = ((long) mSize) + minAvailable; in ensureAvailable() local
98 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()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DByteArrayList.java80 public void ensureCapacity(int minCapacity) { in ensureCapacity() argument
81 if (minCapacity < 0) { in ensureCapacity()
83 } else if (minCapacity <= mMaxBytes) { in ensureCapacity()
97 int growthFactorMultiples = (int)Math.ceil(minCapacity / mGrowthFactor / curSize); in ensureCapacity()