Lines Matching defs:capacity
158 * \param capacity size of allocation
165 Impl(int ionFd, size_t capacity, int bufferFd, ion_user_handle_t buffer, C2Allocator::id_t id, int err)
167 mHandle(bufferFd, capacity),
188 * \param capacity size of allocation
194 static Impl *Import(int ionFd, size_t capacity, int bufferFd, C2Allocator::id_t id) {
197 return new Impl(ionFd, capacity, bufferFd, buffer, id, ret);
468 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) {
471 // align capacity
472 capacity = (capacity + mBlockSize - 1) & ~(mBlockSize - 1);
473 MapperKey key = std::make_pair(usage.expected, capacity);
477 res = mUsageMapper(usage, capacity, align, heapMask, flags);
504 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation> *allocation) {
517 c2_status_t ret = mapUsage(usage, capacity, &align, &heapMask, &flags);
523 = std::make_shared<C2AllocationIon>(dup(mIonFd), capacity, align, heapMask, flags, mTraits->id);
542 // TODO: get capacity and validate it