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.h174 bool DynamicVector<ElementType>::reserve(size_type newCapacity) { in reserve() argument
178 if (newCapacity <= mCapacity) { in reserve()
182 memoryAlloc(newCapacity * sizeof(ElementType))); in reserve()
188 mCapacity = newCapacity; in reserve()
367 size_type newCapacity = mCapacity * 2; in prepareForPush() local
368 if (newCapacity == 0) { in prepareForPush()
369 newCapacity = 1; in prepareForPush()
372 if (!reserve(newCapacity)) { in prepareForPush()
Ddynamic_vector.h186 bool reserve(size_type newCapacity);