Home
last modified time | relevance | path

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

/external/icu/icu4c/source/common/
Duvectr64.h128 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
131 UBool expandCapacity(int32_t minimumCapacity, UErrorCode &status);
202 inline UBool UVector64::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
203 if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) { in ensureCapacity()
206 return expandCapacity(minimumCapacity, status); in ensureCapacity()
Duvectr64.cpp116 UBool UVector64::expandCapacity(int32_t minimumCapacity, UErrorCode &status) { in expandCapacity() argument
120 if (minimumCapacity < 0) { in expandCapacity()
124 if (capacity >= minimumCapacity) { in expandCapacity()
127 if (maxCapacity>0 && minimumCapacity>maxCapacity) { in expandCapacity()
136 if (newCap < minimumCapacity) { in expandCapacity()
137 newCap = minimumCapacity; in expandCapacity()
Duvectr32.h129 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
132 UBool expandCapacity(int32_t minimumCapacity, UErrorCode &status);
213 inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
214 if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) { in ensureCapacity()
217 return expandCapacity(minimumCapacity, status); in ensureCapacity()
Duvectr32.cpp198 UBool UVector32::expandCapacity(int32_t minimumCapacity, UErrorCode &status) { in expandCapacity() argument
202 if (minimumCapacity < 0) { in expandCapacity()
206 if (capacity >= minimumCapacity) { in expandCapacity()
209 if (maxCapacity>0 && minimumCapacity>maxCapacity) { in expandCapacity()
218 if (newCap < minimumCapacity) { in expandCapacity()
219 newCap = minimumCapacity; in expandCapacity()
Duvector.cpp329 UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
330 if (minimumCapacity < 0) { in ensureCapacity()
334 if (capacity < minimumCapacity) { in ensureCapacity()
340 if (newCap < minimumCapacity) { in ensureCapacity()
341 newCap = minimumCapacity; in ensureCapacity()
Duvector.h173 UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
/external/okhttp/okio/okio/src/main/java/okio/
DBuffer.java1110 Segment writableSegment(int minimumCapacity) {
1111 if (minimumCapacity < 1 || minimumCapacity > Segment.SIZE) throw new IllegalArgumentException();
1119 if (tail.limit + minimumCapacity > Segment.SIZE || !tail.owner) {