Home
last modified time | relevance | path

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

/external/icu/icu4c/source/common/
Duvectr64.h130 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
133 UBool expandCapacity(int32_t minimumCapacity, UErrorCode &status);
204 inline UBool UVector64::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
205 if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) { in ensureCapacity()
208 return expandCapacity(minimumCapacity, status); in ensureCapacity()
Duvectr64.cpp118 UBool UVector64::expandCapacity(int32_t minimumCapacity, UErrorCode &status) { in expandCapacity() argument
122 if (minimumCapacity < 0) { in expandCapacity()
126 if (capacity >= minimumCapacity) { in expandCapacity()
129 if (maxCapacity>0 && minimumCapacity>maxCapacity) { in expandCapacity()
138 if (newCap < minimumCapacity) { in expandCapacity()
139 newCap = minimumCapacity; in expandCapacity()
Duvectr32.h131 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
134 UBool expandCapacity(int32_t minimumCapacity, UErrorCode &status);
215 inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
216 if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) { in ensureCapacity()
219 return expandCapacity(minimumCapacity, status); in ensureCapacity()
Duvectr32.cpp200 UBool UVector32::expandCapacity(int32_t minimumCapacity, UErrorCode &status) { in expandCapacity() argument
204 if (minimumCapacity < 0) { in expandCapacity()
208 if (capacity >= minimumCapacity) { in expandCapacity()
211 if (maxCapacity>0 && minimumCapacity>maxCapacity) { in expandCapacity()
220 if (newCap < minimumCapacity) { in expandCapacity()
221 newCap = minimumCapacity; in expandCapacity()
Duvector.cpp331 UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() argument
332 if (minimumCapacity < 0) { in ensureCapacity()
336 if (capacity < minimumCapacity) { in ensureCapacity()
342 if (newCap < minimumCapacity) { in ensureCapacity()
343 newCap = minimumCapacity; in ensureCapacity()
Duvector.h175 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) {
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DBuffer.java1112 Segment writableSegment(int minimumCapacity) {
1113 if (minimumCapacity < 1 || minimumCapacity > Segment.SIZE) throw new IllegalArgumentException();
1121 if (tail.limit + minimumCapacity > Segment.SIZE || !tail.owner) {