Searched refs:neededSize (Results 1 – 3 of 3) sorted by relevance
431 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData() local432 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData()433 neededSize = (neededSize + 65535) & ~65535; in appendData()435 ALOGV("resizing buffer to size %zu", neededSize); in appendData()437 sp<ABuffer> buffer = new ABuffer(neededSize); in appendData()
717 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() local718 if (mBuffer->capacity() < neededSize) { in parse()720 neededSize = (neededSize + 65535) & ~65535; in parse()722 ALOGI("resizing buffer to %zu bytes", neededSize); in parse()724 sp<ABuffer> newBuffer = new ABuffer(neededSize); in parse()
575 size_t neededSize = in extractGraphicBuffer() local578 if (dstSize < neededSize) { in extractGraphicBuffer()579 ALOGE("destination buffer is too small (%zu vs %zu)", dstSize, neededSize); in extractGraphicBuffer()