Home
last modified time | relevance | path

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

1234

/external/dexmaker/src/dx/java/com/android/dx/util/
DByteArrayAnnotatedOutput.java162 ensureCapacity(end); in writeByte()
178 ensureCapacity(end); in writeShort()
195 ensureCapacity(end); in writeInt()
214 ensureCapacity(end); in writeLong()
238 ensureCapacity(cursor + 5); // pessimistic in writeUleb128()
248 ensureCapacity(cursor + 5); // pessimistic in writeSleb128()
262 ensureCapacity(end); in write()
286 ensureCapacity(end); in write()
310 ensureCapacity(end); in writeZeroes()
335 ensureCapacity(end); in alignTo()
[all …]
DBitIntSet.java40 ensureCapacity(value); in add()
49 private void ensureCapacity(int value) { in ensureCapacity() method in BitIntSet
74 ensureCapacity(Bits.getMax(o.bits) + 1); in merge()
81 ensureCapacity(o.ints.get(sz - 1)); in merge()
/external/icu4c/common/
Dcharstr.cpp23 if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) { in copyFrom()
41 if(ensureCapacity(len+2, 0, errorCode)) { in append()
74 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
95 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
104 if(ensureCapacity(len+s.length()+1, 0, errorCode)) { in appendInvariantChars()
110 UBool CharString::ensureCapacity(int32_t capacity, in ensureCapacity() function in CharString
Duvectr64.h128 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
202 inline UBool UVector64::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function
216 if (ensureCapacity(count + 1, status)) { in addElement()
223 if (ensureCapacity(count+size, status) == FALSE) { in reserveBlock()
Duvectr32.h129 inline UBool ensureCapacity(int32_t minimumCapacity, UErrorCode &status);
213 inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function
227 if (ensureCapacity(count + 1, status)) { in addElement()
234 if (ensureCapacity(count+size, status) == FALSE) { in reserveBlock()
Duvector.cpp97 if (ensureCapacity(other.count, ec)) { in assign()
126 if (ensureCapacity(count + 1, status)) { in addElement()
132 if (ensureCapacity(count + 1, status)) { in addElement()
163 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) { in insertElementAt()
175 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) { in insertElementAt()
329 UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) { in ensureCapacity() function in UVector
372 if (!ensureCapacity(newSize, status)) { in setSize()
475 if (ensureCapacity(count + 1, ec)) { in sortedInsert()
Duvectr64.cpp72 if (ensureCapacity(other.count, ec)) { in assign()
102 if (0 <= index && index <= count && ensureCapacity(count + 1, status)) { in insertElementAt()
198 if (!ensureCapacity(newSize, ec)) { in setSize()
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
DByteArrayOutput.java159 ensureCapacity(end); in writeByte()
175 ensureCapacity(end); in writeShort()
192 ensureCapacity(end); in writeInt()
211 ensureCapacity(end); in writeLong()
275 ensureCapacity(end); in write()
299 ensureCapacity(end); in write()
323 ensureCapacity(end); in writeZeroes()
342 ensureCapacity(end); in alignTo()
482 private void ensureCapacity(int desiredSize) { in ensureCapacity() method in ByteArrayOutput
DByteArrayAnnotatedOutput.java164 ensureCapacity(end); in writeByte()
180 ensureCapacity(end); in writeShort()
197 ensureCapacity(end); in writeInt()
216 ensureCapacity(end); in writeLong()
281 ensureCapacity(end); in write()
305 ensureCapacity(end); in write()
329 ensureCapacity(end); in writeZeroes()
354 ensureCapacity(end); in alignTo()
575 private void ensureCapacity(int desiredSize) { in ensureCapacity() method in ByteArrayAnnotatedOutput
/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-tests/test/com/google/common/primitives/
DBooleansTest.java107 assertSame(EMPTY, Booleans.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
108 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 0, 1)); in testEnsureCapacity()
109 assertSame(ARRAY_FALSE, Booleans.ensureCapacity(ARRAY_FALSE, 1, 1)); in testEnsureCapacity()
112 Booleans.ensureCapacity(new boolean[] {true}, 2, 1))); in testEnsureCapacity()
117 Booleans.ensureCapacity(ARRAY_FALSE, -1, 1); in testEnsureCapacity_fail()
123 Booleans.ensureCapacity(ARRAY_FALSE, 1, -1); in testEnsureCapacity_fail()
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()
DLongsTest.java246 assertSame(EMPTY, Longs.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
247 assertSame(ARRAY1, Longs.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
248 assertSame(ARRAY1, Longs.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
251 Longs.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
256 Longs.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
262 Longs.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DDoublesTest.java239 assertSame(EMPTY, Doubles.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
240 assertSame(ARRAY1, Doubles.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
241 assertSame(ARRAY1, Doubles.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
244 Doubles.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
249 Doubles.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
255 Doubles.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DShortsTest.java273 assertSame(EMPTY, Shorts.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
274 assertSame(ARRAY1, Shorts.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
275 assertSame(ARRAY1, Shorts.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
278 Shorts.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
283 Shorts.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
289 Shorts.ensureCapacity(ARRAY1, 1, -1); in testEnsureCapacity_fail()
DFloatsTest.java238 assertSame(EMPTY, Floats.ensureCapacity(EMPTY, 0, 1)); in testEnsureCapacity()
239 assertSame(ARRAY1, Floats.ensureCapacity(ARRAY1, 0, 1)); in testEnsureCapacity()
240 assertSame(ARRAY1, Floats.ensureCapacity(ARRAY1, 1, 1)); in testEnsureCapacity()
243 Floats.ensureCapacity(ARRAY1, 2, 1))); in testEnsureCapacity()
248 Floats.ensureCapacity(ARRAY1, -1, 1); in testEnsureCapacity_fail()
254 Floats.ensureCapacity(ARRAY1, 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/dexmaker/src/dx/java/com/android/dx/ssa/back/
DInterferenceGraph.java65 ensureCapacity(Math.max(regV, regW) + 1); in add()
104 private void ensureCapacity(int size) { in ensureCapacity() method in InterferenceGraph
107 interference.ensureCapacity(size); in ensureCapacity()
/external/antlr/antlr-3.4/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/apache-http/src/org/apache/http/message/
DBasicLineFormatter.java131 result.ensureCapacity(len); in appendProtocolVersion()
207 buffer.ensureCapacity(len); in doFormatRequestLine()
268 buffer.ensureCapacity(len); in doFormatStatusLine()
336 buffer.ensureCapacity(len); in doFormatHeader()
DBasicHeaderValueFormatter.java119 buffer.ensureCapacity(len); in formatElements()
188 buffer.ensureCapacity(len); in formatHeaderElement()
276 buffer.ensureCapacity(len); in formatParameters()
344 buffer.ensureCapacity(len); in formatNameValuePair()
/external/antlr/antlr-3.4/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
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DIntArray.h50 ensureCapacity(p+1); in add()
73 public void ensureCapacity(int index) { in ensureCapacity() function
/external/icu4c/test/intltest/
Dtextfile.cpp53 if (!ensureCapacity((int32_t)(uprv_strlen(testDir) + uprv_strlen(name) + 1))) { in TextFile()
134 if (!ensureCapacity(index+1)) { in setBuffer()
149 UBool TextFile::ensureCapacity(int32_t mincapacity) { in ensureCapacity() function in TextFile
/external/icu4c/test/perf/usetperf/
Dbitset.cpp41 ensureCapacity(longIndex+1); in set()
50 void BitSet::ensureCapacity(uint32_t minLen) { in ensureCapacity() function in BitSet

1234