/system/core/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 …]
|
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/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 …]
|
/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/bt/service/common/bluetooth/ |
D | advertise_data.cc | 26 AdvertiseData::AdvertiseData(const std::vector<uint8_t>& data) : data_(data) {} in AdvertiseData() 30 AdvertiseData::AdvertiseData(const AdvertiseData& other) : data_(other.data_) {} in AdvertiseData() 33 size_t len = data_.size(); in IsValid() 39 field_len = data_[i]; in IsValid() 52 uint8_t type = data_[i + 1]; in IsValid() 73 return data_ == rhs.data_; in operator ==() 79 data_ = other.data_; in operator =()
|
/system/bt/vendor_libs/test_vendor_lib/packets/ |
D | view.cc | 25 : data_(data), begin_(begin < data_->size() ? begin : data_->size()), in View() 26 end_(end < data_->size() ? end : data_->size()) {} in View() 28 View::View(const View& view, size_t begin, size_t end) : data_(view.data_) { in View() 37 return data_->operator[](i + begin_); in operator []()
|
/system/bt/gd/packet/ |
D | view.cc | 25 : data_(data), begin_(begin < data_->size() ? begin : data_->size()), in View() 26 end_(end < data_->size() ? end : data_->size()) {} in View() 28 View::View(const View& view, size_t begin, size_t end) : data_(view.data_) { in View() 37 return data_->operator[](i + begin_); in operator []()
|
/system/extras/libjsonpb/parse/include/jsonpb/ |
D | error_or.h | 31 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() 34 return *std::get_if<1u>(&data_); 38 return *std::get_if<1u>(&data_); 42 return std::get_if<1u>(&data_); 46 return std::get_if<1u>(&data_); 50 return *std::get_if<0u>(&data_); in error() 52 bool ok() const { return data_.index() != 0; } in ok() 61 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() 63 std::variant<std::string, T> data_; member
|
/system/extras/simpleperf/ |
D | UnixSocket.h | 58 : data_(capacity), read_head_(0), valid_bytes_(0) {} in UnixSocketMessageBuffer() 62 bool HalfFull() const { return valid_bytes_ * 2 >= data_.size(); } in HalfFull() 66 if (data_.size() - valid_bytes_ < aligned_len) { in StoreMessage() 69 uint32_t write_head = (read_head_ + valid_bytes_) % data_.size(); in StoreMessage() 70 if (message.len <= data_.size() - write_head) { in StoreMessage() 71 memcpy(data_.data() + write_head, &message, message.len); in StoreMessage() 73 uint32_t len1 = data_.size() - write_head; in StoreMessage() 74 memcpy(data_.data() + write_head, &message, len1); in StoreMessage() 75 memcpy(data_.data(), reinterpret_cast<const char*>(&message) + len1, in StoreMessage() 83 *pdata = &data_[read_head_]; in PeekData() [all …]
|
D | build_id.h | 37 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() 64 return data_; in Data() 70 s += android::base::StringPrintf("%02x", data_[i]); in ToString() 76 return memcmp(data_, build_id.data_, BUILD_ID_SIZE) == 0; 89 unsigned char data_[BUILD_ID_SIZE];
|
/system/apex/apexd/ |
D | status_or.h | 42 : data_(kIndex1, std::forward<Args>(args)...) {} in StatusOr() 44 bool Ok() const WARN_UNUSED { return data_.index() != 0; } in Ok() 48 return *std::get_if<1u>(&data_); 53 return std::get_if<1u>(&data_); 58 return std::get_if<1u>(&data_); 63 const Status& status = *std::get_if<0u>(&data_); in ErrorStatus() 85 : data_(kIndex0, msg) {} in StatusOr() 87 std::variant<Status, T> data_; variable
|
/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/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_->reserve(self->data_->size() + size); in WriteStatic() 65 self->data_->insert(self->data_->end(), buffer, buffer + size); in WriteStatic() 69 brillo::Blob* data_; member
|
/system/extras/perfprofd/ |
D | configreader.cc | 64 ConfigReader::ConfigReader() : data_(new ConfigReader::Data()) in ConfigReader() 66 data_->trace_config_read = false; in ConfigReader() 188 CHECK(data_->u_entries.find(ks) == data_->u_entries.end() && in addUnsignedEntry() 189 data_->s_entries.find(ks) == data_->s_entries.end()) in addUnsignedEntry() 194 data_->u_info[ks] = vals; in addUnsignedEntry() 195 data_->u_entries[ks] = default_value; in addUnsignedEntry() 201 CHECK(data_->u_entries.find(ks) == data_->u_entries.end() && in addStringEntry() 202 data_->s_entries.find(ks) == data_->s_entries.end()) in addStringEntry() 205 data_->s_entries[ks] = std::string(default_value); in addStringEntry() 211 auto it = data_->u_entries.find(ks); in getUnsignedValue() [all …]
|
/system/keymaster/ng/include/ |
D | authorization_set.h | 41 AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {} in AuthorizationSet() 44 AuthorizationSet(AuthorizationSet&& other) : data_(std::move(other.data_)) {} in AuthorizationSet() 51 data_ = other.data_; 57 data_ = std::move(other.data_); 63 data_.resize(other.size()); 64 for (size_t i = 0; i < data_.size(); ++i) { 67 data_[i] = other[i]; 83 size_t size() const { return data_.size(); } in size() 93 const KeyParameter* data() const { return data_.data(); } in data() 132 std::vector<KeyParameter>::const_iterator begin() const { return data_.begin(); } in begin() [all …]
|
/system/bt/common/ |
D | state_machine_unittest.cc | 51 data_(nullptr) {} in StateZero() 62 data_ = p_data; in ProcessEvent() 70 void* data_; member in StateMachineImpl::StateZero 80 data_(nullptr) {} in StateOne() 91 data_ = p_data; in ProcessEvent() 99 void* data_; member in StateMachineImpl::StateOne 109 data_(nullptr) {} in StateTwo() 120 data_ = p_data; in ProcessEvent() 128 void* data_; member in StateMachineImpl::StateTwo 207 ASSERT_EQ(sm_.state_zero_->data_, nullptr); in TEST_F() [all …]
|
/system/iorap/src/perfetto/ |
D | rx_producer.h | 59 return data_; in data() 63 return data_; in data() 67 return data_.size(); in size() 75 data_.resize(size); in BinaryWireProtobuf() 78 data_.data()); in BinaryWireProtobuf() 87 if (!unencoded.ParseFromArray(data_.data(), data_.size())) { in MaybeUnserialize() 101 std::vector<std::byte> data_; member
|
/system/bt/service/common/android/bluetooth/ |
D | bluetooth_avrcp_register_notification_response.cc | 31 status_t status = parcel->write(&data_, sizeof(data_)); in writeToParcel() 39 status_t status = parcel->read(&data_, sizeof(data_)); in readFromParcel()
|
/system/security/keystore/ |
D | KeymasterArguments.cpp | 29 data_ = keystore::readParamSetFromParcel(*in); in readFromParcel() 34 return keystore::writeParamSetToParcel(data_, out); in writeToParcel() 38 : data_(std::move(other)) {} in KeymasterArguments() 41 : data_(other) {} in KeymasterArguments()
|
/system/core/base/ |
D | logging.cpp | 406 : data_(new LogMessageData(file, line, id, severity, tag, error)) {} in LogMessage() 410 if (!WOULD_LOG(data_->GetSeverity())) { in ~LogMessage() 415 if (data_->GetError() != -1) { in ~LogMessage() 416 data_->GetBuffer() << ": " << strerror(data_->GetError()); in ~LogMessage() 418 std::string msg(data_->ToString()); in ~LogMessage() 420 if (data_->GetSeverity() == FATAL) { in ~LogMessage() 432 LogLine(data_->GetFile(), data_->GetLineNumber(), data_->GetId(), data_->GetSeverity(), in ~LogMessage() 433 data_->GetTag(), msg.c_str()); in ~LogMessage() 440 LogLine(data_->GetFile(), data_->GetLineNumber(), data_->GetId(), data_->GetSeverity(), in ~LogMessage() 441 data_->GetTag(), &msg[i]); in ~LogMessage() [all …]
|
/system/keymaster/km_openssl/ |
D | rsa_operation.cpp | 161 if (!data_.reserve(EVP_PKEY_size(rsa_key_))) in StoreData() 164 if (!data_.write(input.peek_read(), input.available_read())) { in StoreData() 166 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData() 335 const uint8_t* to_encrypt = data_.peek_read(); in SignUndigested() 337 if (data_.available_read() > key_len) { in SignUndigested() 339 } else if (data_.available_read() < key_len) { in SignUndigested() 340 keymaster_error_t error = zero_pad_left(&zero_padded, key_len, data_); in SignUndigested() 351 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in SignUndigested() 353 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested() 356 bytes_encrypted = RSA_private_encrypt(data_.available_read(), data_.peek_read(), in SignUndigested() [all …]
|