/frameworks/base/media/mca/filterfw/native/core/ |
H A D | native_frame.cpp | 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { 23 data_ = capacity_ == 0 ? NULL : new uint8_t[capacity_]; 27 delete[] data_; 32 memcpy(data_ + offset, data, size); 39 delete[] data_; 41 data_ = data; 47 if (data_) 48 result->WriteData(data_, 0, size_);
|
H A D | native_frame.h | 44 return data_; 49 return data_; 71 uint8_t* data_; member in class:android::filterfw::NativeFrame
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PngChunkFilter.cpp | 73 PngChunkFilter::PngChunkFilter(const StringPiece& data) : data_(data) { 74 if (util::StartsWith(data_, kPngSignature)) { 86 *buffer = data_.data() + window_start_; 106 while (window_end_ < data_.size()) { 111 if (data_.size() - window_end_ < kMinChunkHeaderSize) { 113 data_.size()); 118 const uint32_t chunk_len = Peek32LE(data_.data() + window_end_); 119 if ((size_t)chunk_len > data_.size() - window_end_ - kMinChunkHeaderSize) { 121 const uint32_t chunk_type = Peek32LE(data_.data() + window_end_ + sizeof(uint32_t)); 125 chunk_type, (size_t)chunk_len, window_end_ + kMinChunkHeaderSize, data_ [all...] |
H A D | Png.h | 84 android::StringPiece data_; member in class:aapt::PngChunkFilter
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | StringPiece.h | 75 const TChar* data_; member in class:android::BasicStringPiece 90 inline BasicStringPiece<TChar>::BasicStringPiece() : data_(nullptr), length_(0) {} 94 : data_(str.data_), length_(str.length_) {} 98 : data_(str.data()), length_(str.length()) {} 102 : data_(str), length_(str != nullptr ? strlen(str) : 0) {} 106 : data_(str), length_(str != nullptr ? strlen16(str) : 0) {} 110 : data_(str), length_(len) {} 115 data_ = rhs.data_; [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | ImmutableMap.h | 60 auto iter = std::lower_bound(data_.begin(), end_iter, key, cmp); 67 const_iterator begin() const { return data_.begin(); } 69 const_iterator end() const { return data_.end(); } 75 : data_(std::move(data)) {} 77 std::vector<std::pair<TKey, TValue>> data_; member in class:aapt::ImmutableMap
|
/frameworks/base/tools/aapt2/io/ |
H A D | Data.h | 46 : data_(std::move(data)), offset_(offset), len_(len), next_read_(offset) {} 50 return static_cast<const uint8_t*>(data_->data()) + offset_; 59 *data = static_cast<const uint8_t*>(data_->data()) + next_read_; 87 std::unique_ptr<IData> data_; member in class:aapt::io::DataSegment 145 : data_(std::move(data)), size_(size) {} 148 const void* data() const override { return data_.get(); } 156 *data = data_.get() + next_read_; 184 std::unique_ptr<const uint8_t[]> data_; member in class:aapt::io::MallocData
|
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
H A D | BCHeaderField.h | 42 ID_(ID), len_(len), data_(data) {} 60 memcpy(buf + kTagLenSize, data_, len_); 76 memcpy(data_, buf + kTagLenSize, len_); 84 for (size_t i = 0; i < len_; i++) fprintf(stderr, "0x%x ", data_[i]); 115 uint8_t *data_; member in class:BCHeaderField
|
/frameworks/base/libs/androidfw/tests/ |
H A D | Idmap_test.cpp | 44 &data_, &data_size_)); 48 ::free(data_); variable 53 void* data_ = nullptr; member in class:android::IdmapTest 59 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); 77 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); 94 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_)); 122 target_table_.add(overlay_data_.data(), overlay_data_.size(), data_, data_size_));
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | utility.h | 25 memcpy(data_, other.data(), other.size()); 27 ~ByteBuffer() { std::free(data_); } 32 memcpy(data_, other.data(), other.size()); 37 std::swap(data_, other.data_); 44 inline const uint8_t* data() const { return data_; } 45 inline uint8_t* data() { return data_; } 49 iterator begin() { return data_; } 50 const_iterator begin() const { return data_; } 51 iterator end() { return data_ [all...] |
/frameworks/base/tools/aapt2/format/binary/ |
H A D | ResChunkPullParser.cpp | 45 current_chunk_ = data_; 51 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_;
|
H A D | ResChunkPullParser.h | 64 const android::ResChunk_header* data_; member in class:aapt::ResChunkPullParser 96 data_(reinterpret_cast<const android::ResChunk_header*>(data)),
|
H A D | BinaryResourceParser.h | 88 const void* data_; member in class:aapt::BinaryResourceParser
|
H A D | BinaryResourceParser.cpp | 79 : diag_(diag), table_(table), source_(source), data_(data), data_len_(len), files_(files) { 83 ResChunkPullParser parser(data_, data_len_);
|
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/ |
H A D | broadcast_ring.h | 373 bool is_valid() const { return !!data_.mmap; } 466 data_.mmap = reinterpret_cast<Mmap*>(mmap); 600 Mmap* mmap() const { return data_.mmap; } 601 Header* header_mmap() const { return &data_.mmap->header; } 604 return &data_.mmap->records[index]; 608 return &data_.mmap->records[index]; 613 reinterpret_cast<char*>(data_.mmap->records) + index * record_size()); 632 return data_.record_size; 642 data_.record_size = record_size; 654 return data_ [all...] |
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 1296 session->procFrame->data_, 1302 session->procFrame->data_, 1314 memcpy(session->procFrame->data_ + session->framesIn * session->inChannelCount, 1358 session->procFrame->data_, 1364 session->procFrame->data_, 1372 session->procFrame->data_, 1830 session->revFrame->data_, 1836 session->revFrame->data_, 1848 memcpy(session->revFrame->data_ + session->framesRev * session->inChannelCount,
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | ipc_helper_tests.cpp | 78 msg_.msg_iovlen = data_.size(); 79 msg_.msg_iov = data_.data(); 89 std::vector<iovec> data_{
|