Home
last modified time | relevance | path

Searched refs:alignedSize (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/codec2/vndk/
DC2AllocatorIon.cpp415 size_t alignedSize = align == 0 ? size : (size + align - 1) & ~(align - 1); in Alloc() local
419 ret = ion_alloc(ionFd, alignedSize, align, heapMask, flags, &buffer); in Alloc()
422 ionFd, alignedSize, align, heapMask, flags, ret, buffer); in Alloc()
431 return new Impl(ionFd, alignedSize, bufferFd, buffer, id, ret); in Alloc()
434 ret = ion_alloc_fd(ionFd, alignedSize, align, heapMask, flags, &bufferFd); in Alloc()
437 ionFd, alignedSize, align, heapMask, flags, ret, bufferFd); in Alloc()
439 return new ImplV2(ionFd, alignedSize, bufferFd, id, ret); in Alloc()
/frameworks/ml/nn/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp77 *constCopySize += op.data.alignedSize(); in createSubgraph()
85 *constRefSize += op.data.alignedSize(); in createSubgraph()
131 offset += buffer->alignedSize(); in copyTestBuffers()
194 inputSize += op.data.alignedSize(); in createRequest()
216 outputSize += op.data.size() == 0 ? TestBuffer::kAlignment : op.data.alignedSize(); in createRequest()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp107 int alignedSize = ALIGN(size, PAGE_SIZE); in decodeFrames() local
111 alignedSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in decodeFrames()
/frameworks/ml/nn/tools/test_generator/test_harness/include/
DTestHarness.h213 mBuffer.reset(aligned_alloc(kAlignment, alignedSize()), free); in mSize()
233 const size_t count = testBuffer.alignedSize() / sizeof(uint32_t); in createRandom()
252 size_t alignedSize() const { return ((mSize + kAlignment - 1) / kAlignment) * kAlignment; } in alignedSize() function
/frameworks/ml/nn/runtime/test/
DGeneratedTestUtils.cpp93 size += operand.data.alignedSize(); in createConstantReferenceMemory()
123 *memoryOffset += operand.data.alignedSize(); in createModelFromSubgraph()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp385 auto alignedSize = ALIGN(size, PAGE_SIZE); in decodeNFrames() local
390 alignedSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, in decodeNFrames()
400 ASSERT_EQ((size_t)alignedSize, view.capacity()); in decodeNFrames()
402 ASSERT_EQ((size_t)alignedSize, view.size()); in decodeNFrames()
/frameworks/av/media/libstagefright/
DACodec.cpp915 size_t alignedSize = align(bufSize, alignment); in allocateBuffersOnPort() local
917 if (def.nBufferCountActual > SIZE_MAX / (alignedSize + alignedConvSize)) { in allocateBuffersOnPort()