Searched refs:new_capacity (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/ |
D | VectorImpl.cpp | 332 ssize_t VectorImpl::setCapacity(size_t new_capacity) in setCapacity() argument 336 if (new_capacity <= size()) { in setCapacity() 341 LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); in setCapacity() 351 return new_capacity; in setCapacity() 395 size_t new_capacity = 0; in _grow() local 396 LOG_ALWAYS_FATAL_IF(!safe_add(&new_capacity, new_size, (new_size / 2)), in _grow() 398 LOG_ALWAYS_FATAL_IF(!safe_add(&new_capacity, new_capacity, static_cast<size_t>(1u)), in _grow() 400 new_capacity = max(kMinVectorCapacity, new_capacity); in _grow() 403 LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), in _grow() 468 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink() local [all …]
|
/system/bt/osi/src/ |
D | array.c | 100 const size_t new_capacity = array->capacity + (array->capacity / 2); in grow() local 103 void *new_data = realloc(is_moving ? NULL : array->data, new_capacity * array->element_size); in grow() 111 array->capacity = new_capacity; in grow()
|