Lines Matching refs:capacity

55             [localBufferPool](size_t capacity) {  in AllocateGraphicBuffer()  argument
56 return localBufferPool->newBuffer(capacity); in AllocateGraphicBuffer()
171 sp<ABuffer> LocalBufferPool::newBuffer(size_t capacity) { in newBuffer() argument
175 [capacity](const std::vector<uint8_t> &vec) { in newBuffer()
176 return vec.capacity() >= capacity; in newBuffer()
183 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer()
185 mUsedSize -= mPool.back().capacity(); in newBuffer()
188 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer()
190 mUsedSize, capacity, mPoolCapacity); in newBuffer()
194 std::vector<uint8_t> vec(capacity); in newBuffer()
195 mUsedSize += vec.capacity(); in newBuffer()
201 : ABuffer(vec.data(), vec.capacity()), in VectorBuffer()
336 (*buffer)->setRange(0, (*buffer)->capacity()); in grabBuffer()
547 int32_t capacity = kLinearBufferSize; in Alloc() local
548 (void)format->findInt32(KEY_MAX_INPUT_SIZE, &capacity); in Alloc()
549 if ((size_t)capacity > kMaxLinearBufferSize) { in Alloc()
550 ALOGD("client requested %d, capped to %zu", capacity, kMaxLinearBufferSize); in Alloc()
551 capacity = kMaxLinearBufferSize; in Alloc()
558 c2_status_t err = pool->fetchLinearBlock(capacity, usage, &block); in Alloc()
577 size_t capacity, in EncryptedLinearInputBuffers() argument
591 sp<IMemory> memory = mDealer->allocate(capacity);
625 int32_t capacity = kLinearBufferSize; in Alloc() local
626 (void)format->findInt32(KEY_MAX_INPUT_SIZE, &capacity); in Alloc()
627 if ((size_t)capacity > kMaxLinearBufferSize) { in Alloc()
628 ALOGD("client requested %d, capped to %zu", capacity, kMaxLinearBufferSize); in Alloc()
629 capacity = kMaxLinearBufferSize; in Alloc()
647 c2_status_t err = pool->fetchLinearBlock(capacity, usage, &block); in Alloc()
844 && clientBuffer->capacity() >= csd->flexCount(); in registerCsd()
901 [lbp](size_t capacity) { in realloc() argument
902 return lbp->newBuffer(capacity); in realloc()
1044 [lbp = mLocalBufferPool](size_t capacity) { in wrap() argument
1045 return lbp->newBuffer(capacity); in wrap()
1057 [lbp = mLocalBufferPool](size_t capacity) { in wrap() argument
1058 return lbp->newBuffer(capacity); in wrap()
1067 [lbp](size_t capacity) { in getAlloc() argument
1068 return lbp->newBuffer(capacity); in getAlloc()