Home
last modified time | relevance | path

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

/system/chre/util/include/chre/util/
Ddynamic_vector_impl.h136 bool DynamicVector<ElementType>::reserve(size_t newCapacity) { in reserve() argument
140 if (newCapacity <= mCapacity) { in reserve()
144 memoryAlloc(newCapacity * sizeof(ElementType))); in reserve()
150 mCapacity = newCapacity; in reserve()
315 size_t newCapacity = mCapacity * 2; in prepareForPush() local
316 if (newCapacity == 0) { in prepareForPush()
317 newCapacity = 1; in prepareForPush()
320 if (!reserve(newCapacity)) { in prepareForPush()
Ddynamic_vector.h154 bool reserve(size_t newCapacity);