Searched refs:neededSize (Results 1 – 3 of 3) sorted by relevance
78 bool ensureBufferCapacity(size_t neededSize);173 bool JDescrambler::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument174 if (mMem != NULL && mMem->size() >= neededSize) { in ensureBufferCapacity()179 mMem == NULL ? 0 : mMem->size(), neededSize); in ensureBufferCapacity()182 neededSize = (neededSize + (alignment - 1)) & ~(alignment - 1); in ensureBufferCapacity()184 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()185 mDealer = new MemoryDealer(neededSize, "JDescrambler"); in ensureBufferCapacity()186 mMem = mDealer->allocate(neededSize); in ensureBufferCapacity()
972 bool ATSParser::Stream::ensureBufferCapacity(size_t neededSize) { in ensureBufferCapacity() argument973 if (mBuffer != NULL && mBuffer->capacity() >= neededSize) { in ensureBufferCapacity()978 mBuffer == NULL ? 0 : mBuffer->capacity(), neededSize, mScrambled); in ensureBufferCapacity()994 neededSize, in ensureBufferCapacity()1031 mDescramblerSrcBuffer.size = (uint64_t)neededSize; in ensureBufferCapacity()1034 mElementaryPID, neededSize); in ensureBufferCapacity()1037 neededSize = (neededSize + 65535) & ~65535; in ensureBufferCapacity()1040 newBuffer = new ABuffer(neededSize); in ensureBufferCapacity()1121 size_t neededSize = mBuffer->size() + payloadSizeBits / 8; in parse() local1122 if (!ensureBufferCapacity(neededSize)) { in parse()
585 size_t neededSize = in extractGraphicBuffer() local588 if (dstSize < neededSize) { in extractGraphicBuffer()589 ALOGE("destination buffer is too small (%zu vs %zu)", dstSize, neededSize); in extractGraphicBuffer()