Searched refs:newCapacity (Results 1 – 5 of 5) sorted by relevance
/system/chre/util/ |
D | dynamic_vector_base.cc | 33 bool DynamicVectorBase::doReserve(size_t newCapacity, size_t elementSize) { in doReserve() argument 34 bool success = (newCapacity <= mCapacity); in doReserve() 36 void *newData = memoryAlloc(newCapacity * elementSize); in doReserve() 41 mCapacity = newCapacity; in doReserve() 54 size_t newCapacity; in getNextGrowthCapacity() local 56 newCapacity = 1; in getNextGrowthCapacity() 58 newCapacity = mCapacity * 2; in getNextGrowthCapacity() 60 newCapacity = mCapacity; in getNextGrowthCapacity() 63 return newCapacity; in getNextGrowthCapacity()
|
/system/chre/util/include/chre/util/ |
D | dynamic_vector.h | 186 bool reserve(size_type newCapacity); 319 bool doReserve(size_type newCapacity, std::true_type); 326 bool doReserve(size_type newCapacity, std::false_type);
|
D | dynamic_vector_impl.h | 174 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()
|
D | dynamic_vector_base.h | 45 bool doReserve(size_t newCapacity, size_t elementSize);
|
/system/libhwbinder/ |
D | Parcel.cpp | 1753 static uint8_t* reallocZeroFree(uint8_t* data, size_t oldCapacity, size_t newCapacity, bool zero) { in reallocZeroFree() argument 1755 return (uint8_t*)realloc(data, newCapacity); in reallocZeroFree() 1757 uint8_t* newData = (uint8_t*)malloc(newCapacity); in reallocZeroFree() 1762 memcpy(newData, data, std::min(oldCapacity, newCapacity)); in reallocZeroFree()
|