Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp292 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local
293 if (size < sizeNeeded) return NO_MEMORY; in flatten()
320 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); in flatten()
321 size -= sizeNeeded; in flatten()
353 const size_t sizeNeeded = (11 + numInts) * sizeof(int); in unflatten() local
354 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
404 buffer = static_cast<void const*>(static_cast<uint8_t const*>(buffer) + sizeNeeded); in unflatten()
405 size -= sizeNeeded; in unflatten()
/frameworks/av/cmds/stagefright/
Dsf2.cpp484 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local
488 sizeNeeded += sizeof(int32_t); in onFillThisBuffer()
491 if (sizeNeeded > sizeLeft) { in onFillThisBuffer()
494 sizeNeeded); in onFillThisBuffer()
529 0, outBuffer->size() + sizeNeeded); in onFillThisBuffer()
531 sizeLeft -= sizeNeeded; in onFillThisBuffer()