Home
last modified time | relevance | path

Searched refs:elementSize (Results 1 – 6 of 6) sorted by relevance

/system/chre/util/
Ddynamic_vector_base.cc35 bool DynamicVectorBase::doReserve(size_t newCapacity, size_t elementSize) { in doReserve() argument
38 void *newData = memoryAlloc(newCapacity * elementSize); in doReserve()
40 memcpy(newData, mData, mSize * elementSize); in doReserve()
51 bool DynamicVectorBase::doPrepareForPush(size_t elementSize) { in doPrepareForPush() argument
52 return doReserve(getNextGrowthCapacity(), elementSize); in doPrepareForPush()
68 void DynamicVectorBase::doErase(size_t index, size_t elementSize) { in doErase() argument
70 size_t moveAmount = (mSize - index) * elementSize; in doErase()
71 memmove(static_cast<uint8_t *>(mData) + (index * elementSize), in doErase()
72 static_cast<uint8_t *>(mData) + ((index + 1) * elementSize), in doErase()
76 bool DynamicVectorBase::doPushBack(const void *element, size_t elementSize) { in doPushBack() argument
[all …]
Dbuffer_base.cc38 size_t elementSize) { in copy_array() argument
45 size_t copyBytes = size * elementSize; in copy_array()
/system/chre/util/include/chre/util/
Ddynamic_vector_base.h45 bool doReserve(size_t newCapacity, size_t elementSize);
55 bool doPrepareForPush(size_t elementSize);
71 void doErase(size_t index, size_t elementSize);
80 bool doPushBack(const void *element, size_t elementSize);
Dbuffer_base.h54 bool copy_array(const void *buffer, size_t size, size_t elementSize);
/system/tools/hidl/
DArrayType.cpp420 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local
421 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter()
423 out << offsetName << " += " << std::to_string(elementSize) << ";\n"; in emitJavaFieldReaderWriter()
472 size_t elementAlign, elementSize; in emitJavaFieldReaderWriter() local
473 mElementType->getAlignmentAndSize(&elementAlign, &elementSize); in emitJavaFieldReaderWriter()
479 << elementSize in emitJavaFieldReaderWriter()
DVectorType.cpp483 size_t elementAlign, elementSize; in EmitJavaFieldReaderWriterForElementType() local
484 elementType->getAlignmentAndSize(&elementAlign, &elementSize); in EmitJavaFieldReaderWriterForElementType()
504 << elementSize << "," in EmitJavaFieldReaderWriterForElementType()
536 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType()
571 << elementSize in EmitJavaFieldReaderWriterForElementType()
593 iteratorName + " * " + std::to_string(elementSize), in EmitJavaFieldReaderWriterForElementType()