/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | ring_buffer.h | 33 Get(size_) = val; in Append() 34 size_++; in Append() 40 Get(size_) = std::move(val); in Append() 41 size_++; in Append() 44 bool IsEmpty() const { return size_ == 0; } in IsEmpty() 46 bool IsFull() const { return size_ == buffer_.size(); } in IsFull() 48 size_t GetSize() const { return size_; } in GetSize() 58 const T& Back() const { return Get(size_ - 1); } in Back() 60 T& Back() { return Get(size_ - 1); } in Back() 67 if (size_ != 0) { in PopBack() [all …]
|
/frameworks/av/media/utils/include/mediautils/ |
D | FixedString.h | 95 size_ = 0; 133 uint32_t size() const { return size_; } in size() 134 uint32_t remaining() const { return size_ >= N ? 0 : N - size_; } in remaining() 135 bool empty() const { return size_ == 0; } in empty() 136 bool full() const { return size_ == N; } // when full, possible truncation risk. in full() 142 return { buffer_, static_cast<size_t>(size_) }; in asStringView() 145 return { buffer_, static_cast<size_t>(size_) }; in asString() 148 void clear() { size_ = 0; buffer_[0] = 0; } in clear() 159 if (size_ == 0) { in append() 166 if (size_ < N) { in append() [all …]
|
/frameworks/libs/binary_translation/tools/nogrod/ |
D | byte_input_stream.cc | 26 : buffer_(buffer), size_(size), offset_(0) {} in ByteInputStream() 29 return offset_ < size_; in available() 37 CHECK(offset_ < size_); in ReadUint8() 43 CHECK(offset_ + sizeof(result) <= size_); in ReadUint16() 52 CHECK_LE(offset_ + 3, size_); in ReadUint24() 61 CHECK(offset_ + sizeof(result) <= size_); in ReadUint32() 70 CHECK(offset_ + sizeof(result) <= size_); in ReadUint64() 79 size_t bytes = DecodeLeb128(buffer_ + offset_, size_ - offset_, &result); in ReadLeb128() 86 size_t bytes = DecodeSleb128(buffer_ + offset_, size_ - offset_, &result); in ReadSleb128() 92 CHECK_LE(offset_ + size, size_); in ReadBytes() [all …]
|
D | buffer.h | 32 : buffer_{std::move(buffer)}, data_{buffer_.data()}, size_{buffer_.size()} {} in Buffer() 33 explicit constexpr Buffer(const T* data, size_t size) : data_{data}, size_{size} {} in Buffer() 36 constexpr size_t size() const { return size_; } in size() 54 this->size_ = that.size_; 62 size_t size_; variable
|
D | leb128.cc | 27 Leb128Decoder::Leb128Decoder(const uint8_t* buffer, size_t size) : buffer_(buffer), size_(size) {} in Leb128Decoder() 31 return DecodeLeb128(buffer_ + offset, size_ - offset, result); in Decode()
|
D | leb128.h | 37 size_t size_; variable
|
D | byte_input_stream.h | 46 uint64_t size_; variable
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | exec_region.h | 41 : exec_{exec}, write_{write}, size_{size} {} in ExecRegion() 49 size_ = other.size_; in ExecRegion() 52 other.size_ = 0; in ExecRegion() 61 size_ = other.size_; 64 other.size_ = 0; 69 [[nodiscard]] const uint8_t* end() const { return exec_ + size_; } in end() 79 size_t size_ = 0; variable
|
D | mmap.h | 71 ScopedMmap() : data_(nullptr), size_(0) {} in ScopedMmap() 75 if (size_) { in ~ScopedMmap() 76 MunmapOrDie(data_, size_); in ~ScopedMmap() 81 size_ = AlignUpPageSize(size); in Init() 82 data_ = MmapOrDie(size_); in Init() 86 size_t size() const { return size_; } in size() 90 size_t size_; variable
|
D | arena_zeroed_array.h | 35 : size_(size), array_(NewArrayInArena<T>(arena, size)) { in ArenaZeroedArray() 43 CHECK_LT(i, size_); in at() 48 CHECK_LT(i, size_); in at() 53 size_t size_;
|
D | mapped_file_fragment.h | 32 size_t size() const { return size_; } in size() 38 size_t size_; variable
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | BigBuffer.h | 132 size_t size_; variable 136 inline BigBuffer::BigBuffer(size_t block_size) : block_size_(block_size), size_(0) { in BigBuffer() 140 : block_size_(rhs.block_size_), size_(rhs.size_), blocks_(std::move(rhs.blocks_)) { in BigBuffer() 144 return size_; in size() 161 size_ -= count; in BackUp() 166 size_ += buffer.size_; in AppendBuffer() 168 buffer.size_ = 0; in AppendBuffer() 176 const size_t unaligned = size_ % 4; in Align4()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | vertex_frame.cpp | 30 size_(size) { in VertexFrame() 55 if (first_upload && size == size_) in WriteData() 57 else if (!first_upload && size <= size_) in WriteData() 61 "inside the vertex frame (%d bytes)!", size, size_); in WriteData() 70 size_ = size; in WriteData() 76 return size_; in Size()
|
D | native_frame.cpp | 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { in NativeFrame() 31 if (size_ >= (offset + size)) { in WriteData() 40 size_ = capacity_ = size; in SetData() 46 NativeFrame* result = new NativeFrame(size_); in Clone() 48 result->WriteData(data_, 0, size_); in Clone() 54 size_ = newSize; in Resize()
|
D | native_frame.h | 58 return size_; in Size() 74 int size_; variable
|
D | vertex_frame.h | 71 int size_; variable
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | utility.h | 38 std::swap(size_, other.size_); 46 inline size_t size() const { return size_; } in size() 51 iterator end() { return data_ + size_; } in end() 52 const_iterator end() const { return data_ + size_; } in end() 55 return size_ == other.size_ && 56 (size_ == 0 || memcmp(data_, other.data_, size_) == 0); 82 size_ = size; in resize() 86 size_t old_size = size_; in grow_by() 91 inline void clear() { size_ = 0; } in clear() 95 size_t size_{0};
|
/frameworks/native/include/ftl/ |
D | static_vector.h | 155 : size_(std::min(max_size(), static_cast<size_type>(std::distance(first, last)))) { in StaticVector() 156 uninitialized_copy(first, first + size_, begin()); in StaticVector() 167 std::swap(size_, other.size_); in StaticVector() 229 size_type size() const { return size_; } in size() 280 ++size_; in emplace_back() 312 size_ = 0; in clear() 328 --size_; in unstable_erase() 341 explicit StaticVector(std::index_sequence<I>) : size_(I) {} in StaticVector() 366 : size_(I + 1) { in StaticVector() 370 size_type size_ = 0; variable [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | Data.h | 144 : data_(std::move(data)), size_(size) {} in MallocData() 149 size_t size() const override { return size_; } in size() 152 if (next_read_ == size_) { in Next() 156 *size = size_ - next_read_; in Next() 157 next_read_ = size_; in Next() 184 size_t size_; variable
|
/frameworks/base/libs/androidfw/ |
D | BigBuffer.cpp | 33 size_ += size; in NextBlockImpl() 50 size_ += size; in NextBlockImpl() 61 size_ += size; in NextBlock() 74 size_ += block_size_; in NextBlock()
|
/frameworks/libs/binary_translation/base/ |
D | exec_region.cc | 35 MunmapOrDie(write_, size_); in Detach() 42 MunmapOrDie(exec_, size_); in Free()
|
D | mapped_file_fragment.cc | 43 : map_start_(nullptr), map_size_(0), data_(nullptr), size_(0) {} in MappedFileFragment() 75 size_ = size; in Map()
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | gen_vulkan.go | 1437 const std::uint32_t* size_ = nullptr; 1443 if (size_ == nullptr) { 1446 for (std::size_t index = 0; index < *size_; ++index) { 1514 const std::uint32_t* size_ = nullptr; 1520 if (size_ == nullptr) { 1523 for (std::size_t index = 0; index < *size_; ++index) { 2084 std::size_t size_ = 0; 2108 holder.size_ = size; 2142 std::size_t size_ = 0; 2164 holder.size_ = size; [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Buffer.cpp | 328 C2ConstLinearBlock C2ConstLinearBlock::subBlock(size_t offset_, size_t size_) const { in subBlock() 329 C2LinearRange subRange(*mImpl, offset_, size_); in subBlock() 358 C2ConstLinearBlock C2LinearBlock::share(size_t offset_, size_t size_, C2Fence fence) { in share() argument 359 return ConstLinearBlockBuddy(mImpl, C2LinearRange(*this, offset_, size_), fence); in share()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 257 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment() 259 size(size_) { in C2Segment()
|