Home
last modified time | relevance | path

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

/system/core/libutils/
DVectorImpl.cpp384 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 …]
DSharedBuffer.cpp99 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
102 SharedBuffer* sb = alloc(new_size); in reset()
/system/keymaster/
Dserializable.cpp53 size_t new_size = buffer_size_ + size - available_write(); in reserve() local
54 uint8_t* new_buffer = new uint8_t[new_size]; in reserve()
60 buffer_size_ = new_size; in reserve()
/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()