Searched refs:new_size (Results 1 – 7 of 7) sorted by relevance
/system/core/libutils/ |
D | VectorImpl.cpp | 384 size_t new_size; in _grow() local 385 LOG_ALWAYS_FATAL_IF(!safe_add(&new_size, mCount, amount), "new_size overflow"); in _grow() 387 if (capacity() < new_size) { in _grow() 396 LOG_ALWAYS_FATAL_IF(!safe_add(&new_capacity, new_size, (new_size / 2)), in _grow() 445 mCount = new_size; in _grow() 462 size_t new_size; in _shrink() local 463 LOG_ALWAYS_FATAL_IF(!safe_sub(&new_size, mCount, amount)); in _shrink() 465 if (new_size < (capacity() / 2)) { in _shrink() 468 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink() 475 if ((where == new_size) && in _shrink() [all …]
|
D | SharedBuffer.cpp | 99 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset() 102 SharedBuffer* sb = alloc(new_size); in reset()
|
/system/keymaster/ |
D | serializable.cpp | 72 size_t new_size = buffer_size_ + size - available_write(); in reserve() local 73 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve() 79 buffer_size_ = new_size; in reserve()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 266 const uint8_t* Reset(size_t new_size) { in Reset() 268 key_material = new (std::nothrow) uint8_t[new_size]; in Reset() 270 key_material_size = new_size; in Reset()
|
/system/extras/perfprofd/quipper/ |
D | perf_utils.h | 35 event_t* ReallocMemoryForEvent(event_t* event, size_t new_size);
|
D | perf_reader.cc | 176 size_t new_size = sizeof(*event) + new_len; in CreateOrUpdateBuildID() local 177 if (!event || new_size > event->header.size) { in CreateOrUpdateBuildID() 178 build_id_event* new_event = CallocMemoryForBuildID(new_size); in CreateOrUpdateBuildID() 206 event->header.size = new_size; in CreateOrUpdateBuildID() 1602 size_t new_size = event->header.size + size_change; in LocalizeMMapFilenames() local 1608 malloced_unique_ptr<event_t> new_event(CallocMemoryForEvent(new_size)); in LocalizeMMapFilenames() 1639 event->header.size = new_size; in LocalizeMMapFilenames()
|
/system/core/libpixelflinger/codeflinger/ |
D | blending.cpp | 129 int new_size = temp.size() < 8 ? temp.size() : 8; in build_blending() local 130 expand(fb, fb, new_size); in build_blending()
|