Lines Matching defs:capacity
90 sb = SharedBuffer::alloc(capacity() * mItemSize);
101 size_t VectorImpl::capacity() const
294 ALOG_ASSERT(index<capacity(),
295 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
296 this, (int)index, (int)capacity(), (int)mCount);
306 ALOG_ASSERT(index<capacity(),
307 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
308 this, (int)index, (int)capacity(), (int)mCount);
318 size_t current_capacity = capacity();
321 // we can't reduce the capacity
349 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
350 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
357 if (capacity() < new_size) {
402 // ALOGV("_shrink(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
403 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
410 if (new_size*3 < capacity()) {