/system/connectivity/shill/net/ |
H A D | byte_string.h | 30 class SHILL_EXPORT ByteString { class in namespace:shill 32 ByteString() {} function in class:shill::ByteString 33 ByteString(const ByteString& b); 35 explicit ByteString(const std::vector<unsigned char>& data) : data_(data) {} function in class:shill::ByteString 37 explicit ByteString(size_t length) : data_(length) {} function in class:shill::ByteString 39 ByteString(const unsigned char* data, size_t length) function in class:shill::ByteString 42 ByteString(const char* data, size_t length) function in class:shill::ByteString 45 ByteString(const signed char* data, size_t length) function in class:shill::ByteString 48 ByteString(cons function in class:shill::ByteString [all...] |
H A D | byte_string.cc | 32 ByteString::ByteString(const ByteString& b) { function in class:shill::ByteString 36 ByteString& ByteString::operator=(const ByteString& b) { 41 unsigned char* ByteString::GetData() { 45 const unsigned char* ByteString::GetConstData() const { 49 size_t ByteString::GetLength() const { 53 ByteString ByteStrin [all...] |
H A D | byte_string_unittest.cc | 56 ByteString bs1(0); 65 ByteString bs1(kTest1, sizeof(kTest1)); 77 // Build a ByteString (different to bs1), verify that the new ByteString 79 ByteString bs2(kTest2, sizeof(kTest2)); 88 // Build _another_ ByteString (different to bs1 and bs2), verify that the 89 // new ByteString looks as expected, verify that it's different to bs1 and 91 ByteString bs3(kTest3, sizeof(kTest3)); 102 ByteString bs6(kTest1, sizeof(kTest1)); 107 ByteString bs [all...] |
H A D | mock_netlink_socket.h | 28 class ByteString; 37 MOCK_METHOD1(SendMessage, bool(const ByteString& out_string)); 39 MOCK_METHOD1(RecvMessage, bool(ByteString* message));
|
H A D | nl80211_attribute_unittest.cc | 21 EXPECT_FALSE(empty_attribute.InitFromValue(ByteString())); 24 ByteString u8_value(&kU8Value, 1); 32 ByteString u32_value = ByteString::CreateFromCPUUInt32(kU32Value);
|
H A 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 Encod [all...] |
H A D | netlink_packet.h | 32 class ByteString; 59 const ByteString& GetPayload() const; 84 ByteString* mutable_payload() { return payload_.get(); } 93 std::unique_ptr<ByteString> payload_; 114 ByteString* GetMutablePayload();
|
H A D | netlink_socket.h | 52 class ByteString; 79 virtual bool RecvMessage(ByteString* message); 82 virtual bool SendMessage(const ByteString& message);
|
H A D | netlink_attribute_unittest.cc | 41 // An empty ByteString should yield an empty string. 42 EXPECT_TRUE(attr.InitFromValue(ByteString())); 47 // An un-terminated ByteString should yield a terminated string. 48 ByteString unterminated(std::string("hello"), false); 55 // A terminated ByteString should also work correctly. 56 ByteString terminated(std::string("hello"), true); 64 terminated.Append(ByteString(3));
|
H A D | attribute_list.h | 38 class ByteString; 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;
|
/system/connectivity/dhcp_client/ |
H A 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* buffe [all...] |
H A D | dhcp_options_writer.cc | 30 using shill::ByteString; 42 int DHCPOptionsWriter::WriteUInt8Option(ByteString* buffer, 46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), 48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), 50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value), 55 int DHCPOptionsWriter::WriteUInt16Option(ByteString* buffer, 60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), 62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), 64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net), 69 int DHCPOptionsWriter::WriteUInt32Option(ByteString* buffe [all...] |
H A D | dhcpv4.h | 38 const shill::ByteString& hardware_address, 53 bool MakeRawPacket(const DHCPMessage& message, shill::ByteString* buffer); 56 bool SendRawPacket(const shill::ByteString& buffer); 67 shill::ByteString hardware_address_;
|
H A 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 { 86 const shill::ByteString& client_identifier() const { 101 const shill::ByteString& vendor_specific_info() const { 138 shill::ByteString client_hardware_address_; 158 shill::ByteString vendor_specific_info_; 176 shill::ByteString client_identifier [all...] |
/system/connectivity/shill/ |
H A 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_; } 56 void set_local_mac_address(const ByteString& address) { 60 const ByteString& remote_mac_address() const { return remote_mac_address_; } 61 void set_remote_mac_address(const ByteString& address) { 80 ByteString local_mac_address_; 81 ByteString remote_mac_address [all...] |
H A D | arp_client_test_helper.h | 37 const ByteString& local_mac, 39 const ByteString& remote_mac); 42 bool SimulateReceivePacket(ArpPacket* packet, ByteString* sender);
|
H A D | mock_http_request.h | 35 const base::Callback<void(const ByteString&)>& read_event_callback, 36 const base::Callback<void(Result, const ByteString&)>& result_callback)); 38 MOCK_CONST_METHOD0(response_data, const ByteString& ());
|
H A D | connection_info_unittest.cc | 66 ByteString(kIPAddress1, sizeof(kIPAddress1))), 69 ByteString(kIPAddress2, sizeof(kIPAddress2))), 72 ByteString(kIPAddress3, sizeof(kIPAddress3))), 75 ByteString(kIPAddress4, sizeof(kIPAddress4))), 87 ByteString(kIPAddress1, sizeof(kIPAddress1))), 90 ByteString(kIPAddress2, sizeof(kIPAddress2))), 93 ByteString(kIPAddress3, sizeof(kIPAddress3))), 96 ByteString(kIPAddress4, sizeof(kIPAddress4))),
|
H A D | mock_active_link_monitor.h | 36 MOCK_CONST_METHOD0(gateway_mac_address, const ByteString&()); 37 MOCK_METHOD1(set_gateway_mac_address, void(const ByteString&));
|
H A D | arp_client_test_helper.cc | 34 const ByteString& local_mac, 36 const ByteString& remote_mac) { 48 ByteString* sender) {
|
H A 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_; } 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_;
|
H A D | socket_info_unittest.cc | 51 ByteString(kIPAddress1, sizeof(kIPAddress1))), 54 ByteString(kIPAddress2, sizeof(kIPAddress2))), 67 ByteString(kIPAddress1, sizeof(kIPAddress1))), 70 ByteString(kIPAddress2, sizeof(kIPAddress2))), 82 ByteString(kIPAddress1, sizeof(kIPAddress1))); 84 ByteString(kIPAddress2, sizeof(kIPAddress2))); 86 ByteString(kIPAddress3, sizeof(kIPAddress3)));
|
H A D | active_link_monitor.h | 95 virtual const ByteString& gateway_mac_address() const { 98 virtual void set_gateway_mac_address(const ByteString& 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/ |
H A D | mock_scan_session.h | 30 class ByteString; 50 MOCK_METHOD1(AddSsid, void(const ByteString& ssid));
|
H A D | wake_on_wifi.h | 45 class ByteString; 242 const std::vector<ByteString>& ssid_whitelist, 265 const std::vector<ByteString>& ssid_whitelist, 282 const std::vector<ByteString>& ssid_whitelist, 362 // Used for comparison of ByteString pairs in a set. 364 const std::pair<ByteString, ByteString>& lhs, 365 const std::pair<ByteString, ByteString>& rhs); 370 static void SetMask(ByteString* mas [all...] |