@@ -56,7 +56,7 @@ VectorImpl::VectorImpl(const VectorImpl& rhs)
5656
5757VectorImpl::~VectorImpl ()
5858{
59- LOG_ASSERT (!mCount ,
59+ ALOG_ASSERT (!mCount ,
6060 " [%p] "
6161 " subclasses of VectorImpl must call finish_vector()"
6262 " in their destructor. Leaking %d bytes." ,
@@ -66,7 +66,7 @@ VectorImpl::~VectorImpl()
6666
6767VectorImpl& VectorImpl::operator = (const VectorImpl& rhs)
6868{
69- LOG_ASSERT (mItemSize == rhs.mItemSize ,
69+ ALOG_ASSERT (mItemSize == rhs.mItemSize ,
7070 " Vector<> have different types (this=%p, rhs=%p)" , this , &rhs);
7171 if (this != &rhs) {
7272 release_storage ();
@@ -248,7 +248,7 @@ ssize_t VectorImpl::replaceAt(size_t index)
248248
249249ssize_t VectorImpl::replaceAt (const void * prototype, size_t index)
250250{
251- LOG_ASSERT (index<size (),
251+ ALOG_ASSERT (index<size (),
252252 " [%p] replace: index=%d, size=%d" , this , (int )index, (int )size ());
253253
254254 void * item = editItemLocation (index);
@@ -267,7 +267,7 @@ ssize_t VectorImpl::replaceAt(const void* prototype, size_t index)
267267
268268ssize_t VectorImpl::removeItemsAt (size_t index, size_t count)
269269{
270- LOG_ASSERT ((index+count)<=size (),
270+ ALOG_ASSERT ((index+count)<=size (),
271271 " [%p] remove: index=%d, count=%d, size=%d" ,
272272 this , (int )index, (int )count, (int )size ());
273273
@@ -291,7 +291,7 @@ void VectorImpl::clear()
291291
292292void * VectorImpl::editItemLocation (size_t index)
293293{
294- LOG_ASSERT (index<capacity (),
294+ ALOG_ASSERT (index<capacity (),
295295 " [%p] editItemLocation: index=%d, capacity=%d, count=%d" ,
296296 this , (int )index, (int )capacity (), (int )mCount );
297297
@@ -303,7 +303,7 @@ void* VectorImpl::editItemLocation(size_t index)
303303
304304const void * VectorImpl::itemLocation (size_t index) const
305305{
306- LOG_ASSERT (index<capacity (),
306+ ALOG_ASSERT (index<capacity (),
307307 " [%p] itemLocation: index=%d, capacity=%d, count=%d" ,
308308 this , (int )index, (int )capacity (), (int )mCount );
309309
@@ -349,7 +349,7 @@ void* VectorImpl::_grow(size_t where, size_t amount)
349349// ALOGV("_grow(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
350350// this, (int)where, (int)amount, (int)mCount, (int)capacity());
351351
352- LOG_ASSERT (where <= mCount ,
352+ ALOG_ASSERT (where <= mCount ,
353353 " [%p] _grow: where=%d, amount=%d, count=%d" ,
354354 this , (int )where, (int )amount, (int )mCount ); // caller already checked
355355
@@ -402,7 +402,7 @@ void VectorImpl::_shrink(size_t where, size_t amount)
402402// ALOGV("_shrink(this=%p, where=%d, amount=%d) count=%d, capacity=%d",
403403// this, (int)where, (int)amount, (int)mCount, (int)capacity());
404404
405- LOG_ASSERT (where + amount <= mCount ,
405+ ALOG_ASSERT (where + amount <= mCount ,
406406 " [%p] _shrink: where=%d, amount=%d, count=%d" ,
407407 this , (int )where, (int )amount, (int )mCount ); // caller already checked
408408
0 commit comments