Searched refs:newSize (Results 1 – 9 of 9) sorted by relevance
/system/core/libutils/ |
D | SharedBuffer.cpp | 67 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize() 71 if (buf->mSize == newSize) return buf; in editResize() 74 LOG_ALWAYS_FATAL_IF((newSize >= (SIZE_MAX - sizeof(SharedBuffer))), in editResize() 75 "Invalid buffer size %zu", newSize); in editResize() 77 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); in editResize() 79 buf->mSize = newSize; in editResize() 83 SharedBuffer* sb = alloc(newSize); in editResize() 86 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize); in editResize()
|
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/ |
D | DeployAgent.java | 236 long newSize = readPatchHeader(patchData); in writePatchToStream() local 237 long bytesWritten = writePatchedDataToStream(oldData, newSize, patchData, outputStream); in writePatchToStream() 239 if (bytesWritten != newSize) { in writePatchToStream() 241 "output size mismatch (expected %ld but wrote %ld)", newSize, bytesWritten)); in writePatchToStream() 260 long newSize = PatchUtils.readBsdiffLong(patchData); in readPatchHeader() local 261 if (newSize < 0 || newSize > Integer.MAX_VALUE) { in readPatchHeader() 265 return newSize; in readPatchHeader() 271 private static long writePatchedDataToStream(RandomAccessFile oldData, long newSize, in writePatchedDataToStream() argument 276 while (newDataBytesWritten < newSize) { in writePatchedDataToStream() 299 long newSize = readPatchHeader(patchData); in writePatchedDataToSession() local [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 | 56 size_t newSize = ((len+bufferPos)*3)/2; in append() local 57 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow in append() 58 void* b = realloc(buffer, newSize); in append() 61 bufferSize = newSize; in append()
|
D | Parcel.cpp | 781 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local 782 if (newSize * sizeof(binder_size_t) < mObjectsSize) return NO_MEMORY; // overflow in writeObject() 783 binder_size_t* objects = (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in writeObject() 786 mObjectsCapacity = newSize; in writeObject() 1980 size_t newSize = ((mDataSize+len)*3)/2; in growData() local 1981 return (newSize <= mDataSize) in growData() 1983 : continueWrite(newSize); in growData()
|