Searched refs:capacity (Results 1 – 14 of 14) sorted by relevance
/system/core/toolbox/ |
D | dynarray.c | 8 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()
|
D | dynarray.h | 9 int capacity; member
|
/system/core/libutils/tests/ |
D | BasicHashtable_test.cpp | 160 &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 …]
|
D | Vector_test.cpp | 92 ASSERT_EQ(8U, vector.capacity()); in TEST_F() 94 ASSERT_EQ(8U, vector.capacity()); in TEST_F()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 107 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/ |
D | stopwatch.h | 91 StopWatch(const char *name, size_t capacity = kUseDefaultCapacity);
|
D | stopwatch.cpp | 54 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/ |
D | healthd_mode_charger.cpp | 105 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/ |
D | KeyedVector.h | 58 inline size_t capacity() const { return mVector.capacity(); } in capacity() function
|
D | SortedVector.h | 69 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|
D | VectorImpl.h | 65 size_t capacity() const;
|
D | Vector.h | 79 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity() function
|
D | BasicHashtable.h | 211 inline size_t capacity() const { in capacity() function
|
D | LruCache.h | 151 rehash(mTable->capacity() * 2); in put()
|