Home
last modified time | relevance | path

Searched refs:address_string (Results 1 – 9 of 9) sorted by relevance

/system/connectivity/shill/net/
Dip_address.cc198 bool IPAddress::SetAddressFromString(const string& address_string) { in SetAddressFromString() argument
206 if (inet_pton(family_, address_string.c_str(), address.GetData()) <= 0) { in SetAddressFromString()
213 bool IPAddress::SetAddressAndPrefixFromString(const string& address_string) { in SetAddressAndPrefixFromString() argument
215 address_string, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); in SetAddressAndPrefixFromString()
217 LOG(ERROR) << "Cannot split address " << address_string; in SetAddressAndPrefixFromString()
238 bool IPAddress::IntoString(string* address_string) const { in IntoString()
245 *address_string = address_buf; in IntoString()
Dip_address.h110 bool SetAddressFromString(const std::string& address_string);
112 bool SetAddressAndPrefixFromString(const std::string& address_string);
120 bool IntoString(std::string* address_string) const;
Dip_address_unittest.cc63 string address_string; in TestAddress() local
64 EXPECT_TRUE(good_addr.IntoString(&address_string)); in TestAddress()
65 EXPECT_EQ(good_string, address_string); in TestAddress()
87 EXPECT_FALSE(bad_addr.IntoString(&address_string)); in TestAddress()
107 EXPECT_TRUE(from_sockaddr.IntoString(&address_string)); in TestAddress()
108 EXPECT_EQ(good_string, address_string); in TestAddress()
/system/connectivity/shill/
Dip_address_store_unittest.cc40 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument
42 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
Dconnection_info_reader_unittest.cc60 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument
62 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
66 IPAddress StringToIPv6Address(const string& address_string) { in StringToIPv6Address() argument
68 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv6Address()
Dsocket_info_reader_unittest.cc76 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument
78 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
82 IPAddress StringToIPv6Address(const string& address_string) { in StringToIPv6Address() argument
84 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv6Address()
Dconnection_health_checker_unittest.cc194 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument
196 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
Ddevice.h351 const std::string& address_string);
Ddevice.cc1956 const string& address_string) { in MakeHardwareAddressFromString() argument
1958 base::RemoveChars(address_string, ":", &address_nosep); in MakeHardwareAddressFromString()