Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 9 of 9) sorted by relevance

/system/core/libutils/
DVectorImpl.cpp376 const size_t new_size = mCount + amount; in _grow() local
377 if (capacity() < new_size) { in _grow()
378 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()
418 mCount = new_size; in _grow()
435 const size_t new_size = mCount - amount; in _shrink() local
436 if (new_size*3 < capacity()) { in _shrink()
437 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()
439 if ((where == new_size) && in _shrink()
457 if (where != new_size) { in _shrink()
460 _do_copy(dest, from, new_size - where); in _shrink()
[all …]
DSharedBuffer.cpp99 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
102 SharedBuffer* sb = alloc(new_size); in reset()
/system/keymaster/
Dserializable.cpp72 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/core/libpixelflinger/codeflinger/tinyutils/
DSharedBuffer.cpp88 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
91 SharedBuffer* sb = alloc(new_size); in reset()
DVectorImpl.cpp283 const size_t new_size = mCount + amount; in _grow() local
284 if (capacity() < new_size) { in _grow()
285 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()
336 const size_t new_size = mCount - amount; in _shrink() local
337 if (new_size*3 < capacity()) { in _shrink()
338 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h266 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/
Dperf_utils.h35 event_t* ReallocMemoryForEvent(event_t* event, size_t new_size);
Dperf_reader.cc176 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/
Dblending.cpp129 int new_size = temp.size() < 8 ? temp.size() : 8; in build_blending() local
130 expand(fb, fb, new_size); in build_blending()