Searched refs:newSize (Results 1 – 12 of 12) sorted by relevance
/system/chre/chpp/platform/linux/ |
D | memory.c | 75 void *chppRealloc(void *oldPtr, const size_t newSize, const size_t oldSize) { in chppRealloc() argument 78 if (newSize != oldSize) { in chppRealloc() 83 realloc(oldHeader, newSize + sizeof(struct ChppAllocHeader)); in chppRealloc() 86 newHeader->bytes = newSize; in chppRealloc() 90 if (newSize > oldSize) { in chppRealloc() 91 gTotalAllocBytes += (newSize - oldSize); in chppRealloc() 93 gTotalAllocBytes -= (oldSize - newSize); in chppRealloc() 99 CHPP_LOGI("%s: size %zu total (after realloc) %zu", __func__, newSize, in chppRealloc()
|
/system/core/libutils/binder/ |
D | SharedBuffer.cpp | 68 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize() 72 if (buf->mSize == newSize) return buf; in editResize() 75 LOG_ALWAYS_FATAL_IF((newSize >= (SIZE_MAX - sizeof(SharedBuffer))), in editResize() 76 "Invalid buffer size %zu", newSize); in editResize() 78 buf = (SharedBuffer*)realloc(reinterpret_cast<void*>(buf), sizeof(SharedBuffer) + newSize); in editResize() 80 buf->mSize = newSize; in editResize() 84 SharedBuffer* sb = alloc(newSize); in editResize() 87 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize); in editResize()
|
D | String16.cpp | 328 void* String16::editResize(size_t newSize) { in editResize() argument 332 if (newSize < copySize) { in editResize() 333 copySize = newSize; in editResize() 335 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize() 340 buf = SharedBuffer::bufferFromData(mString)->editResize(newSize); in editResize()
|
/system/chre/util/include/chre/util/ |
D | fixed_size_vector_impl.h | 205 void FixedSizeVector<ElementType, kCapacity>::resize(size_t newSize) { in resize() argument 206 CHRE_ASSERT(newSize <= kCapacity); in resize() 207 if (newSize > kCapacity) { in resize() 208 newSize = kCapacity; in resize() 211 if (newSize > size()) { in resize() 212 for (size_t i = size(); i < newSize; i++) { in resize() 216 for (size_t i = newSize; i < size(); i++) { in resize() 220 mSize = newSize; in resize()
|
D | dynamic_vector_impl.h | 207 bool DynamicVector<ElementType>::resize(size_type newSize) { in resize() argument 209 while (mSize > newSize) { in resize() 213 bool success = reserve(newSize); in resize() 215 while (mSize < newSize) { in resize()
|
D | fixed_size_vector.h | 179 void resize(size_t newSize);
|
D | dynamic_vector.h | 197 bool resize(size_type newSize);
|
/system/chre/chpp/include/chpp/ |
D | memory.h | 61 void *chppRealloc(void *oldPtr, const size_t newSize, const size_t oldSize);
|
/system/libhwbinder/ |
D | BufferedTextOutput.cpp | 57 size_t newSize = ((len+bufferPos)*3)/2; in append() local 58 void* b = realloc(buffer, newSize); in append() 61 bufferSize = newSize; in append()
|
D | Parcel.cpp | 665 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local 666 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in writeObject() 667 binder_size_t* objects = (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in writeObject() 670 mObjectsCapacity = newSize; in writeObject() 1743 size_t newSize = ((mDataSize+len)*3)/2; in growData() local 1744 return continueWrite(newSize); in growData()
|
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/ |
D | dynamic_vector_impl.h | 207 bool DynamicVector<ElementType>::resize(size_type newSize) { in resize() argument 209 while (mSize > newSize) { in resize() 213 bool success = reserve(newSize); in resize() 215 while (mSize < newSize) { in resize()
|
D | dynamic_vector.h | 197 bool resize(size_type newSize);
|