Home | History | Annotate | Download | only in utils

Lines Matching full:amount

319     ssize_t amount = new_capacity - size();
320 if (amount <= 0) {
347 void* VectorImpl::_grow(size_t where, size_t amount)
349 // ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
350 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
353 "[%p] _grow: where=%d, amount=%d, count=%d",
354 this, (int)where, (int)amount, (int)mCount); // caller already checked
356 const size_t new_size = mCount + amount;
377 void* dest = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
388 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;
397 void VectorImpl::_shrink(size_t where, size_t amount)
402 // ALOGV("_shrink(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
403 // this, (int)where, (int)amount, (int)mCount, (int)capacity());
405 ALOG_ASSERT(where + amount <= mCount,
406 "[%p] _shrink: where=%d, amount=%d, count=%d",
407 this, (int)where, (int)amount, (int)mCount); // caller already checked
409 const size_t new_size = mCount - amount;
428 const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize;
439 _do_destroy(to, amount);
441 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize;