/system/connectivity/shill/net/ |
D | byte_string.cc | 32 ByteString::ByteString(const ByteString& b) { in ByteString() function in shill::ByteString 36 ByteString& ByteString::operator=(const ByteString& b) { in operator =() 41 unsigned char* ByteString::GetData() { in GetData() 45 const unsigned char* ByteString::GetConstData() const { in GetConstData() 49 size_t ByteString::GetLength() const { in GetLength() 53 ByteString ByteString::GetSubstring(size_t offset, size_t length) const { in GetSubstring() 60 return ByteString(GetConstData() + offset, length); in GetSubstring() 64 ByteString ByteString::CreateFromCPUUInt32(uint32_t val) { in CreateFromCPUUInt32() 65 return ByteString(reinterpret_cast<unsigned char*>(&val), sizeof(val)); in CreateFromCPUUInt32() 69 ByteString ByteString::CreateFromNetUInt32(uint32_t val) { in CreateFromNetUInt32() [all …]
|
D | byte_string.h | 30 class SHILL_EXPORT ByteString { 32 ByteString() {} in ByteString() function 33 ByteString(const ByteString& b); 35 explicit ByteString(const std::vector<unsigned char>& data) : data_(data) {} in ByteString() function 37 explicit ByteString(size_t length) : data_(length) {} in ByteString() function 39 ByteString(const unsigned char* data, size_t length) in ByteString() function 42 ByteString(const char* data, size_t length) in ByteString() function 45 ByteString(const signed char* data, size_t length) in ByteString() function 48 ByteString(const std::string& data, bool copy_terminator) in ByteString() function 55 ByteString& operator=(const ByteString& b); [all …]
|
D | byte_string_unittest.cc | 56 ByteString bs1(0); in TEST_F() 65 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F() 79 ByteString bs2(kTest2, sizeof(kTest2)); in TEST_F() 91 ByteString bs3(kTest3, sizeof(kTest3)); in TEST_F() 102 ByteString bs6(kTest1, sizeof(kTest1)); in TEST_F() 107 ByteString bs4(string(kTest4), false); in TEST_F() 111 ByteString bs5(string(kTest4), true); in TEST_F() 117 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F() 118 ByteString fragment(kTest1 + 3, 4); in TEST_F() 121 ByteString end_fragment(kTest1 + kMargin, sizeof(kTest1) - kMargin); in TEST_F() [all …]
|
D | netlink_attribute.h | 68 virtual bool InitFromValue(const ByteString& input); 100 virtual bool GetRawValue(ByteString* value) const; 101 virtual bool SetRawValue(const ByteString value); 117 virtual ByteString Encode() const = 0; 128 ByteString EncodeGeneric(const unsigned char* data, size_t num_bytes) const; 132 ByteString data_; 152 virtual bool InitFromValue(const ByteString& data); 156 virtual ByteString Encode() const; 170 virtual bool InitFromValue(const ByteString& data); 174 virtual ByteString Encode() const; [all …]
|
D | attribute_list_unittest.cc | 40 MOCK_METHOD2(AttributeMethod, bool(int id, const ByteString& value)); 48 static ByteString MakeNetlinkAttribute(uint16_t len, in MakeNetlinkAttribute() 52 ByteString data(reinterpret_cast<const char*>(&attribute), in MakeNetlinkAttribute() 54 data.Append(ByteString(payload, false)); in MakeNetlinkAttribute() 58 static ByteString MakePaddedNetlinkAttribute(uint16_t len, in MakePaddedNetlinkAttribute() 61 ByteString data(MakeNetlinkAttribute(len, type, payload)); in MakePaddedNetlinkAttribute() 62 ByteString padding(NLA_ALIGN(data.GetLength()) - data.GetLength()); in MakePaddedNetlinkAttribute() 69 return arg.Equals(ByteString(std::string(payload), false)); 76 ByteString(), 0, in TEST_F() 81 ByteString payload; in TEST_F() [all …]
|
D | rtnl_message_unittest.cc | 387 void TestParseLink(const ByteString& packet, in TestParseLink() 392 ByteString address, in TestParseLink() 393 ByteString name, in TestParseLink() 395 ByteString qdisc, in TestParseLink() 429 void TestParseAddress(const ByteString& packet, in TestParseAddress() 453 void TestParseRoute(const ByteString& packet, in TestParseRoute() 517 void TestParseRdnss(const ByteString& packet, in TestParseRdnss() 548 void TestParseNeighbor(const ByteString& packet, in TestParseNeighbor() 572 TestParseLink(ByteString(kNewLinkMessageWlan0, sizeof(kNewLinkMessageWlan0)), in TEST_F() 577 ByteString(string(kNewLinkMessageWlan0MACAddress), false), in TEST_F() [all …]
|
D | attribute_list.h | 38 class ByteString; variable 46 using AttributeMethod = base::Callback<bool(int id, const ByteString& value)>; 63 int id, const ByteString& value); 66 bool InitAttributeFromValue(int id, const ByteString& value); 77 static bool IterateAttributes(const ByteString& payload, size_t offset, 82 bool Decode(const ByteString& payload, 88 ByteString Encode() const; 132 bool SetRawAttributeValue(int id, ByteString value); 133 bool GetRawAttributeValue(int id, ByteString* output) const;
|
D | netlink_message.cc | 46 ByteString NetlinkMessage::EncodeHeader(uint32_t sequence_number) { in EncodeHeader() 47 ByteString result; in EncodeHeader() 68 result.Append(ByteString(reinterpret_cast<unsigned char*>(&header), in EncodeHeader() 126 const ByteString& payload = packet.GetPayload(); in PrintPacket() 186 ByteString ErrorAckMessage::Encode(uint32_t sequence_number) { in Encode() 188 return ByteString(); in Encode() 211 ByteString NoopMessage::Encode(uint32_t sequence_number) { in Encode() 213 return ByteString(); in Encode() 224 ByteString DoneMessage::Encode(uint32_t sequence_number) { in Encode() 236 ByteString OverrunMessage::Encode(uint32_t sequence_number) { in Encode() [all …]
|
D | netlink_packet.h | 32 class ByteString; variable 59 const ByteString& GetPayload() const; 84 ByteString* mutable_payload() { return payload_.get(); } in mutable_payload() 93 std::unique_ptr<ByteString> payload_; 114 ByteString* GetMutablePayload();
|
D | netlink_message.h | 100 virtual ByteString Encode(uint32_t sequence_number) = 0; 128 virtual ByteString EncodeHeader(uint32_t sequence_number); 162 ByteString Encode(uint32_t sequence_number) override; 180 virtual ByteString Encode(uint32_t sequence_number); 195 virtual ByteString Encode(uint32_t sequence_number); 210 virtual ByteString Encode(uint32_t sequence_number); 221 UnknownMessage(uint16_t message_type, ByteString message_body) : in UnknownMessage() 223 virtual ByteString Encode(uint32_t sequence_number); 227 ByteString message_body_;
|
D | nl80211_attribute_unittest.cc | 21 EXPECT_FALSE(empty_attribute.InitFromValue(ByteString())); in TEST_F() 24 ByteString u8_value(&kU8Value, 1); in TEST_F() 32 ByteString u32_value = ByteString::CreateFromCPUUInt32(kU32Value); in TEST_F()
|
D | netlink_attribute.cc | 296 bool NetlinkAttribute::InitFromValue(const ByteString& input) { in InitFromValue() 377 bool NetlinkAttribute::GetRawValue(ByteString* value) const { in GetRawValue() 382 bool NetlinkAttribute::SetRawValue(const ByteString new_value) { in SetRawValue() 424 ByteString NetlinkAttribute::EncodeGeneric(const unsigned char* data, in EncodeGeneric() 426 ByteString result; in EncodeGeneric() 431 result = ByteString(reinterpret_cast<unsigned char*>(&header), in EncodeGeneric() 435 result.Append(ByteString(data, num_bytes)); in EncodeGeneric() 448 bool NetlinkU8Attribute::InitFromValue(const ByteString& input) { in InitFromValue() 490 ByteString NetlinkU8Attribute::Encode() const { in Encode() 501 bool NetlinkU16Attribute::InitFromValue(const ByteString& input) { in InitFromValue() [all …]
|
D | generic_netlink_message.cc | 31 ByteString GenericNetlinkMessage::EncodeHeader(uint32_t sequence_number) { in EncodeHeader() 33 ByteString result(NetlinkMessage::EncodeHeader(sequence_number)); in EncodeHeader() 45 ByteString genl_header_string( in EncodeHeader() 56 ByteString GenericNetlinkMessage::Encode(uint32_t sequence_number) { in Encode() 57 ByteString result(EncodeHeader(sequence_number)); in Encode() 65 ByteString attribute_string = attributes_->Encode(); in Encode()
|
D | netlink_attribute_unittest.cc | 42 EXPECT_TRUE(attr.InitFromValue(ByteString())); in TEST_F() 48 ByteString unterminated(std::string("hello"), false); in TEST_F() 56 ByteString terminated(std::string("hello"), true); in TEST_F() 64 terminated.Append(ByteString(3)); in TEST_F()
|
/system/connectivity/dhcp_client/ |
D | dhcp_options_writer.cc | 30 using shill::ByteString; 42 int DHCPOptionsWriter::WriteUInt8Option(ByteString* buffer, in WriteUInt8Option() 46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt8Option() 48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt8Option() 50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value), in WriteUInt8Option() 55 int DHCPOptionsWriter::WriteUInt16Option(ByteString* buffer, in WriteUInt16Option() 60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt16Option() 62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt16Option() 64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net), in WriteUInt16Option() 69 int DHCPOptionsWriter::WriteUInt32Option(ByteString* buffer, in WriteUInt32Option() [all …]
|
D | dhcp_options_writer.h | 34 int WriteUInt8Option(shill::ByteString* buffer, 37 int WriteUInt16Option(shill::ByteString* buffer, 40 int WriteUInt32Option(shill::ByteString* buffer, 43 int WriteUInt8ListOption(shill::ByteString* buffer, 46 int WriteUInt16ListOption(shill::ByteString* buffer, 49 int WriteUInt32ListOption(shill::ByteString* buffer, 52 int WriteUInt32PairListOption(shill::ByteString* buffer, 55 int WriteBoolOption(shill::ByteString* buffer, 58 int WriteStringOption(shill::ByteString* buffer, 61 int WriteByteArrayOption(shill::ByteString* buffer, [all …]
|
D | dhcp_options_writer_unittest.cc | 31 using shill::ByteString; 53 ByteString option; in TEST_F() 72 ByteString option; in TEST_F() 91 ByteString option; in TEST_F() 110 ByteString option; in TEST_F() 130 ByteString option; in TEST_F() 151 ByteString option; in TEST_F() 173 ByteString option; in TEST_F() 192 ByteString option; in TEST_F() 211 ByteString option; in TEST_F() [all …]
|
D | dhcp_message.h | 65 bool Serialize(shill::ByteString* data) const; 69 const shill::ByteString& client_hardware_address); 70 void SetClientIdentifier(const shill::ByteString& client_identifier); 80 void SetVendorSpecificInfo(const shill::ByteString& vendor_specific_info); 83 const shill::ByteString& client_hardware_address() const { in client_hardware_address() 86 const shill::ByteString& client_identifier() const { in client_identifier() 101 const shill::ByteString& vendor_specific_info() const { in vendor_specific_info() 138 shill::ByteString client_hardware_address_; 158 shill::ByteString vendor_specific_info_; 176 shill::ByteString client_identifier_;
|
/system/connectivity/shill/ |
D | arp_packet.h | 32 const ByteString& local_mac, const ByteString& remote_mac); 36 bool Parse(const ByteString& packet); 39 bool FormatRequest(ByteString* packet) const; 55 const ByteString& local_mac_address() const { return local_mac_address_; } in local_mac_address() 56 void set_local_mac_address(const ByteString& address) { in set_local_mac_address() 60 const ByteString& remote_mac_address() const { return remote_mac_address_; } in remote_mac_address() 61 void set_remote_mac_address(const ByteString& address) { in set_remote_mac_address() 80 ByteString local_mac_address_; 81 ByteString remote_mac_address_;
|
D | arp_packet_unittest.cc | 73 ByteString mac_address0_; 74 ByteString mac_address1_; 75 ByteString inserted_byte_; 103 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 114 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 125 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 136 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 147 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 159 ByteString arp_bytes(kArpReplyV4, arraysize(kArpReplyV4)); in TEST_F() 170 ByteString arp_bytes(kArpReplyV6, arraysize(kArpReplyV6)); in TEST_F() [all …]
|
D | connection_info_unittest.cc | 66 ByteString(kIPAddress1, sizeof(kIPAddress1))), in TEST_F() 69 ByteString(kIPAddress2, sizeof(kIPAddress2))), in TEST_F() 72 ByteString(kIPAddress3, sizeof(kIPAddress3))), in TEST_F() 75 ByteString(kIPAddress4, sizeof(kIPAddress4))), in TEST_F() 87 ByteString(kIPAddress1, sizeof(kIPAddress1))), in TEST_F() 90 ByteString(kIPAddress2, sizeof(kIPAddress2))), in TEST_F() 93 ByteString(kIPAddress3, sizeof(kIPAddress3))), in TEST_F() 96 ByteString(kIPAddress4, sizeof(kIPAddress4))), in TEST_F()
|
D | http_request.h | 86 const base::Callback<void(const ByteString&)>& read_event_callback, 87 const base::Callback<void(Result, const ByteString&)>& result_callback); 96 virtual const ByteString& response_data() const { return response_data_; } in response_data() 129 base::Callback<void(Result, const ByteString&)> result_callback_; 130 base::Callback<void(const ByteString&)> read_event_callback_; 140 ByteString request_data_; 141 ByteString response_data_;
|
D | socket_info_unittest.cc | 51 ByteString(kIPAddress1, sizeof(kIPAddress1))), in TEST_F() 54 ByteString(kIPAddress2, sizeof(kIPAddress2))), in TEST_F() 67 ByteString(kIPAddress1, sizeof(kIPAddress1))), in TEST_F() 70 ByteString(kIPAddress2, sizeof(kIPAddress2))), in TEST_F() 82 ByteString(kIPAddress1, sizeof(kIPAddress1))); in TEST_F() 84 ByteString(kIPAddress2, sizeof(kIPAddress2))); in TEST_F() 86 ByteString(kIPAddress3, sizeof(kIPAddress3))); in TEST_F()
|
D | active_link_monitor.h | 95 virtual const ByteString& gateway_mac_address() const { in gateway_mac_address() 98 virtual void set_gateway_mac_address(const ByteString& gateway_mac_address) { in set_gateway_mac_address() 137 static std::string HardwareAddressToString(const ByteString& address); 159 ByteString local_mac_address_; 161 ByteString gateway_mac_address_;
|
/system/connectivity/shill/wifi/ |
D | wake_on_wifi.h | 45 class ByteString; variable 242 const std::vector<ByteString>& ssid_whitelist, 265 const std::vector<ByteString>& ssid_whitelist, 282 const std::vector<ByteString>& ssid_whitelist, 364 const std::pair<ByteString, ByteString>& lhs, 365 const std::pair<ByteString, ByteString>& rhs); 370 static void SetMask(ByteString* mask, uint32_t pattern_len, uint32_t offset); 377 ByteString* pattern, 378 ByteString* mask); 380 ByteString* pattern, ByteString* mask); [all …]
|