• Home
  • Raw
  • Download

Lines Matching refs:mCount

45     : mStorage(nullptr), mCount(0), mFlags(flags), mItemSize(itemSize)  in VectorImpl()
50 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
60 ALOGW_IF(mCount, in ~VectorImpl()
63 this, (int)(mCount*mItemSize)); in ~VectorImpl()
73 if (rhs.mCount) { in operator =()
75 mCount = rhs.mCount; in operator =()
79 mCount = 0; in operator =()
98 _do_copy(editable->data(), mStorage, mCount); in editArrayImpl()
296 mCount = 0; in finish_vector()
301 _shrink(0, mCount); in clear()
308 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
323 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
358 if (size > mCount) { in resize()
359 result = insertAt(mCount, size - mCount); in resize()
360 } else if (size < mCount) { in resize()
361 result = removeItemsAt(size, mCount - size); in resize()
371 _do_destroy(mStorage, mCount); in release_storage()
382 ALOG_ASSERT(where <= mCount, in _grow()
384 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
387 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow()
411 (mCount==where) && in _grow()
429 if (where != mCount) { in _grow()
432 _do_copy(dest, from, mCount-where); in _grow()
442 if (where != mCount) { in _grow()
445 _do_move_forward(to, from, mCount - where); in _grow()
448 mCount = new_size; in _grow()
461 ALOG_ASSERT(where + amount <= mCount, in _shrink()
463 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
466 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink()
516 mCount = new_size; in _shrink()