/external/qemu/android/utils/ |
intmap.c | 100 int newCapacity; 111 newCapacity = oldCapacity*2; 113 newCapacity = oldCapacity + (oldCapacity >> 2); 115 AARRAY_RENEW(keys, newCapacity); 116 AARRAY_RENEW(values, newCapacity); 120 map->capacity = newCapacity;
|
/external/srec/portable/src/ |
ArrayListImpl.c | 81 size_t newCapacity = impl->capacity * 2; 82 void** temp = REALLOC(impl->contents, newCapacity * sizeof(void*)); 86 impl->capacity = newCapacity; 126 size_t newCapacity = impl->capacity / 2; 129 if ((temp = REALLOC(impl->contents, newCapacity * sizeof(void*))) == NULL) 132 impl->capacity = newCapacity;
|
phashtable.c | 278 unsigned int newCapacity = ((oldCapacity << 1) | 0x01); 284 sizeof(PHashTableEntry *) * newCapacity); 290 table->args.capacity = newCapacity; 291 table->threshold = (unsigned int)(newCapacity * table->args.maxLoadFactor); 293 for (i = oldCapacity; i < newCapacity; ++i) 302 idx = entry->hashCode % newCapacity;
|
/external/icu4c/common/ |
ustr_wcs.cpp | 108 int32_t newCapacity = 2 * srcLength; 109 if(newCapacity <= tempBufCapacity) { 110 newCapacity = _BUFFER_CAPACITY_MULTIPLIER * tempBufCapacity; 113 newCapacity, count, 1)) {
|
bytestriebuilder.cpp | 156 int32_t newCapacity; 158 newCapacity=1024; 160 newCapacity=4*elementsCapacity; 162 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; 172 elementsCapacity=newCapacity; 378 int32_t newCapacity=bytesCapacity; 380 newCapacity*=2; 381 } while(newCapacity<=length); 382 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); 390 uprv_memcpy(newBytes+(newCapacity-bytesLength) [all...] |
ucharstriebuilder.cpp | 106 int32_t newCapacity; 108 newCapacity=1024; 110 newCapacity=4*elementsCapacity; 112 UCharsTrieElement *newElements=new UCharsTrieElement[newCapacity]; 122 elementsCapacity=newCapacity; 326 int32_t newCapacity=ucharsCapacity; 328 newCapacity*=2; 329 } while(newCapacity<=length); 330 UChar *newUChars=static_cast<UChar *>(uprv_malloc(newCapacity*2)); 338 u_memcpy(newUChars+(newCapacity-ucharsLength) [all...] |
normalizer2impl.cpp | 183 int32_t newCapacity=length+appendLength; 185 if(newCapacity<doubleCapacity) { 186 newCapacity=doubleCapacity; 188 if(newCapacity<256) { 189 newCapacity=256; 191 start=str.getBuffer(newCapacity); [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
CompositeListAdapter.java | 77 int newCapacity = mSize + 2; 78 ListAdapter[] newAdapters = new ListAdapter[newCapacity]; 82 int[] newCounts = new int[newCapacity]; 86 int[] newViewTypeCounts = new int[newCapacity];
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ResizableIntArray.java | 70 final int newCapacity = calculateCapacity(minimumCapacity); 71 if (newCapacity > 0) { 73 mArray = Arrays.copyOf(mArray, newCapacity); 103 final int newCapacity = calculateCapacity(ip.mLength); 104 if (newCapacity > 0) { 106 mArray = new int[newCapacity];
|
/system/core/libutils/ |
BasicHashtable.cpp | 206 size_t newBucketCount, newCapacity; 207 determineCapacity(minimumCapacity, loadFactor, &newBucketCount, &newCapacity); 209 if (newBucketCount != mBucketCount || newCapacity != mCapacity) { 240 mCapacity = 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/chromium_org/third_party/icu/source/tools/toolutil/ |
toolutil.cpp | 265 int32_t newCapacity; 275 newCapacity=capacity; 277 newCapacity=2*mem->capacity; 279 newCapacity=mem->maxCapacity; 283 mem->array=uprv_malloc(newCapacity*mem->size); 288 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); 295 mem->capacity=newCapacity;
|
/external/icu4c/tools/toolutil/ |
toolutil.cpp | 269 int32_t newCapacity; 279 newCapacity=capacity; 281 newCapacity=2*mem->capacity; 283 newCapacity=mem->maxCapacity; 287 mem->array=uprv_malloc(newCapacity*mem->size); 292 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); 299 mem->capacity=newCapacity;
|
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
IntMap.java | 142 int newCapacity = 2 * capacity; 143 Entry[] newTable = new Entry[newCapacity]; 145 int bucketmask = newCapacity - 1; 160 capacity = newCapacity; 161 threshold = (int) (newCapacity * loadFactor);
|
/libcore/luni/src/main/java/java/lang/ |
ThreadLocal.java | 314 int newCapacity = capacity; 319 newCapacity = capacity * 2; 325 initializeTable(newCapacity);
|
/libcore/luni/src/main/java/libcore/io/ |
IoUtils.java | 240 final int newCapacity = capacity * 2; 241 byte[] newBytes = new byte[newCapacity]; 244 capacity = newCapacity;
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
MPEG2PSExtractor.cpp | 166 size_t newCapacity = mBuffer->capacity() + kChunkSize; 167 sp<ABuffer> newBuffer = new ABuffer(newCapacity);
|
ATSParser.cpp | [all...] |
/libcore/luni/src/main/java/java/util/ |
ArrayDeque.java | 122 int newCapacity = n << 1; 123 if (newCapacity < 0) 125 Object[] a = new Object[newCapacity];
|
ArrayList.java | 154 Object[] newArray = new Object[newCapacity(s)]; 173 private static int newCapacity(int currentCapacity) { 197 int newCapacity = newCapacity(newSize - 1); // ~33% growth room 198 Object[] newArray = new Object[newCapacity]; 238 int newCapacity = newCapacity(newSize - 1); // ~33% growth room 239 Object[] newArray = new Object[newCapacity];
|
/external/icu4c/i18n/ |
plurrule.cpp | 611 int32_t newCapacity = sampleCount < 20 ? 128 : sampleCount * 2; 612 if (NULL == newSamples.resize(newCapacity, sampleCount)) { [all...] |
/external/chromium_org/third_party/icu/source/common/ |
normalizer2impl.cpp | 182 int32_t newCapacity=length+appendLength; 184 if(newCapacity<doubleCapacity) { 185 newCapacity=doubleCapacity; 187 if(newCapacity<256) { 188 newCapacity=256; 190 start=str.getBuffer(newCapacity); [all...] |
/external/guava/guava/src/com/google/common/collect/ |
MinMaxPriorityQueue.java | 920 int newCapacity = calculateNewCapacity(); 921 Object[] newQueue = new Object[newCapacity]; 930 int newCapacity = (oldCapacity < 64) 933 return capAtMaximumSize(newCapacity, maximumSize);
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
AbstractHashedMap.java | 578 int newCapacity = data.length * 2; 579 if (newCapacity <= MAXIMUM_CAPACITY) { 580 ensureCapacity(newCapacity); 588 * @param newCapacity the new capacity of the array (a power of two, less or equal to max) 590 protected void ensureCapacity(int newCapacity) { 592 if (newCapacity <= oldCapacity) { 596 threshold = calculateThreshold(newCapacity, loadFactor); 597 data = new HashEntry[newCapacity]; 600 HashEntry<K, V> newEntries[] = new HashEntry[newCapacity]; 609 int index = hashIndex(entry.hashCode, newCapacity); [all...] |
/frameworks/av/media/libstagefright/ |
AVIExtractor.cpp | 252 size_t newCapacity = 255 sp<ABuffer> newBuffer = new ABuffer(newCapacity); [all...] |