/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 75 const TChar* data_; 90 inline BasicStringPiece<TChar>::BasicStringPiece() : data_(nullptr), length_(0) {} in BasicStringPiece() 94 : data_(str.data_), length_(str.length_) {} in BasicStringPiece() 98 : data_(str.data()), length_(str.length()) {} in BasicStringPiece() 102 : data_(str), length_(str != nullptr ? strlen(str) : 0) {} in BasicStringPiece() 106 : data_(str), length_(str != nullptr ? strlen16(str) : 0) {} in BasicStringPiece() 110 : data_(str), length_(len) {} in BasicStringPiece() 115 data_ = rhs.data_; 122 data_ = str; in assign() 136 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/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 | 42 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} in DataSegment() 46 return static_cast<const uint8_t*>(data_->data()) + offset_; in data() 55 *data = static_cast<const uint8_t*>(data_->data()) + next_read_; in Next() 83 std::unique_ptr<IData> data_; variable 141 : data_(std::move(data)), size_(size) {} in MallocData() 144 const void* data() const override { return data_.get(); } in data() 152 *data = data_.get() + next_read_; in Next() 180 std::unique_ptr<const uint8_t[]> data_; variable
|
/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/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/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/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/base/tools/aapt2/unflatten/ |
D | ResChunkPullParser.cpp | 45 current_chunk_ = data_; in Next() 52 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; in Next()
|
D | ResChunkPullParser.h | 75 const android::ResChunk_header* data_; variable 110 data_(reinterpret_cast<const android::ResChunk_header*>(data)), in ResChunkPullParser()
|
D | BinaryResourceParser.h | 102 const void* data_; variable
|
D | BinaryResourceParser.cpp | 82 data_(data), in BinaryResourceParser() 88 ResChunkPullParser parser(data_, data_len_); in Parse()
|
/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 __anon6e4609af0111::MessageTestBase
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1296 session->procFrame->data_, in PreProcessingFx_Process() 1302 session->procFrame->data_, in PreProcessingFx_Process() 1314 memcpy(session->procFrame->data_ + session->framesIn * session->inChannelCount, in PreProcessingFx_Process() 1358 session->procFrame->data_, in PreProcessingFx_Process() 1364 session->procFrame->data_, in PreProcessingFx_Process() 1372 session->procFrame->data_, in PreProcessingFx_Process() 1830 session->revFrame->data_, in PreProcessingFx_ProcessReverse() 1836 session->revFrame->data_, in PreProcessingFx_ProcessReverse() 1848 memcpy(session->revFrame->data_ + session->framesRev * session->inChannelCount, in PreProcessingFx_ProcessReverse()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_location_ContextHubService.cpp | 1055 jbyteArray data_) { in nativeSendMessage() argument 1064 jbyte *data = env->GetByteArrayElements(data_, 0); in nativeSendMessage() 1065 size_t dataBufferLength = env->GetArrayLength(data_); in nativeSendMessage() 1177 env->ReleaseByteArrayElements(data_, data, 0); in nativeSendMessage()
|