Searched refs:ByteString (Results 1 - 25 of 118) sorted by relevance

12345

/system/connectivity/shill/net/
H A Dbyte_string.h30 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 Dbyte_string.cc32 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 Dbyte_string_unittest.cc56 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 Dmock_netlink_socket.h28 class ByteString;
37 MOCK_METHOD1(SendMessage, bool(const ByteString& out_string));
39 MOCK_METHOD1(RecvMessage, bool(ByteString* message));
H A Dnl80211_attribute_unittest.cc21 EXPECT_FALSE(empty_attribute.InitFromValue(ByteString()));
24 ByteString u8_value(&kU8Value, 1);
32 ByteString u32_value = ByteString::CreateFromCPUUInt32(kU32Value);
H A Dnetlink_attribute.h68 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 Dnetlink_packet.h32 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 Dnetlink_socket.h52 class ByteString;
79 virtual bool RecvMessage(ByteString* message);
82 virtual bool SendMessage(const ByteString& message);
H A Dnetlink_attribute_unittest.cc41 // 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 Dattribute_list.h38 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 Ddhcp_options_writer.h34 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 Ddhcp_options_writer.cc30 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 Ddhcpv4.h38 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 Ddhcp_message.h65 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 Darp_packet.h32 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 Darp_client_test_helper.h37 const ByteString& local_mac,
39 const ByteString& remote_mac);
42 bool SimulateReceivePacket(ArpPacket* packet, ByteString* sender);
H A Dmock_http_request.h35 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 Dconnection_info_unittest.cc66 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 Dmock_active_link_monitor.h36 MOCK_CONST_METHOD0(gateway_mac_address, const ByteString&());
37 MOCK_METHOD1(set_gateway_mac_address, void(const ByteString&));
H A Darp_client_test_helper.cc34 const ByteString& local_mac,
36 const ByteString& remote_mac) {
48 ByteString* sender) {
H A Dhttp_request.h86 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 Dsocket_info_unittest.cc51 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 Dactive_link_monitor.h95 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 Dmock_scan_session.h30 class ByteString;
50 MOCK_METHOD1(AddSsid, void(const ByteString& ssid));
H A Dwake_on_wifi.h45 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...]

Completed in 273 milliseconds

12345