Searched refs:sizeNeeded (Results 1 – 3 of 3) sorted by relevance
211 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local212 if (size < sizeNeeded) return NO_MEMORY; in flatten()249 const size_t sizeNeeded = (8 + numInts) * sizeof(int); in unflatten() local250 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
551 const size_t sizeNeeded = sizeof(int32_t) + (1+count)*sizeof(Rect); in write() local553 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() local583 if (sizeNeeded > size) return NO_MEMORY; in writeEmpty()585 memset(p, 0, sizeNeeded); in writeEmpty()586 return ssize_t(sizeNeeded); in writeEmpty()
448 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local452 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()