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()
294 mCount = 0; in finish_vector()
299 _shrink(0, mCount); in clear()
306 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
321 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
356 if (size > mCount) { in resize()
357 result = insertAt(mCount, size - mCount); in resize()
358 } else if (size < mCount) { in resize()
359 result = removeItemsAt(size, mCount - size); in resize()
369 _do_destroy(mStorage, mCount); in release_storage()
380 ALOG_ASSERT(where <= mCount, in _grow()
382 this, (int)where, (int)amount, (int)mCount); // caller already checked in _grow()
385 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow()
409 (mCount==where) && in _grow()
427 if (where != mCount) { in _grow()
430 _do_copy(dest, from, mCount-where); in _grow()
440 if (where != mCount) { in _grow()
443 _do_move_forward(to, from, mCount - where); in _grow()
446 mCount = new_size; in _grow()
459 ALOG_ASSERT(where + amount <= mCount, in _shrink()
461 this, (int)where, (int)amount, (int)mCount); // caller already checked in _shrink()
464 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink()
514 mCount = new_size; in _shrink()