Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 14 of 14) sorted by relevance

/system/core/toolbox/
Ddynarray.c8 a->count = a->capacity = 0; in dynarray_init()
16 int old_cap = a->capacity; in dynarray_reserve_more()
42 a->capacity = new_cap; in dynarray_reserve_more()
48 if (a->count >= a->capacity) in dynarray_append()
59 a->count = a->capacity = 0; in dynarray_done()
Ddynarray.h9 int capacity; member
/system/core/libutils/tests/
DBasicHashtable_test.cpp160 &h, h.size(), h.capacity(), h.bucketCount()); in dump()
182 EXPECT_EQ(3U, h.capacity()); in TEST_F()
191 EXPECT_EQ(77U, h.capacity()); in TEST_F()
200 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f in TEST_F()
209 EXPECT_EQ(46U, h.capacity()); // must be one less than bucketCount because loadFactor == 1.0f in TEST_F()
315 EXPECT_EQ(3U, h.capacity()); in TEST_F()
327 EXPECT_EQ(3U, h.capacity()); in TEST_F()
342 EXPECT_EQ(3U, h.capacity()); in TEST_F()
360 EXPECT_EQ(3U, h.capacity()); in TEST_F()
411 size_t initialCapacity = h.capacity(); in TEST_F()
[all …]
DVector_test.cpp92 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
94 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
/system/core/libutils/
DVectorImpl.cpp107 size_t VectorImpl::capacity() const in capacity() function in android::VectorImpl
304 ALOG_ASSERT(index<capacity(), in editItemLocation()
306 this, (int)index, (int)capacity(), (int)mCount); in editItemLocation()
308 if (index < capacity()) { in editItemLocation()
319 ALOG_ASSERT(index<capacity(), in itemLocation()
321 this, (int)index, (int)capacity(), (int)mCount); in itemLocation()
323 if (index < capacity()) { in itemLocation()
337 return capacity(); in setCapacity()
387 if (capacity() < new_size) { in _grow()
465 if (new_size < (capacity() / 2)) { in _shrink()
/system/extras/tests/sdcard/
Dstopwatch.h91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
Dstopwatch.cpp54 StopWatch::StopWatch(const char *name, size_t capacity) in StopWatch() argument
55 : mName(strdup(name)), mNum(0), mData(NULL), mDataLen(0), mCapacity(capacity * 2), in StopWatch()
/system/core/healthd/
Dhealthd_mode_charger.cpp105 int capacity; member
167 .capacity = 0,
325 if (batt_anim->capacity < 0 || batt_anim->num_frames == 0) in redraw_screen()
407 batt_anim->capacity = batt_prop->batteryLevel; in update_screen_state()
420 if (batt_anim->num_frames == 0 || batt_anim->capacity < 0) { in update_screen_state()
/system/core/include/utils/
DKeyedVector.h58 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
DSortedVector.h69 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DVectorImpl.h65 size_t capacity() const;
DVector.h79 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
DBasicHashtable.h211 inline size_t capacity() const { in capacity() function
DLruCache.h151 rehash(mTable->capacity() * 2); in put()