Lines Matching defs:capacity
91 sb = SharedBuffer::alloc(capacity() * mItemSize);
102 size_t VectorImpl::capacity() const
220 ALOG_ASSERT(index<capacity(),
221 "[%p] itemLocation: index=%d, capacity=%d, count=%d",
222 this, (int)index, (int)capacity(), (int)mCount);
232 ALOG_ASSERT(index<capacity(),
233 "[%p] editItemLocation: index=%d, capacity=%d, count=%d",
234 this, (int)index, (int)capacity(), (int)mCount);
244 size_t current_capacity = capacity();
247 // we can't reduce the capacity
275 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
276 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
282 if (capacity() < new_size) {
328 // ALOGV("_shrink(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
329 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
335 if (new_size*3 < capacity()) {