Searched refs:neededSize (Results 1 – 5 of 5) sorted by relevance
111 void JDescrambler::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument112 if (mMem != NULL && mMem->size() >= neededSize) { in ensureBufferCapacity()117 mMem == NULL ? 0 : mMem->size(), neededSize); in ensureBufferCapacity()120 neededSize = (neededSize + (alignment - 1)) & ~(alignment - 1); in ensureBufferCapacity()122 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()123 mDealer = new MemoryDealer(neededSize, "JDescrambler"); in ensureBufferCapacity()124 mMem = mDealer->allocate(neededSize); in ensureBufferCapacity()
60 void ensureBufferCapacity(size_t neededSize);
458 size_t neededSize = (mBuffer == NULL ? 0 : mBuffer->size()) + size; in appendData() local459 if (mBuffer == NULL || neededSize > mBuffer->capacity()) { in appendData()460 neededSize = (neededSize + 65535) & ~65535; in appendData()462 ALOGV("resizing buffer to size %zu", neededSize); in appendData()464 sp<ABuffer> buffer = new ABuffer(neededSize); in appendData()503 size_t neededSize = (mScrambledBuffer == NULL ? 0 : mScrambledBuffer->size()) + size; in appendScrambledData() local504 if (mScrambledBuffer == NULL || neededSize > mScrambledBuffer->capacity()) { in appendScrambledData()505 neededSize = (neededSize + 65535) & ~65535; in appendScrambledData()507 ALOGI("resizing scrambled buffer to size %zu", neededSize); in appendScrambledData()509 sp<ABuffer> buffer = new ABuffer(neededSize); in appendScrambledData()
810 void ATSParser::Stream::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument811 if (mBuffer != NULL && mBuffer->capacity() >= neededSize) { in ensureBufferCapacity()816 mBuffer == NULL ? 0 : mBuffer->capacity(), neededSize, mScrambled); in ensureBufferCapacity()823 neededSize = (neededSize + (alignment - 1)) & ~(alignment - 1); in ensureBufferCapacity()825 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()826 newDealer = new MemoryDealer(neededSize, "ATSParser"); in ensureBufferCapacity()827 newMem = newDealer->allocate(neededSize); in ensureBufferCapacity()842 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()845 newBuffer = new ABuffer(neededSize); in ensureBufferCapacity()925 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() local[all …]
586 size_t neededSize = in extractGraphicBuffer() local589 if (dstSize < neededSize) { in extractGraphicBuffer()590 ALOGE("destination buffer is too small (%zu vs %zu)", dstSize, neededSize); in extractGraphicBuffer()