Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp401 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local
402 if (size < sizeNeeded) return NO_MEMORY; in flatten()
430 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); in flatten()
431 size -= sizeNeeded; in flatten()
489 const size_t sizeNeeded = (flattenWordCount + numInts) * sizeof(int); in unflatten() local
490 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
558 buffer = static_cast<void const*>(static_cast<uint8_t const*>(buffer) + sizeNeeded); in unflatten()
559 size -= sizeNeeded; in unflatten()
580 const size_t sizeNeeded = static_cast<size_t>(3 + numIntsInToken) * sizeof(int); in flattenBufferHubBuffer() local
581 if (size < sizeNeeded) { in flattenBufferHubBuffer()
[all …]