Home
last modified time | relevance | path

Searched refs:data_ (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/libs/androidfw/
DPngChunkFilter.cpp70 PngChunkFilter::PngChunkFilter(StringPiece data) : data_(data) { in PngChunkFilter()
71 if (android::base::StartsWith(data_, kPngSignature)) { in PngChunkFilter()
83 *buffer = data_.data() + window_start_; in ConsumeWindow()
103 while (window_end_ < data_.size()) { in Next()
108 if (data_.size() - window_end_ < kMinChunkHeaderSize) { in Next()
110 data_.size()); in Next()
115 const uint32_t chunk_len = Peek32LE(data_.data() + window_end_); in Next()
116 if ((size_t)chunk_len > data_.size() - window_end_ - kMinChunkHeaderSize) { in Next()
118 const uint32_t chunk_type = Peek32LE(data_.data() + window_end_ + sizeof(uint32_t)); in Next()
122 chunk_type, (size_t)chunk_len, window_end_ + kMinChunkHeaderSize, data_.size()); in Next()
[all …]
/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()
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()
Dnative_frame.h44 return data_; in Data()
49 return data_; in MutableData()
71 uint8_t* data_;
/frameworks/libs/binary_translation/tools/nogrod/
Dbuffer.h32 : 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()
35 constexpr const T* data() const { return data_; } in data()
47 bool that_data_points_to_vector = (that.data_ == that.buffer_.data());
50 this->data_ = this->buffer_.data();
52 this->data_ = that.data_;
61 const T* data_; variable
/frameworks/base/cmds/idmap2/include/idmap2/
DResult.h77 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 …]
DIdmap.h295 return data_; in GetData()
304 std::vector<std::unique_ptr<const IdmapData>> data_; variable
/frameworks/native/libs/vr/libpdx/private/pdx/
Dutility.h25 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/
DData.h45 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment()
49 return static_cast<const uint8_t*>(data_->data()) + offset_; in data()
58 *data = static_cast<const uint8_t*>(data_->data()) + next_read_; in Next()
86 std::unique_ptr<IData> data_; variable
144 : data_(std::move(data)), size_(size) {} in MallocData()
147 const void* data() const override { return data_.get(); } in data()
155 *data = data_.get() + next_read_; in Next()
183 std::unique_ptr<const uint8_t[]> data_; variable
/frameworks/base/libs/androidfw/include/androidfw/
DIdmap.h96 explicit Result(uint32_t value) : data_(value) {}; in Result()
97 explicit Result(std::map<ConfigDescription, Res_value> value) : data_(std::move(value)) { in Result()
102 return std::get_if<std::monostate>(&data_) == nullptr;
106 return std::get_if<uint32_t>(&data_) != nullptr; in IsResourceId()
110 return std::get<uint32_t>(data_); in GetResourceId()
114 return std::get_if<2>(&data_) != nullptr; in IsInlineValue()
118 return std::get<2>(data_); in GetInlineValue()
123 std::map<ConfigDescription, Res_value> > data_;
DPng.h84 StringPiece data_; variable
/frameworks/libs/binary_translation/base/include/berberis/base/
Dmmap.h71 ScopedMmap() : data_(nullptr), size_(0) {} in ScopedMmap()
76 MunmapOrDie(data_, size_); in ~ScopedMmap()
82 data_ = MmapOrDie(size_); in Init()
85 void* data() const { return data_; } in data()
89 void* data_;
Dmapped_file_fragment.h31 void* data() const { return data_; } in data()
37 void* data_; variable
/frameworks/base/cmds/idmap2/tests/
DResultTests.cpp189 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/tools/aapt2/util/
DImmutableMap.h60 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/
DBCHeaderField.h42 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/
Dbroadcast_ring.h373 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/libs/binary_translation/backend/x86_64/
Dmachine_ir_exec_test.cc604 ExecMachineIRTest() : machine_ir_(&arena_), builder_(&machine_ir_), data_{} { in ExecMachineIRTest()
609 builder_.Gen<x86_64::MovqRegImm>(x86_64::kMachineRegRBP, reinterpret_cast<uintptr_t>(&data_));
611 for (size_t i = 0; i < std::size(data_.slots); ++i) {
618 offsetof(Data, slots) + i * sizeof(data_.slots[0]));
624 kXmms[i], x86_64::kMachineRegRBP, offsetof(Data, xmms) + i * sizeof(data_.xmms[0]));
629 kGRegs[i], x86_64::kMachineRegRBP, offsetof(Data, gregs) + i * sizeof(data_.gregs[0]));
636 x86_64::kMachineRegRBP, offsetof(Data, gregs) + i * sizeof(data_.gregs[0]), kGRegs[i]); in Finalize()
641 x86_64::kMachineRegRBP, offsetof(Data, xmms) + i * sizeof(data_.xmms[0]), kXmms[i]); in Finalize()
644 for (size_t i = 0; i < std::size(data_.slots); ++i) { in Finalize()
648 offsetof(Data, slots) + i * sizeof(data_.slots[0]), in Finalize()
[all …]
/frameworks/libs/binary_translation/base/
Dmapped_file_fragment.cc43 : map_start_(nullptr), map_size_(0), data_(nullptr), size_(0) {} in MappedFileFragment()
74 data_ = map_start + page_offset(offset); in Map()
/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.cpp47 current_chunk_ = data_; in Next()
53 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; in Next()
DResChunkPullParser.h64 const android::ResChunk_header* data_; variable
97 data_(reinterpret_cast<const android::ResChunk_header*>(data)), in ResChunkPullParser()
DBinaryResourceParser.h100 const void* data_; variable
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dgen_vulkan.go1309 …bool& out_of_memory) : value_(new_value == nullptr ? kNullGuestAddr : ToGuestAddr(&holder.data_)) {
1311 holder.data_ = {
1386 holder.data_ = {
1388 return &holder.data_;
1456 …ry) : value_((new_value == nullptr) ? kNullGuestAddr : ToGuestAddr(holder.data_ = new (std::nothro…
1534 holder.data_[index] = {
1537 return holder.data_;
1604 GuestType<VkAccelerationStructureBuildGeometryInfoKHR> data_;
1611 : value_(new_value == nullptr ? kNullGuestAddr : ToGuestAddr(&holder.data_)) {
1613 holder.data_ = {
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp308 idmap->data_.push_back(std::move(data)); in FromBinaryStream()
406 idmap->data_.push_back(std::move(*idmap_data)); in FromContainers()
431 auto end = data_.cend(); in accept()
432 for (auto iter = data_.cbegin(); iter != end; ++iter) { in accept()
DFabricatedOverlay.cpp352 if (!data_.has_value()) { in InitializeData()
371 data_ = SerializedData{std::move(pb_data), pb_size, pb_crc, string_pool_data_}; in InitializeData()
373 return &(*data_); in InitializeData()
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper_tests.cpp78 msg_.msg_iovlen = data_.size(); in MessageTestBase()
79 msg_.msg_iov = data_.data(); in MessageTestBase()
89 std::vector<iovec> data_{ member in __anon371833e40111::MessageTestBase

12