Home
last modified time | relevance | path

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

/system/chre/util/
Ddynamic_vector_base.cc35 bool DynamicVectorBase::doReserve(size_t newCapacity, size_t elementSize) { in doReserve() argument
36 bool success = (newCapacity <= mCapacity); in doReserve()
38 void *newData = memoryAlloc(newCapacity * elementSize); in doReserve()
43 mCapacity = newCapacity; in doReserve()
56 size_t newCapacity; in getNextGrowthCapacity() local
58 newCapacity = 1; in getNextGrowthCapacity()
60 newCapacity = mCapacity * 2; in getNextGrowthCapacity()
62 newCapacity = mCapacity; in getNextGrowthCapacity()
65 return newCapacity; in getNextGrowthCapacity()
/system/chre/util/include/chre/util/
Ddynamic_vector.h186 bool reserve(size_type newCapacity);
319 bool doReserve(size_type newCapacity, std::true_type);
326 bool doReserve(size_type newCapacity, std::false_type);
Ddynamic_vector_impl.h174 bool DynamicVector<ElementType>::reserve(size_type newCapacity) { in reserve() argument
175 return doReserve(newCapacity, typename std::is_trivial<ElementType>::type()); in reserve()
179 bool DynamicVector<ElementType>::doReserve(size_type newCapacity, in doReserve() argument
181 return DynamicVectorBase::doReserve(newCapacity, sizeof(ElementType)); in doReserve()
185 bool DynamicVector<ElementType>::doReserve(size_type newCapacity, in doReserve() argument
187 bool success = (newCapacity <= mCapacity); in doReserve()
190 memoryAlloc(newCapacity * sizeof(ElementType))); in doReserve()
196 mCapacity = newCapacity; in doReserve()
Ddynamic_vector_base.h45 bool doReserve(size_t newCapacity, size_t elementSize);