Lines Matching defs:new_capacity
244 ssize_t VectorImpl::setCapacity(size_t new_capacity)
247 ssize_t amount = new_capacity - size();
252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
261 return new_capacity;
285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2);
286 // ALOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
293 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize);
296 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2);
339 // ALOGV("shrink vector %p, new_capacity=%d", this, (int)new_capacity);
345 SharedBuffer* sb = cur_sb->editResize(new_capacity * mItemSize);
348 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);