Home
last modified time | relevance | path

Searched refs:ensureCapacity (Results 1 – 25 of 122) sorted by relevance

12345

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java109 ensureCapacity(position + 1); in setDigitPos()
113 ensureCapacity(position + 1); in setDigitPos()
127 ensureCapacity(precision + numDigits); in shiftLeft()
192 ensureCapacity(); in readLongToBcd()
217 ensureCapacity(); // allocate initial byte array in readBigIntegerToBcd()
221 ensureCapacity(i + 1); in readBigIntegerToBcd()
324 private void ensureCapacity() { in ensureCapacity() method in DecimalQuantity_DualStorageBCD
325 ensureCapacity(40); in ensureCapacity()
328 private void ensureCapacity(int capacity) { in ensureCapacity() method in DecimalQuantity_DualStorageBCD
355 ensureCapacity(); in switchStorage()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java107 ensureCapacity(position + 1); in setDigitPos()
111 ensureCapacity(position + 1); in setDigitPos()
125 ensureCapacity(precision + numDigits); in shiftLeft()
190 ensureCapacity(); in readLongToBcd()
215 ensureCapacity(); // allocate initial byte array in readBigIntegerToBcd()
219 ensureCapacity(i + 1); in readBigIntegerToBcd()
322 private void ensureCapacity() { in ensureCapacity() method in DecimalQuantity_DualStorageBCD
323 ensureCapacity(40); in ensureCapacity()
326 private void ensureCapacity(int capacity) { in ensureCapacity() method in DecimalQuantity_DualStorageBCD
353 ensureCapacity(); in switchStorage()
[all …]
/external/icu/icu4c/source/common/
Dcharstr.cpp39 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom()
66 if(ensureCapacity(len+2, 0, errorCode)) { in append()
99 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
120 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
140 if(ensureCapacity(len+ucharsLen+1, 0, errorCode)) { in appendInvariantChars()
148 UBool CharString::ensureCapacity(int32_t capacity, in ensureCapacity() function in CharString
Duvectr64.h130 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
204 inline UBool UVector64::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function
218 if (ensureCapacity(count + 1, status)) { in addElement()
225 if (ensureCapacity(count+size, status) == FALSE) { in reserveBlock()
Duvectr32.h131 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
215 inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function
229 if (ensureCapacity(count + 1, status)) { in addElement()
236 if (ensureCapacity(count+size, status) == FALSE) { in reserveBlock()
Duvector.cpp99 if (ensureCapacity(other.count, ec)) { in assign()
128 if (ensureCapacity(count + 1, status)) { in addElement()
134 if (ensureCapacity(count + 1, status)) { in addElement()
165 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) { in insertElementAt()
177 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) { in insertElementAt()
331 UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function in UVector
374 if (!ensureCapacity(newSize, status)) { in setSize()
477 if (ensureCapacity(count + 1, ec)) { in sortedInsert()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DByteBuffer.java88 ensureCapacity(length + chunk); in ByteBuffer()
184 ensureCapacity(length + 1); in append()
198 ensureCapacity(length + len); in append()
317 private void ensureCapacity(int requestedLength) in ensureCapacity() method in ByteBuffer
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DBytesTest.java138 assertSame(EMPTY, Bytes.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
139 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
140 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
143 Bytes.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
148 Bytes.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
154 Bytes.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DCharsTest.java216 assertSame(EMPTY, Chars.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
217 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
218 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
221 Chars.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
226 Chars.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
232 Chars.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DBooleansTest.java115 assertSame(EMPTY, Booleans.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
116 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 0, 1)); in testEnsureCapacity()
117 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 1, 1)); in testEnsureCapacity()
120 Booleans.ensureCapacity(new boolean[] {true}, 2, 1))); in testEnsureCapacity()
125 Booleans.ensureCapacity(ARRAY_FALSE, -1, 1); in testEnsureCapacity_fail()
131 Booleans.ensureCapacity(ARRAY_FALSE, 1, -1); in testEnsureCapacity_fail()
/external/guava/guava-tests/test/com/google/common/primitives/
DBytesTest.java140 assertSame(EMPTY, Bytes.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
141 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
142 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
145 Bytes.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
150 Bytes.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
156 Bytes.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DBooleansTest.java118 assertSame(EMPTY, Booleans.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
119 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 0, 1)); in testEnsureCapacity()
120 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 1, 1)); in testEnsureCapacity()
123 Booleans.ensureCapacity(new boolean[] {true}, 2, 1))); in testEnsureCapacity()
128 Booleans.ensureCapacity(ARRAY_FALSE, -1, 1); in testEnsureCapacity_fail()
134 Booleans.ensureCapacity(ARRAY_FALSE, 1, -1); in testEnsureCapacity_fail()
DCharsTest.java264 assertSame(EMPTY, Chars.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
265 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
266 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
269 Chars.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
274 Chars.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
280 Chars.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCharsTrieBuilder.java135 private void ensureCapacity(int length) { in ensureCapacity() method in CharsTrieBuilder
156 ensureCapacity(newLength); in write()
170 ensureCapacity(newLength); in write()
181 ensureCapacity(newLength); in write()
DBytesTrieBuilder.java157 private void ensureCapacity(int length) { in ensureCapacity() method in BytesTrieBuilder
178 ensureCapacity(newLength); in write()
192 ensureCapacity(newLength); in write()
203 ensureCapacity(newLength); in write()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCharsTrieBuilder.java139 private void ensureCapacity(int length) { in ensureCapacity() method in CharsTrieBuilder
160 ensureCapacity(newLength); in write()
174 ensureCapacity(newLength); in write()
185 ensureCapacity(newLength); in write()
DBytesTrieBuilder.java161 private void ensureCapacity(int length) { in ensureCapacity() method in BytesTrieBuilder
182 ensureCapacity(newLength); in write()
196 ensureCapacity(newLength); in write()
207 ensureCapacity(newLength); in write()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_ByteArrayBCD.java65 ensureCapacity(position + 1); in setDigitPos()
71 ensureCapacity(precision + numDigits); in shiftLeft()
146 ensureCapacity(i + 1); in readBigIntegerToBcd()
204 private void ensureCapacity(int capacity) { in ensureCapacity() method in DecimalQuantity_ByteArrayBCD
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_ByteArrayBCD.java68 ensureCapacity(position + 1); in setDigitPos()
74 ensureCapacity(precision + numDigits); in shiftLeft()
149 ensureCapacity(i + 1); in readBigIntegerToBcd()
207 private void ensureCapacity(int capacity) { in ensureCapacity() method in DecimalQuantity_ByteArrayBCD
/external/guava/guava/src/com/google/common/collect/
DImmutableCollection.java330 private void ensureCapacity(int minCapacity) { in ensureCapacity() method in ImmutableCollection.ArrayBasedBuilder
340 ensureCapacity(size + 1); in add()
348 ensureCapacity(size + elements.length); in add()
358 ensureCapacity(size + collection.size()); in addAll()
/external/apache-http/src/org/apache/http/message/
DBasicLineFormatter.java136 result.ensureCapacity(len); in appendProtocolVersion()
212 buffer.ensureCapacity(len); in doFormatRequestLine()
273 buffer.ensureCapacity(len); in doFormatStatusLine()
341 buffer.ensureCapacity(len); in doFormatHeader()
DBasicHeaderValueFormatter.java124 buffer.ensureCapacity(len); in formatElements()
193 buffer.ensureCapacity(len); in formatHeaderElement()
281 buffer.ensureCapacity(len); in formatParameters()
349 buffer.ensureCapacity(len); in formatNameValuePair()
/external/antlr/tool/src/main/java/org/antlr/misc/
DIntArrayList.java70 ensureCapacity(newSize); in setSize()
76 ensureCapacity((elements.length * 3)/2 + 1); in grow()
89 public void ensureCapacity(int newCapacity) { in ensureCapacity() method in IntArrayList
/external/icu/icu4c/source/test/intltest/
Dtextfile.cpp55 if (!ensureCapacity((int32_t)(uprv_strlen(testDir) + uprv_strlen(name) + 1))) { in TextFile()
136 if (!ensureCapacity(index+1)) { in setBuffer()
151 UBool TextFile::ensureCapacity(int32_t mincapacity) { in ensureCapacity() function in TextFile
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/misc/
DIntArray.java50 ensureCapacity(p+1); in add()
73 public void ensureCapacity(int index) { in ensureCapacity() method in IntArray

12345