/external/deqp/framework/delibs/depool/ |
dePoolArray.c | 72 int newCapacity = deAlign32(size, 1 << DE_ARRAY_ELEMENTS_PER_PAGE_LOG2); 73 int reqPageTableCapacity = newCapacity >> DE_ARRAY_ELEMENTS_PER_PAGE_LOG2; 127 DE_ASSERT(arr->capacity >= newCapacity);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
UVector32.java | 44 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 45 int[] newBuffer = new int[newCapacity];
|
UVector64.java | 44 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 45 long[] newBuffer = new long[newCapacity];
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
UVector32.java | 40 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 41 int[] newBuffer = new int[newCapacity];
|
UVector64.java | 40 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 41 long[] newBuffer = new long[newCapacity];
|
/external/guava/guava/src/com/google/common/collect/ |
ImmutableCollection.java | 223 int newCapacity = oldCapacity + (oldCapacity >> 1) + 1; 224 if (newCapacity < minCapacity) { 225 newCapacity = Integer.highestOneBit(minCapacity - 1) << 1; 227 if (newCapacity < 0) { 228 newCapacity = Integer.MAX_VALUE; 229 // guaranteed to be >= newCapacity 231 return newCapacity;
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
BytesTrieBuilder.java | 159 int newCapacity=bytes.length; 161 newCapacity*=2; 162 } while(newCapacity<=length); 163 byte[] newBytes=new byte[newCapacity];
|
CharsTrieBuilder.java | 137 int newCapacity=chars.length; 139 newCapacity*=2; 140 } while(newCapacity<=length); 141 char[] newChars=new char[newCapacity];
|
/external/icu/icu4c/source/common/ |
ustr_wcs.cpp | 110 int32_t newCapacity = 2 * srcLength; 111 if(newCapacity <= tempBufCapacity) { 112 newCapacity = _BUFFER_CAPACITY_MULTIPLIER * tempBufCapacity; 115 newCapacity, count, 1)) {
|
bytestriebuilder.cpp | 158 int32_t newCapacity; 160 newCapacity=1024; 162 newCapacity=4*elementsCapacity; 164 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; 174 elementsCapacity=newCapacity; 381 int32_t newCapacity=bytesCapacity; 383 newCapacity*=2; 384 } while(newCapacity<=length); 385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); 393 uprv_memcpy(newBytes+(newCapacity-bytesLength) [all...] |
edits.cpp | 216 int32_t newCapacity; 218 newCapacity = 2000; 225 newCapacity = INT32_MAX; 227 newCapacity = 2 * capacity; 230 if ((newCapacity - capacity) < 5) { 234 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)newCapacity * 2); 242 capacity = newCapacity;
|
ucharstriebuilder.cpp | 108 int32_t newCapacity; 110 newCapacity=1024; 112 newCapacity=4*elementsCapacity; 114 UCharsTrieElement *newElements=new UCharsTrieElement[newCapacity]; 124 elementsCapacity=newCapacity; 328 int32_t newCapacity=ucharsCapacity; 330 newCapacity*=2; 331 } while(newCapacity<=length); 332 UChar *newUChars=static_cast<UChar *>(uprv_malloc(newCapacity*2)); 340 u_memcpy(newUChars+(newCapacity-ucharsLength) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BytesTrieBuilder.java | 163 int newCapacity=bytes.length; 165 newCapacity*=2; 166 } while(newCapacity<=length); 167 byte[] newBytes=new byte[newCapacity];
|
CharsTrieBuilder.java | 141 int newCapacity=chars.length; 143 newCapacity*=2; 144 } while(newCapacity<=length); 145 char[] newChars=new char[newCapacity];
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
ExpandedNameTable.java | 250 int newCapacity = 2 * oldCapacity + 1; 251 m_capacity = newCapacity; 252 m_threshold = (int)(newCapacity * m_loadFactor); 254 m_table = new HashEntry[newCapacity]; 262 int newIndex = e.hash % newCapacity;
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
ServletUtils.java | 216 int newCapacity = cap + (cap >> 1); // *1.5 217 if (newCapacity < minCapacity) { 219 newCapacity = minCapacity; 222 bytes = Arrays.copyOf(bytes, newCapacity);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
Edits.java | 212 int newCapacity; 214 newCapacity = 2000; 218 newCapacity = Integer.MAX_VALUE; 220 newCapacity = 2 * array.length; 223 if ((newCapacity - array.length) < 5) { 226 array = Arrays.copyOf(array, newCapacity); [all...] |
/external/icu/icu4c/source/i18n/ |
collationkeys.cpp | 187 int32_t newCapacity = 2 * buffer.getCapacity(); 189 if (newCapacity < altCapacity) { 190 newCapacity = altCapacity; 192 if (newCapacity < 200) { 193 newCapacity = 200; 195 if(buffer.resize(newCapacity, len)==NULL) {
|
number_stringbuilder.cpp | 268 int32_t newCapacity = (fLength + count) * 2; 269 int32_t newZero = newCapacity / 2 - (fLength + count) / 2; 272 auto newChars = static_cast<char16_t *> (uprv_malloc(sizeof(char16_t) * newCapacity)); 273 auto newFields = static_cast<Field *>(uprv_malloc(sizeof(Field) * newCapacity)); 299 fChars.heap.capacity = newCapacity; 301 fFields.heap.capacity = newCapacity;
|
/external/icu/icu4c/source/tools/toolutil/ |
toolutil.cpp | 297 int32_t newCapacity; 307 newCapacity=capacity; 309 newCapacity=2*mem->capacity; 311 newCapacity=mem->maxCapacity; 315 mem->array=uprv_malloc(newCapacity*mem->size); 320 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); 327 mem->capacity=newCapacity;
|
/external/skia/src/core/ |
SkTDynamicHash.h | 245 auto newCapacity = fCapacity > 0 ? fCapacity : 4; 250 newCapacity *= 2; 252 SkASSERT(newCapacity > fCount + 1); 254 this->resize(newCapacity); 258 void resize(int newCapacity) { 264 fCapacity = newCapacity;
|
/external/skqp/src/core/ |
SkTDynamicHash.h | 245 auto newCapacity = fCapacity > 0 ? fCapacity : 4; 250 newCapacity *= 2; 252 SkASSERT(newCapacity > fCount + 1); 254 this->resize(newCapacity); 258 void resize(int newCapacity) { 264 fCapacity = newCapacity;
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
Dictionary.java | 517 int newCapacity = sourceOffsets.length * 2 + 1; 518 if (newCapacity < length + 50) { 519 newCapacity = length + 50; 521 int[] temp = new int[newCapacity];
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
Edits.java | 218 int newCapacity; 220 newCapacity = 2000; 224 newCapacity = Integer.MAX_VALUE; 226 newCapacity = 2 * array.length; 229 if ((newCapacity - array.length) < 5) { 232 array = Arrays.copyOf(array, newCapacity); [all...] |
/external/lzma/CPP/Common/ |
MyVector.h | 24 unsigned newCapacity = _capacity + (_capacity >> 2) + 1;
26 MY_ARRAY_NEW(p, T, newCapacity);
27 // p = new T[newCapacity];
32 _capacity = newCapacity;
65 void Reserve(unsigned newCapacity)
67 if (newCapacity > _capacity)
70 MY_ARRAY_NEW(p, T, newCapacity);
71 // p = new T[newCapacity];
76 _capacity = newCapacity;
80 void ClearAndReserve(unsigned newCapacity)
[all...] |