Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp267 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local
268 if (size < sizeNeeded) return NO_MEMORY; in flatten()
293 buffer = reinterpret_cast<void*>(static_cast<int*>(buffer) + sizeNeeded); in flatten()
294 size -= sizeNeeded; in flatten()
313 const size_t sizeNeeded = (10 + numInts) * sizeof(int); in unflatten() local
314 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
355 buffer = reinterpret_cast<void const*>(static_cast<int const*>(buffer) + sizeNeeded); in unflatten()
356 size -= sizeNeeded; in unflatten()
/frameworks/av/cmds/stagefright/
Dsf2.cpp485 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local
489 sizeNeeded += sizeof(int32_t); in onFillThisBuffer()
492 if (sizeNeeded > sizeLeft) { in onFillThisBuffer()
495 sizeNeeded); in onFillThisBuffer()
530 0, outBuffer->size() + sizeNeeded); in onFillThisBuffer()
532 sizeLeft -= sizeNeeded; in onFillThisBuffer()