Home
last modified time | relevance | path

Searched refs:capacity_ (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Darray_wrapper.h30 ArrayWrapper() : buffer_(nullptr), capacity_(0), end_(0) {} in ArrayWrapper()
34 capacity_(capacity), in ArrayWrapper()
49 capacity_ = other.capacity_;
61 capacity_ = other.capacity_;
64 other.capacity_ = 0;
80 size_type max_size() const { return capacity_; } in max_size()
81 size_type capacity() const { return capacity_; } in capacity()
87 if (size <= capacity_) in resize()
90 end_ = capacity_; in resize()
98 size_type capacity_; variable
Dstring_wrapper.h32 StringWrapper() : buffer_(nullptr), capacity_(0), end_(0) {} in StringWrapper()
36 capacity_(capacity), in StringWrapper()
54 capacity_ = other.capacity_;
66 capacity_ = other.capacity_;
69 other.capacity_ = 0;
86 size_type max_size() const { return capacity_; } in max_size()
87 size_type capacity() const { return capacity_; } in capacity()
90 if (size <= capacity_) in resize()
93 end_ = capacity_; in resize()
101 size_type capacity_; variable
Dbuffer_wrapper.h30 BufferWrapper() : buffer_(nullptr), capacity_(0), end_(0) {} in BufferWrapper()
34 capacity_(capacity), in BufferWrapper()
49 capacity_ = other.capacity_;
61 capacity_ = other.capacity_;
64 other.capacity_ = 0;
80 size_type max_size() const { return capacity_; } in max_size()
81 size_type capacity() const { return capacity_; } in capacity()
84 if (size <= capacity_) in resize()
87 end_ = capacity_; in resize()
95 size_type capacity_; variable
/frameworks/base/media/mca/filterfw/native/core/
Dnative_frame.cpp22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { in NativeFrame()
23 data_ = capacity_ == 0 ? NULL : new uint8_t[capacity_]; in NativeFrame()
40 size_ = capacity_ = size; in SetData()
53 if (newSize <= capacity_ && newSize >= 0) { in Resize()
Dnative_frame.h63 return capacity_; in Capacity()
77 int capacity_; variable
/frameworks/native/services/vr/bufferhubd/
Dproducer_queue_channel.cpp24 capacity_(0) { in ProducerQueueChannel()
98 return BufferInfo(channel_id(), consumer_channels_.size(), capacity_, in GetBufferInfo()
206 if (capacity_ >= BufferHubRPC::kMaxQueueCapacity) { in AllocateBuffer()
271 capacity_++; in AllocateBuffer()
292 if (capacity_ >= BufferHubRPC::kMaxQueueCapacity) { in OnProducerQueueInsertBuffer()
351 capacity_++; in OnProducerQueueInsertBuffer()
375 if (capacity_ == 0) { in OnProducerQueueRemoveBuffer()
383 capacity_--; in OnProducerQueueRemoveBuffer()
Dconsumer_queue_channel.cpp19 capacity_(0), in ConsumerQueueChannel()
78 info.capacity = capacity_; in GetBufferInfo()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dutility.h39 std::swap(capacity_, other.capacity_);
47 inline size_t capacity() const { return capacity_; } in capacity()
64 if (size <= capacity_) in reserve()
77 capacity_ = size; in reserve()
96 size_t capacity_{0};
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dconsumer_queue_channel.h69 size_t capacity_; variable
Dproducer_queue_channel.h79 size_t capacity_; variable
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h79 size_t capacity() const { return capacity_; } in capacity()
265 size_t capacity_{0};
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp283 ALOGE("%s: queue is at maximum capacity: %zu", __FUNCTION__, capacity_); in AddBuffer()
309 capacity_++; in AddBuffer()
332 capacity_--; in RemoveBuffer()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h389 inline constexpr _C2LinearRangeAspect(uint32_t capacity_, size_t offset, size_t size) in _C2LinearRangeAspect() argument
390 : _C2LinearCapacityAspect(capacity_), in _C2LinearRangeAspect()
DC2Config.h1979 inline C2StoreIonUsageStruct(uint64_t usage_, uint32_t capacity_) in C2StoreIonUsageStruct()
1980 : usage(usage_), capacity(capacity_), heapMask(0), allocFlags(0), minAlignment(0) { } in C2StoreIonUsageStruct()