Searched refs:newSize (Results 1 – 10 of 10) sorted by relevance
/system/core/libutils/ |
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(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 | 345 void* String16::editResize(size_t newSize) { in editResize() argument 349 if (newSize < copySize) { in editResize() 350 copySize = newSize; in editResize() 352 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize() 357 buf = SharedBuffer::bufferFromData(mString)->editResize(newSize); in editResize()
|
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/ |
D | DeployAgent.java | 243 long newSize = readPatchHeader(patchData); in writePatchToStream() local 244 long bytesWritten = writePatchedDataToStream(newSize, patchData, outputStream); in writePatchToStream() 246 if (bytesWritten != newSize) { in writePatchToStream() 248 "output size mismatch (expected %ld but wrote %ld)", newSize, bytesWritten)); in writePatchToStream() 267 long newSize = PatchUtils.readLELong(patchData); in readPatchHeader() local 268 if (newSize < 0) { in readPatchHeader() 269 throw new PatchFormatException("bad newSize: " + newSize); in readPatchHeader() 272 return newSize; in readPatchHeader() 278 private static long writePatchedDataToStream(long newSize, InputStream patchData, in writePatchedDataToStream() argument 289 while (newDataBytesWritten < newSize) { in writePatchedDataToStream() [all …]
|
/system/chre/util/include/chre/util/ |
D | fixed_size_vector_impl.h | 198 void FixedSizeVector<ElementType, kCapacity>::resize(size_t newSize) { in resize() argument 199 CHRE_ASSERT(newSize <= kCapacity); in resize() 200 if (newSize > kCapacity) { in resize() 201 newSize = kCapacity; in resize() 204 if (newSize > size()) { in resize() 205 for (size_t i = size(); i < newSize; i++) { in resize() 209 for (size_t i = newSize; i < size(); i++) { in resize() 213 mSize = newSize; in resize()
|
D | fixed_size_vector.h | 175 void resize(size_t newSize);
|
D | dynamic_vector_impl.h | 205 bool DynamicVector<ElementType>::resize(size_type newSize) { in resize() argument 207 while (mSize > newSize) { in resize() 212 while (success && mSize < newSize) { in resize()
|
D | dynamic_vector.h | 197 bool resize(size_type newSize);
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 143 ssize_t Assembly::resize(size_t newSize) in resize() argument 145 mBase = (uint32_t*)mspace_realloc(getMspace(), mBase, newSize); in resize() 148 "of size %zd", newSize, kMaxCodeCacheCapacity); in resize() 149 mSize = newSize; in resize()
|
/system/libhwbinder/ |
D | BufferedTextOutput.cpp | 58 size_t newSize = ((len+bufferPos)*3)/2; in append() local 59 void* b = realloc(buffer, newSize); in append() 62 bufferSize = newSize; in append()
|
D | Parcel.cpp | 677 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local 678 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in writeObject() 679 binder_size_t* objects = (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in writeObject() 682 mObjectsCapacity = newSize; in writeObject() 1702 size_t newSize = ((mDataSize+len)*3)/2; in growData() local 1703 return continueWrite(newSize); in growData()
|