/system/unwinding/libunwindstack/tests/ |
D | ArmExidxExtractTest.cpp | 39 data_ = exidx_->data(); in SetUp() 40 data_->clear(); in SetUp() 48 std::deque<uint8_t>* data_; member in unwindstack::ArmExidxExtractTest 55 ASSERT_TRUE(data_->empty()); in TEST_F() 63 ASSERT_TRUE(data_->empty()); in TEST_F() 70 ASSERT_EQ(3U, data_->size()); in TEST_F() 71 ASSERT_EQ(0xa8, data_->at(0)); in TEST_F() 72 ASSERT_EQ(0xb0, data_->at(1)); in TEST_F() 73 ASSERT_EQ(0xb0, data_->at(2)); in TEST_F() 80 ASSERT_EQ(4U, data_->size()); in TEST_F() [all …]
|
D | ArmExidxDecodeTest.cpp | 56 data_ = exidx_->data(); in Init() 80 std::deque<uint8_t>* data_; member in unwindstack::ArmExidxDecodeTest 89 data_->push_back(0x00); in TEST_P() 108 data_->clear(); in TEST_P() 109 data_->push_back(0x01); in TEST_P() 128 data_->clear(); in TEST_P() 129 data_->push_back(0x3f); in TEST_P() 150 data_->push_back(0x40); in TEST_P() 169 data_->clear(); in TEST_P() 170 data_->push_back(0x41); in TEST_P() [all …]
|
/system/connectivity/wificond/net/ |
D | nl80211_packet.cpp | 27 : data_(data) { in NL80211Packet() 28 data_ = data; in NL80211Packet() 32 data_ = packet.data_; in NL80211Packet() 42 data_.resize(NLMSG_HDRLEN + GENL_HDRLEN, 0); in NL80211Packet() 44 nlmsghdr* nl_header = reinterpret_cast<nlmsghdr*>(data_.data()); in NL80211Packet() 45 nl_header->nlmsg_len = data_.size(); in NL80211Packet() 53 reinterpret_cast<genlmsghdr*>(data_.data() + NLMSG_HDRLEN); in NL80211Packet() 61 if (data_.size() < NLMSG_HDRLEN) { in IsValid() 66 const nlmsghdr* nl_header = reinterpret_cast<const nlmsghdr*>(data_.data()); in IsValid() 71 if (data_.size() < NLMSG_HDRLEN + GENL_HDRLEN || in IsValid() [all …]
|
D | nl80211_attribute.cpp | 39 memcpy(data_.data() + NLA_HDRLEN, raw_buffer.data(), raw_buffer.size()); in BaseNL80211Attr() 44 data_.resize(NLA_HDRLEN + NLA_ALIGN(payload_length), 0); in InitHeaderAndResize() 45 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); in InitHeaderAndResize() 51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in GetAttributeId() 56 if (data_.size() < NLA_HDRLEN) { in IsValid() 59 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid() 60 return NLA_ALIGN(header->nla_len) == data_.size(); in IsValid() 64 return data_; in GetConstData() 104 auto our_header = reinterpret_cast<nlattr*>(data_.data()); in Merge() 115 data_.resize(our_len_without_padding); in Merge() [all …]
|
D | nl80211_attribute.h | 61 std::vector<uint8_t> data_; variable 72 T* storage = reinterpret_cast<T*>(data_.data() + NLA_HDRLEN); in NL80211Attr() 81 data_ = data; in NL80211Attr() 92 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); in IsValid() 95 if (NLA_ALIGN(sizeof(T)) + NLA_HDRLEN != data_.size() || in IsValid() 103 return *reinterpret_cast<const T*>(data_.data() + NLA_HDRLEN); in GetValue() 123 data_ = data; in NL80211Attr() 128 std::copy_n(data_.data() + NLA_HDRLEN, N, arr.begin()); in GetValue() 199 const uint8_t* ptr = data_.data() + NLA_HDRLEN; in GetListOfAttributeValues() 200 const uint8_t* end_ptr = data_.data() + data_.size(); in GetListOfAttributeValues() [all …]
|
/system/nvram/messages/include/nvram/messages/ |
D | vector.h | 41 data_[i].~ElementType(); in ~Vector() 43 free(data_); in ~Vector() 44 data_ = nullptr; in ~Vector() 63 ElementType* tmp_data = first.data_; in swap() 65 first.data_ = second.data_; in swap() 67 second.data_ = tmp_data; in swap() 73 return data_[pos]; 77 return data_[pos]; 80 ElementType* begin() { return data_; } in begin() 81 ElementType* end() { return data_ + size_; } in end() [all …]
|
D | blob.h | 47 uint8_t* data() { return data_; } in data() 48 const uint8_t* data() const { return data_; } in data() 68 uint8_t* data_ = nullptr;
|
/system/nvram/messages/ |
D | blob.cpp | 29 free(data_); in ~Blob() 30 data_ = nullptr; in ~Blob() 46 uint8_t* data_tmp = first.data_; in swap() 48 first.data_ = second.data_; in swap() 50 second.data_ = data_tmp; in swap() 55 free(data_); in Assign() 56 data_ = static_cast<uint8_t*>(malloc(size)); in Assign() 57 if (!data_) { in Assign() 61 memcpy(data_, data, size); in Assign() 67 uint8_t* tmp_data = static_cast<uint8_t*>(realloc(data_, size)); in Resize() [all …]
|
/system/teeui/libteeui/include/teeui/ |
D | static_vec.h | 42 T* data_; 46 static_vec() : data_(nullptr), size_(0) {} in static_vec() 47 static_vec(T* begin, T* end) : data_(begin), size_(end - begin) {} in static_vec() 48 template <size_t s> static_vec(T (&arr)[s]) : data_(&arr[0]), size_(s) {} in static_vec() 54 T* data() { return data_; } in data() 55 const T* data() const { return data_; } in data() 58 T* begin() { return data_; } in begin() 59 T* end() { return data_ + size_; } in end() 60 const T* begin() const { return data_; } in begin() 61 const T* end() const { return data_ + size_; } in end()
|
/system/logging/logd/ |
D | SerializedData.h | 30 SerializedData(size_t size) : data_(new uint8_t[size]), size_(size) {} in SerializedData() 34 data_.reset(new uint8_t[new_size]); in Resize() 37 data_.reset(); in Resize() 42 memcpy(new_data.get(), data_.get(), copy_size); in Resize() 43 data_.swap(new_data); in Resize() 48 uint8_t* data() { return data_.get(); } in data() 49 const uint8_t* data() const { return data_.get(); } in data() 53 std::unique_ptr<uint8_t[]> data_;
|
/system/extras/libjsonpb/parse/include/jsonpb/ |
D | error_or.h | 30 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() 33 return *std::get_if<1u>(&data_); 37 return *std::get_if<1u>(&data_); 41 return std::get_if<1u>(&data_); 45 return std::get_if<1u>(&data_); 49 return *std::get_if<0u>(&data_); in error() 51 bool ok() const { return data_.index() != 0; } in ok() 60 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() 62 std::variant<std::string, T> data_; member
|
/system/unwinding/libunwindstack/utils/ |
D | MemoryFake.cpp | 28 auto entry = data_.find(addr); in SetMemoryBlock() 29 if (entry != data_.end()) { in SetMemoryBlock() 32 data_.insert({addr, value}); in SetMemoryBlock() 40 auto value = data_.find(addr); in SetMemory() 41 if (value != data_.end()) { in SetMemory() 44 data_.insert({addr, src[i]}); in SetMemory() 52 auto value = data_.find(addr); in Read() 53 if (value == data_.end()) { in Read()
|
/system/core/property_service/libpropertyinfoserializer/ |
D | trie_node_arena.h | 51 return ArenaObjectPointer<T>(data_, offset); in AllocateObject() 61 return reinterpret_cast<uint32_t*>(data_.data() + offset); in uint32_array() 79 if (current_data_pointer_ + aligned_size > data_.size()) { in AllocateData() 80 auto new_size = (current_data_pointer_ + aligned_size + data_.size()) * 2; in AllocateData() 81 data_.resize(new_size, '\0'); in AllocateData() 87 return &data_[0] + return_offset; in AllocateData() 92 const std::string& data() const { return data_; } in data() 95 auto result = data_; in truncated_data() 101 std::string data_;
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | SharedString.h | 29 SharedString() : data_() {} in SharedString() 30 SharedString(std::string&& s) : data_(std::make_shared<const std::string>(std::move(s))) {} in SharedString() 34 void clear() { data_.reset(); } in clear() 35 bool is_null() const { return data_.get() == nullptr; } in is_null() 36 bool empty() const { return is_null() ? true : data_->empty(); } in empty() 37 const char* c_str() const { return is_null() ? "" : data_->c_str(); } in c_str() 41 return data_ ? *data_.get() : empty; 47 std::shared_ptr<const std::string> data_;
|
/system/extras/simpleperf/ |
D | build_id.h | 38 BuildId() { memset(data_, '\0', BUILD_ID_SIZE); } in BuildId() 42 memcpy(data_, data, std::min(len, BUILD_ID_SIZE)); in BuildId() 59 data_[i / 2] = ch; in BuildId() 63 const unsigned char* Data() const { return data_; } in Data() 68 s += android::base::StringPrintf("%02x", data_[i]); in ToString() 74 return memcmp(data_, build_id.data_, BUILD_ID_SIZE) == 0; 85 unsigned char data_[BUILD_ID_SIZE];
|
/system/update_engine/payload_generator/ |
D | xz_android.cc | 35 explicit BlobReaderStream(const brillo::Blob& data) : data_(data) { in BlobReaderStream() 41 *size = std::min(*size, self->data_.size() - self->pos_); in ReadStatic() 42 memcpy(buf, self->data_.data() + self->pos_, *size); in ReadStatic() 47 const brillo::Blob& data_; member 55 explicit BlobWriterStream(brillo::Blob* data) : data_(data) { in BlobWriterStream() 64 self->data_->insert(self->data_->end(), buffer, buffer + size); in WriteStatic() 68 brillo::Blob* data_; member
|
/system/keymaster/km_openssl/ |
D | rsa_operation.cpp | 198 if (!data_.reserve(EVP_PKEY_size(rsa_key_))) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in StoreData() 200 if (!data_.write(input.peek_read(), input.available_read())) { in StoreData() 202 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData() 342 const uint8_t* to_encrypt = data_.peek_read(); in SignUndigested() 344 if (data_.available_read() > key_len) { in SignUndigested() 346 } else if (data_.available_read() < key_len) { in SignUndigested() 347 keymaster_error_t error = zero_pad_left(&zero_padded, key_len, data_); in SignUndigested() 357 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in SignUndigested() 359 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested() 362 bytes_encrypted = RSA_private_encrypt(data_.available_read(), data_.peek_read(), in SignUndigested() [all …]
|
D | ecdsa_operation.cpp | 98 if (!data_.reserve((EVP_PKEY_bits(ecdsa_key_) + 7) / 8)) in StoreData() 101 if (!data_.write(input.peek_read(), min(data_.available_write(), input.available_read()))) in StoreData() 154 if (!ECDSA_sign(0 /* type -- ignored */, data_.peek_read(), data_.available_read(), in Finish() 207 if (!EVP_DigestSign(&ctx, output->peek_write(), &out_len, data_.peek_read(), in Finish() 208 data_.available_read())) { in Finish() 218 if ((data_.available_read() + input.available_read()) > MAX_ED25519_MSG_SIZE) { in StoreAllData() 221 if (!data_.reserve(input.available_read())) { in StoreAllData() 224 if (!data_.write(input.peek_read(), input.available_read())) { in StoreAllData() 274 ECDSA_verify(0 /* type -- ignored */, data_.peek_read(), data_.available_read(), in Finish()
|
/system/libziparchive/ |
D | zip_archive_stream_entry.cc | 64 std::vector<uint8_t> data_; member in ZipArchiveStreamEntryUncompressed 75 data_.resize(kBufSize); in Init() 86 CHECK_EQ(data_.capacity(), kBufSize); in Read() 92 size_t bytes = (length_ > data_.size()) ? data_.size() : length_; in Read() 95 auto res = archive->mapped_zip.ReadAtOffset(data_.data(), bytes, offset_); in Read() 106 if (res != data_.data()) { in Read() 107 data_.assign(res, res + bytes); in Read() 108 } else if (bytes < data_.size()) { in Read() 109 data_.resize(bytes); in Read() 112 crc32(computed_crc32_, data_.data(), static_cast<uint32_t>(data_.size()))); in Read() [all …]
|
/system/core/fastboot/ |
D | mock_transport.h | 37 explicit RawDataMatcher(const char* data) : data_(data) {} in RawDataMatcher() 38 explicit RawDataMatcher(std::string_view data) : data_(data) {} in RawDataMatcher() 44 if (expected_len != data_.size()) { in MatchAndExplain() 47 return memcmp(expected_data, data_.data(), expected_len) == 0; in MatchAndExplain() 53 std::string_view data_;
|
/system/update_engine/common/ |
D | mock_http_fetcher.cc | 42 if (fail_transfer_ || data_.empty()) { in BeginTransfer() 47 if (sent_offset_ < data_.size()) in BeginTransfer() 52 if (fail_transfer_ || sent_offset_ == data_.size()) { in SendData() 74 min(kMockHttpFetcherChunkSize, data_.size() - sent_offset_); in SendData() 79 this, &data_[sent_offset_ - chunk_size], chunk_size); in SendData() 88 CHECK_LE(sent_offset_, data_.size()); in TimeoutCallback()
|
/system/extras/memtrack/ |
D | memtrack.cpp | 37 : data_(buffer), max_(buffer_len), cur_idx_(0), len_(0), in FileData() 63 memcpy(data_, data_ + cur_idx_, len_); in isAvail() 69 bytes = read(fd_, data_ + len_, max_ - len_); in isAvail() 87 if (data_[cur_idx_] != 'P' || data_[cur_idx_+1] != 's' || in getPss() 88 data_[cur_idx_+2] != 's' || data_[cur_idx_+3] != ':') { in getPss() 90 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss() 93 while (isAvail(1) && isspace(data_[cur_idx_])) { in getPss() 98 while (isAvail(1) && isdigit(data_[cur_idx_])) { in getPss() 99 value = value * 10 + data_[cur_idx_] - '0'; in getPss() 105 while (isAvail(1) && data_[cur_idx_++] != '\n'); in getPss()
|
/system/unwinding/libunwindstack/ |
D | ArmExidx.cpp | 39 for (const uint8_t data : data_) { in LogRawData() 46 data_.clear(); in ExtractEntryData() 86 data_.push_back((data >> 16) & 0xff); in ExtractEntryData() 87 data_.push_back((data >> 8) & 0xff); in ExtractEntryData() 89 data_.push_back(last_op); in ExtractEntryData() 92 data_.push_back(ARM_OP_FINISH); in ExtractEntryData() 116 data_.push_back((data >> 16) & 0xff); in ExtractEntryData() 128 data_.push_back((data >> 8) & 0xff); in ExtractEntryData() 129 data_.push_back(data & 0xff); in ExtractEntryData() 142 data_.push_back((data >> 16) & 0xff); in ExtractEntryData() [all …]
|
/system/memory/libmemunreachable/ |
D | LinkedList.h | 25 LinkedList() : next_(this), prev_(this), data_() {} in LinkedList() 26 explicit LinkedList(T data) : LinkedList() { data_ = data; } in LinkedList() 41 T data() { return data_; } in data() 48 T data_; variable
|
/system/security/keystore/include/keystore/ |
D | KeymasterBlob.h | 27 explicit KeymasterBlob(hardware::hidl_vec<uint8_t> data) : data_(data) {} in KeymasterBlob() 30 const hardware::hidl_vec<uint8_t>& getData() const { return data_; } in getData() 33 hardware::hidl_vec<uint8_t> data_;
|