/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 83 const TChar* data_; 98 inline BasicStringPiece<TChar>::BasicStringPiece() : data_(nullptr), length_(0) {} in BasicStringPiece() 102 : data_(str.data_), length_(str.length_) {} in BasicStringPiece() 106 : data_(str.data()), length_(str.length()) {} in BasicStringPiece() 110 : data_(str), length_(str != nullptr ? strlen(str) : 0) {} in BasicStringPiece() 114 : data_(str), length_(str != nullptr ? strlen16(str) : 0) {} in BasicStringPiece() 118 : data_(str), length_(len) {} in BasicStringPiece() 123 data_ = rhs.data_; 130 data_ = str; in assign() 144 return BasicStringPiece<TChar>(data_ + start, len); in substr() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | PngChunkFilter.cpp | 73 PngChunkFilter::PngChunkFilter(const StringPiece& data) : data_(data) { in PngChunkFilter() 74 if (util::StartsWith(data_, kPngSignature)) { in PngChunkFilter() 86 *buffer = data_.data() + window_start_; in ConsumeWindow() 106 while (window_end_ < data_.size()) { in Next() 111 if (data_.size() - window_end_ < kMinChunkHeaderSize) { in Next() 113 data_.size()); in Next() 118 const uint32_t chunk_len = Peek32LE(data_.data() + window_end_); in Next() 119 if ((size_t)chunk_len > data_.size() - window_end_ - kMinChunkHeaderSize) { in Next() 121 const uint32_t chunk_type = Peek32LE(data_.data() + window_end_ + sizeof(uint32_t)); in Next() 125 chunk_type, (size_t)chunk_len, window_end_ + kMinChunkHeaderSize, data_.size()); in Next() [all …]
|
D | Png.h | 84 android::StringPiece data_; variable
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | native_frame.cpp | 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { in NativeFrame() 23 data_ = capacity_ == 0 ? NULL : new uint8_t[capacity_]; in NativeFrame() 27 delete[] data_; in ~NativeFrame() 32 memcpy(data_ + offset, data, size); in WriteData() 39 delete[] data_; in SetData() 41 data_ = data; in SetData() 47 if (data_) in Clone() 48 result->WriteData(data_, 0, size_); in Clone()
|
D | native_frame.h | 44 return data_; in Data() 49 return data_; in MutableData() 71 uint8_t* data_;
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | Result.h | 77 std::variant<T, Error> data_; variable 81 Result<T>::Result(const T& value) : data_(std::in_place_type<T>, value) { in Result() 85 Result<T>::Result(T&& value) noexcept : data_(std::in_place_type<T>, std::forward<T>(value)) { in Result() 89 Result<T>::Result(const Error& error) : data_(std::in_place_type<Error>, error) { in Result() 94 : data_(std::in_place_type<Error>, std::forward<Error>(error)) { in Result() 105 return std::get<T>(data_); 111 return std::get<T>(data_); 117 return &std::get<T>(data_); 123 return &std::get<T>(data_); 129 return std::get<Error>(data_).GetMessage(); in GetErrorMessage() [all …]
|
D | Idmap.h | 247 return data_; in GetData() 257 std::vector<std::unique_ptr<const IdmapData>> data_; variable
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | utility.h | 25 memcpy(data_, other.data(), other.size()); in ByteBuffer() 27 ~ByteBuffer() { std::free(data_); } in ~ByteBuffer() 32 memcpy(data_, other.data(), other.size()); 37 std::swap(data_, other.data_); 44 inline const uint8_t* data() const { return data_; } in data() 45 inline uint8_t* data() { return data_; } in data() 49 iterator begin() { return data_; } in begin() 50 const_iterator begin() const { return data_; } in begin() 51 iterator end() { return data_ + size_; } in end() 52 const_iterator end() const { return data_ + size_; } in end() [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | Data.h | 46 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment() 50 return static_cast<const uint8_t*>(data_->data()) + offset_; in data() 59 *data = static_cast<const uint8_t*>(data_->data()) + next_read_; in Next() 87 std::unique_ptr<IData> data_; variable 145 : data_(std::move(data)), size_(size) {} in MallocData() 148 const void* data() const override { return data_.get(); } in data() 156 *data = data_.get() + next_read_; in Next() 184 std::unique_ptr<const uint8_t[]> data_; variable
|
/frameworks/base/cmds/idmap2/tests/ |
D | ResultTests.cpp | 189 explicit RefCountContainer(RefCountData& data) : data_(data) { in RefCountContainer() 190 ++data_.ctor; in RefCountContainer() 195 RefCountContainer(RefCountContainer&& rhs) noexcept : data_(rhs.data_) { in RefCountContainer() 196 ++data_.copy_ctor; in RefCountContainer() 202 data_ = rhs.data_; in operator =() 203 ++data_.move; in operator =() 208 ++data_.dtor; in ~RefCountContainer() 212 RefCountData& data_; member in android::idmap2::RefCountContainer
|
/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 44 &data_, &data_size_)); in SetUp() 48 ::free(data_); in TearDown() 53 void* data_ = nullptr; member in android::IdmapTest 59 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); in TEST_F() 77 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); in TEST_F() 94 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); in TEST_F() 122 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); in TEST_F()
|
/frameworks/base/tools/aapt2/util/ |
D | ImmutableMap.h | 60 auto iter = std::lower_bound(data_.begin(), end_iter, key, cmp); in find() 67 const_iterator begin() const { return data_.begin(); } in begin() 69 const_iterator end() const { return data_.end(); } in end() 75 : data_(std::move(data)) {} in ImmutableMap() 77 std::vector<std::pair<TKey, TValue>> data_; variable
|
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
D | BCHeaderField.h | 42 ID_(ID), len_(len), data_(data) {} in BCHeaderField() 60 memcpy(buf + kTagLenSize, data_, len_); in Write() 76 memcpy(data_, buf + kTagLenSize, len_); in Read() 84 for (size_t i = 0; i < len_; i++) fprintf(stderr, "0x%x ", data_[i]); in Print() 115 uint8_t *data_; variable
|
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/ |
D | broadcast_ring.h | 373 bool is_valid() const { return !!data_.mmap; } in is_valid() 466 data_.mmap = reinterpret_cast<Mmap*>(mmap); in BroadcastRing() 600 Mmap* mmap() const { return data_.mmap; } in mmap() 601 Header* header_mmap() const { return &data_.mmap->header; } in header_mmap() 604 return &data_.mmap->records[index]; in record_mmap_writer() 608 return &data_.mmap->records[index]; in record_mmap_reader() 613 reinterpret_cast<char*>(data_.mmap->records) + index * record_size()); in record_mmap_reader() 632 return data_.record_size; in record_size_internal() 642 data_.record_size = record_size; in set_record_size() 654 return data_.record_count; in record_count_internal() [all …]
|
/frameworks/ml/nn/common/random/ |
D | philox_random.h | 59 data_[i] = T(0); in Array() 63 PHILOX_DEVICE_INLINE const T& operator[](int index) const { return data_[index]; } 65 PHILOX_DEVICE_INLINE T& operator[](int index) { return data_[index]; } 70 T data_[ElementCount];
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResChunkPullParser.cpp | 45 current_chunk_ = data_; in Next() 51 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; in Next()
|
D | ResChunkPullParser.h | 64 const android::ResChunk_header* data_; variable 96 data_(reinterpret_cast<const android::ResChunk_header*>(data)), in ResChunkPullParser()
|
D | BinaryResourceParser.h | 96 const void* data_; variable
|
D | BinaryResourceParser.cpp | 92 : diag_(diag), table_(table), source_(source), data_(data), data_len_(len), files_(files) { in BinaryResourceParser() 96 ResChunkPullParser parser(data_, data_len_); in Parse()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 263 idmap->data_.push_back(std::move(data)); in FromBinaryStream() 469 idmap->data_.push_back(std::move(data)); in FromApkAssets() 503 auto end = data_.cend(); in accept() 504 for (auto iter = data_.cbegin(); iter != end; ++iter) { in accept()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | ipc_helper_tests.cpp | 78 msg_.msg_iovlen = data_.size(); in MessageTestBase() 79 msg_.msg_iov = data_.data(); in MessageTestBase() 89 std::vector<iovec> data_{ member in __anondc4150d00111::MessageTestBase
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1297 session->procFrame->data_, in PreProcessingFx_Process() 1303 session->procFrame->data_, in PreProcessingFx_Process() 1315 memcpy(session->procFrame->data_ + session->framesIn * session->inChannelCount, in PreProcessingFx_Process() 1359 session->procFrame->data_, in PreProcessingFx_Process() 1365 session->procFrame->data_, in PreProcessingFx_Process() 1373 session->procFrame->data_, in PreProcessingFx_Process() 1831 session->revFrame->data_, in PreProcessingFx_ProcessReverse() 1837 session->revFrame->data_, in PreProcessingFx_ProcessReverse() 1849 memcpy(session->revFrame->data_ + session->framesRev * session->inChannelCount, in PreProcessingFx_ProcessReverse()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 67 constexpr FrameData(const uint8_t(&data_)[N]) : data(data_), size(N) { } in FrameData()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Config.h | 730 size_t flexCount, C2Config::supplemental_info_t type, std::vector<uint8_t> data_) in C2SupplementalDataStruct() 732 memcpy(data, &data_[0], c2_min(data_.size(), flexCount)); in C2SupplementalDataStruct()
|