Home
last modified time | relevance | path

Searched refs:newCapacity (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h153 size_t newCapacity; in Expand() local
157 newCapacity = initialCapacity_; in Expand()
159 newCapacity = GetCapacity(); in Expand()
160 newCapacity += (newCapacity + 1) / 2; in Expand()
163 if (newCapacity < newSize) in Expand()
164 newCapacity = newSize; in Expand()
166 Resize(newCapacity); in Expand()
169 void Resize(size_t newCapacity) { in Resize() argument
171 stack_ = (char*)allocator_->Realloc(stack_, GetCapacity(), newCapacity); in Resize()
173 stackEnd_ = stack_ + newCapacity; in Resize()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DResizableIntArray.java75 final int newCapacity = calculateCapacity(minimumCapacity); in ensureCapacity() local
76 if (newCapacity > 0) { in ensureCapacity()
78 mArray = Arrays.copyOf(mArray, newCapacity); in ensureCapacity()
109 final int newCapacity = calculateCapacity(ip.mLength); in copy() local
110 if (newCapacity > 0) { in copy()
112 mArray = new int[newCapacity]; in copy()
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java72 int newCapacity = mSize + 2; in addAdapter() local
73 ListAdapter[] newAdapters = new ListAdapter[newCapacity]; in addAdapter()
77 int[] newCounts = new int[newCapacity]; in addAdapter()
81 int[] newViewTypeCounts = new int[newCapacity]; in addAdapter()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java120 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local
121 final int[] newValues = new int[newCapacity]; in ensureCapacity()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java107 final int newCapacity = mSize + 2; in addPartition() local
108 final Partition[] newAdapters = new Partition[newCapacity]; in addPartition()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h1328 GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) {
1330 if (newCapacity > data_.a.capacity) {
1331 …tor.Realloc(data_.a.elements, data_.a.capacity * sizeof(GenericValue), newCapacity * sizeof(Generi…
1332 data_.a.capacity = newCapacity;