/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/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/core/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/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 | 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/bt/gd/shim/test_data/ |
D | dumpsys_test_data_bin.h | 13 const unsigned char data_[] = { variable 61 const std::string string_data_(data_, data_ + sizeof(data_)); 63 const unsigned char* bluetooth::test::data = data_;
|
/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/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/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/main/shim/ |
D | controller.cc | 71 } data_; variable 75 data_.ready = true; in start_up() 79 RawAddress::FromString(string_address, data_.raw_address); in start_up() 81 data_.le_supported_states = in start_up() 86 data_.phy = kPhyLe1M; in start_up() 92 data_.ready = false; in shut_down() 101 static bool get_is_ready(void) { return data_.ready; } in get_is_ready() 103 static const RawAddress* get_address(void) { return &data_.raw_address; } in get_address() 105 static const bt_version_t* get_bt_version(void) { return &data_.bt_version; } in get_bt_version() 109 if (data_.number_of_local_supported_codecs != 0) { in get_local_supported_codecs() [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/keymaster/km_openssl/ |
D | rsa_operation.cpp | 164 if (!data_.reserve(EVP_PKEY_size(rsa_key_))) in StoreData() 167 if (!data_.write(input.peek_read(), input.available_read())) { in StoreData() 169 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData() 338 const uint8_t* to_encrypt = data_.peek_read(); in SignUndigested() 340 if (data_.available_read() > key_len) { in SignUndigested() 342 } else if (data_.available_read() < key_len) { in SignUndigested() 343 keymaster_error_t error = zero_pad_left(&zero_padded, key_len, data_); in SignUndigested() 354 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in SignUndigested() 356 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested() 359 bytes_encrypted = RSA_private_encrypt(data_.available_read(), data_.peek_read(), in SignUndigested() [all …]
|
/system/bt/packet/base/ |
D | packet.h | 40 data_(std::make_shared<std::vector<uint8_t>>(0)){}; in Packet() 42 : packet_start_index_(start), packet_end_index_(end), data_(pkt->data_){}; in Packet() 43 Packet(std::shared_ptr<const Packet> pkt) : data_(pkt->data_) { in Packet() 86 std::shared_ptr<std::vector<uint8_t>> data_; variable
|