Searched refs:ensureCapacity (Results 1 - 25 of 136) sorted by relevance

123456

/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/
H A DIntArray.java35 * get dynamic sizing. Make sure to call ensureCapacity() when you are
50 ensureCapacity(p+1);
73 public void ensureCapacity(int index) { method in class:IntArray
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
H A DIntArray.m35 * get dynamic sizing. Make sure to call ensureCapacity() when you are
50 ensureCapacity(p+1);
73 public void ensureCapacity(int index) {
H A DIntArray.h35 * get dynamic sizing. Make sure to call ensureCapacity() when you are
50 ensureCapacity(p+1);
73 public void ensureCapacity(int index) { function in class:IntArray
/external/icu/icu4c/source/test/perf/usetperf/
H A Dbitset.h25 void ensureCapacity(uint32_t minLen);
H A Dbitset.cpp45 ensureCapacity(longIndex+1);
54 void BitSet::ensureCapacity(uint32_t minLen) { function in class:BitSet
/external/icu/icu4c/source/common/
H A Dcharstr.cpp26 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) {
53 if(ensureCapacity(len+2, 0, errorCode)) {
86 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) {
107 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) {
123 if(ensureCapacity(len+s.length()+1, 0, errorCode)) {
129 UBool CharString::ensureCapacity(int32_t capacity, function in class:CharString
H A Duvectr32.h131 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
133 // Out-of-line, handles actual growth. Called by ensureCapacity() when necessary.
215 inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { function in class:UVector32
229 if (ensureCapacity(count + 1, status)) {
236 if (ensureCapacity(count+size, status) == FALSE) {
H A Duvectr64.h130 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
132 // Out-of-line, handles actual growth. Called by ensureCapacity() when necessary.
204 inline UBool UVector64::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { function in class:UVector64
218 if (ensureCapacity(count + 1, status)) {
225 if (ensureCapacity(count+size, status) == FALSE) {
H A Duvectr64.cpp74 if (ensureCapacity(other.count, ec)) {
104 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) {
203 if (!ensureCapacity(newSize, ec)) {
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
H A DIntArrayList.java70 ensureCapacity(newSize);
76 ensureCapacity((elements.length * 3)/2 + 1);
89 public void ensureCapacity(int newCapacity) { method in class:IntArrayList
/external/icu/icu4c/source/test/intltest/
H A Dtextfile.h59 UBool ensureCapacity(int32_t capacity);
H A Dtextfile.cpp55 if (!ensureCapacity((int32_t)(uprv_strlen(testDir) + uprv_strlen(name) + 1))) {
82 // Note: 'buffer' may change after ensureCapacity() is called,
136 if (!ensureCapacity(index+1)) {
151 UBool TextFile::ensureCapacity(int32_t mincapacity) { function in class:TextFile
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DByteBuffer.java88 ensureCapacity(length + chunk);
184 ensureCapacity(length + 1);
198 ensureCapacity(length + len);
317 private void ensureCapacity(int requestedLength) method in class:ByteBuffer
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/
H A DPool.java47 public void ensureCapacity(int minCapacity) { method in class:Pool
48 objects.ensureCapacity(minCapacity);
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DSimpleFormatterImpl.java88 sb.ensureCapacity(patternLength);
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DBytesTrieBuilder.java157 private void ensureCapacity(int length) { method in class:BytesTrieBuilder
178 ensureCapacity(newLength);
192 ensureCapacity(newLength);
203 ensureCapacity(newLength);
H A DCharsTrieBuilder.java135 private void ensureCapacity(int length) { method in class:CharsTrieBuilder
156 ensureCapacity(newLength);
170 ensureCapacity(newLength);
181 ensureCapacity(newLength);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DSimpleFormatterImpl.java86 sb.ensureCapacity(patternLength);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrieBuilder.java161 private void ensureCapacity(int length) { method in class:BytesTrieBuilder
182 ensureCapacity(newLength);
196 ensureCapacity(newLength);
207 ensureCapacity(newLength);
H A DCharsTrieBuilder.java139 private void ensureCapacity(int length) { method in class:CharsTrieBuilder
160 ensureCapacity(newLength);
174 ensureCapacity(newLength);
185 ensureCapacity(newLength);
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
H A DSourceNodeImpl.java53 public void ensureCapacity(final int first, final int last) { method in class:SourceNodeImpl
93 ensureCapacity(firstLine, lastLine);
125 ensureCapacity(line, line);
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
H A DBooleansTest.java115 assertSame(EMPTY, Booleans.ensureCapacity(EMPTY, 0, 1));
116 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 0, 1));
117 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 1, 1));
120 Booleans.ensureCapacity(new boolean[] {true}, 2, 1)));
125 Booleans.ensureCapacity(ARRAY_FALSE, -1, 1);
131 Booleans.ensureCapacity(ARRAY_FALSE, 1, -1);
H A DBytesTest.java138 assertSame(EMPTY, Bytes.ensureCapacity(EMPTY, 0, 1));
139 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 0, 1));
140 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 1, 1));
143 Bytes.ensureCapacity(ARRAY1, 2, 1)));
148 Bytes.ensureCapacity(ARRAY1, -1, 1);
154 Bytes.ensureCapacity(ARRAY1, 1, -1);
H A DCharsTest.java216 assertSame(EMPTY, Chars.ensureCapacity(EMPTY, 0, 1));
217 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 0, 1));
218 assertSame(ARRAY1, Chars.ensureCapacity(ARRAY1, 1, 1));
221 Chars.ensureCapacity(ARRAY1, 2, 1)));
226 Chars.ensureCapacity(ARRAY1, -1, 1);
232 Chars.ensureCapacity(ARRAY1, 1, -1);
/external/guava/guava-tests/test/com/google/common/primitives/
H A DBytesTest.java140 assertSame(EMPTY, Bytes.ensureCapacity(EMPTY, 0, 1));
141 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 0, 1));
142 assertSame(ARRAY1, Bytes.ensureCapacity(ARRAY1, 1, 1));
145 Bytes.ensureCapacity(ARRAY1, 2, 1)));
150 Bytes.ensureCapacity(ARRAY1, -1, 1);
156 Bytes.ensureCapacity(ARRAY1, 1, -1);

Completed in 5051 milliseconds

123456