Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp365 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local
366 if (size < sizeNeeded) return NO_MEMORY; in flatten()
394 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); in flatten()
395 size -= sizeNeeded; in flatten()
447 const size_t sizeNeeded = (flattenWordCount + numInts) * sizeof(int); in unflatten() local
448 if (size < sizeNeeded) return NO_MEMORY; in unflatten()
516 buffer = static_cast<void const*>(static_cast<uint8_t const*>(buffer) + sizeNeeded); in unflatten()
517 size -= sizeNeeded; in unflatten()
/frameworks/base/services/core/java/com/android/server/power/
DWakeLockLog.java607 int sizeNeeded = -1; in toBytes() local
610 sizeNeeded = 3; in toBytes()
611 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()
628 sizeNeeded = 2; in toBytes()
629 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()
644 sizeNeeded = 9; in toBytes()
646 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()
663 return sizeNeeded; in toBytes()