Home
last modified time | relevance | path

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

/frameworks/base/libs/ui/
DGraphicBuffer.cpp211 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local
212 if (size < sizeNeeded) return NO_MEMORY; in flatten()
249 const size_t sizeNeeded = (8 + numInts) * sizeof(int); in unflatten() local
250 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
DRegion.cpp551 const size_t sizeNeeded = sizeof(int32_t) + (1+count)*sizeof(Rect); in write() local
553 if (sizeNeeded > size) return NO_MEMORY; in write()
561 return ssize_t(sizeNeeded); in write()
582 const size_t sizeNeeded = sizeof(int32_t) + sizeof(Rect); in writeEmpty() local
583 if (sizeNeeded > size) return NO_MEMORY; in writeEmpty()
585 memset(p, 0, sizeNeeded); in writeEmpty()
586 return ssize_t(sizeNeeded); in writeEmpty()
/frameworks/base/cmds/stagefright/
Dsf2.cpp448 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local
452 sizeNeeded += sizeof(int32_t); in onFillThisBuffer()
455 if (sizeNeeded > sizeLeft) { in onFillThisBuffer()
458 sizeNeeded); in onFillThisBuffer()
493 0, outBuffer->size() + sizeNeeded); in onFillThisBuffer()
495 sizeLeft -= sizeNeeded; in onFillThisBuffer()