/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
stack.h | 153 size_t newCapacity;
157 newCapacity = initialCapacity_;
159 newCapacity = GetCapacity();
160 newCapacity += (newCapacity + 1) / 2;
163 if (newCapacity < newSize)
164 newCapacity = newSize;
166 Resize(newCapacity);
169 void Resize(size_t newCapacity) {
171 stack_ = (char*)allocator_->Realloc(stack_, GetCapacity(), newCapacity);
[all...] |
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
ResizableIntArray.java | 75 final int newCapacity = calculateCapacity(minimumCapacity); 76 if (newCapacity > 0) { 78 mArray = Arrays.copyOf(mArray, newCapacity); 109 final int newCapacity = calculateCapacity(ip.mLength); 110 if (newCapacity > 0) { 112 mArray = new int[newCapacity];
|
/external/clang/lib/Sema/ |
TypeLocBuilder.cpp | 45 void TypeLocBuilder::grow(size_t NewCapacity) { 46 assert(NewCapacity > Capacity); 49 char *NewBuffer = new char[NewCapacity]; 50 unsigned NewIndex = Index + NewCapacity - Capacity; 59 Capacity = NewCapacity; 76 size_t NewCapacity = Capacity * 2; 77 while (RequiredCapacity > NewCapacity) 78 NewCapacity *= 2; 79 grow(NewCapacity);
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
UVector32.java | 38 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 39 int[] newBuffer = new int[newCapacity];
|
UVector64.java | 38 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 39 long[] newBuffer = new long[newCapacity];
|
/external/icu/icu4c/source/common/ |
cmemory.h | 232 * @param newCapacity must be >0 235 inline T *allocateInsteadAndReset(int32_t newCapacity=1); 241 * @param newCapacity must be >0 247 inline T *allocateInsteadAndCopy(int32_t newCapacity=1, int32_t length=0); 258 inline T *LocalMemory<T>::allocateInsteadAndReset(int32_t newCapacity) { 259 if(newCapacity>0) { 260 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); 262 uprv_memset(p, 0, newCapacity*sizeof(T)); 274 inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) { 275 if(newCapacity>0) [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...] |
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...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
UVector32.java | 42 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 43 int[] newBuffer = new int[newCapacity];
|
UVector64.java | 42 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length; 43 long[] newBuffer = new long[newCapacity];
|
/external/lzma/CPP/Common/ |
MyVector.h | 22 unsigned newCapacity = _capacity + (_capacity >> 2) + 1;
23 T *p = new T[newCapacity];
27 _capacity = newCapacity;
59 void Reserve(unsigned newCapacity)
61 if (newCapacity > _capacity)
63 T *p = new T[newCapacity];
67 _capacity = newCapacity;
71 void ClearAndReserve(unsigned newCapacity)
74 if (newCapacity > _capacity)
79 _items = new T[newCapacity];
[all...] |
/external/icu/icu4c/source/tools/toolutil/ |
toolutil.cpp | 295 int32_t newCapacity; 305 newCapacity=capacity; 307 newCapacity=2*mem->capacity; 309 newCapacity=mem->maxCapacity; 313 mem->array=uprv_malloc(newCapacity*mem->size); 318 mem->array=uprv_realloc(mem->array, newCapacity*mem->size); 325 mem->capacity=newCapacity;
|
/frameworks/av/media/libstagefright/ |
SkipCutBuffer.cpp | 137 int32_t newcapacity = mCapacity + (num - available); local 138 char * newbuffer = new char[newcapacity]; 141 mCapacity = newcapacity; 143 ALOGV("reallocated buffer at size %d", newcapacity);
|
/frameworks/support/v4/java/android/support/v4/util/ |
CircularArray.java | 30 int newCapacity = n << 1; 31 if (newCapacity < 0) { 34 Object[] a = new Object[newCapacity]; 40 mCapacityBitmask = newCapacity - 1;
|
CircularIntArray.java | 31 int newCapacity = n << 1; 32 if (newCapacity < 0) { 35 int[] a = new int[newCapacity]; 41 mCapacityBitmask = newCapacity - 1;
|
/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];
|
/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/clang/include/clang/Analysis/Support/ |
BumpVector.h | 223 size_t NewCapacity = 2*CurCapacity; 224 if (NewCapacity < MinSize) 225 NewCapacity = MinSize; 228 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); 246 Capacity = Begin+NewCapacity;
|
/libcore/ojluni/src/main/java/java/io/ |
ByteArrayOutputStream.java | 105 int newCapacity = oldCapacity << 1; 106 if (newCapacity - minCapacity < 0) 107 newCapacity = minCapacity; 108 if (newCapacity < 0) { 111 newCapacity = Integer.MAX_VALUE; 113 buf = Arrays.copyOf(buf, newCapacity);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
IntArrayList.java | 89 public void ensureCapacity(int newCapacity) { 93 elements = new int[newCapacity];
|
/external/icu/icu4c/source/layoutex/ |
RunArrays.cpp | 55 void RunArray::grow(le_int32 newCapacity) 57 fLimits = (le_int32 *) LE_GROW_ARRAY(fLimits, newCapacity);
|
/frameworks/base/core/java/android/util/ |
LongArray.java | 99 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; 100 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity);
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
CharsTrieBuilder.java | 135 int newCapacity=chars.length; 137 newCapacity*=2; 138 } while(newCapacity<=length); 139 char[] newChars=new char[newCapacity];
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BytesTrieBuilder.java | 161 int newCapacity=bytes.length; 163 newCapacity*=2; 164 } while(newCapacity<=length); 165 byte[] newBytes=new byte[newCapacity];
|
CharsTrieBuilder.java | 139 int newCapacity=chars.length; 141 newCapacity*=2; 142 } while(newCapacity<=length); 143 char[] newChars=new char[newCapacity];
|