Lines Matching defs:capacity
90 sb = SharedBuffer::alloc(capacity() * mItemSize);
101 size_t VectorImpl::capacity() const
298 ALOG_ASSERT(index<capacity(),
299 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
300 this, (int)index, (int)capacity(), (int)mCount);
302 if (index < capacity()) {
313 ALOG_ASSERT(index<capacity(),
314 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
315 this, (int)index, (int)capacity(), (int)mCount);
317 if (index < capacity()) {
328 size_t current_capacity = capacity();
331 // we can't reduce the capacity
359 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
360 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
367 if (capacity() < new_size) {
412 // ALOGV("_shrink(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
413 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
420 if (new_size*3 < capacity()) {