Home
last modified time | relevance | path

Searched refs:forString (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddressesTest.cpp153 TEST(IPAddressTest, forString) { in TEST() argument
156 EXPECT_FALSE(IPAddress::forString("not_an_ip", &ip)); in TEST()
157 EXPECT_FALSE(IPAddress::forString("not_an_ip", nullptr)); in TEST()
158 EXPECT_EQ(IPAddress(), IPAddress::forString("not_an_ip")); in TEST()
160 EXPECT_EQ(IPAddress(IPV4_ANY), IPAddress::forString("0.0.0.0")); in TEST()
161 EXPECT_EQ(IPAddress(IPV4_ONES), IPAddress::forString("255.255.255.255")); in TEST()
162 EXPECT_EQ(IPAddress(IPV4_LOOPBACK), IPAddress::forString("127.0.0.1")); in TEST()
164 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::")); in TEST()
165 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::0")); in TEST()
166 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("0::")); in TEST()
[all …]
DInternetAddresses.cpp61 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() function in android::netdutils::IPAddress
129 bool IPPrefix::forString(const std::string& repr, IPPrefix* prefix) { in forString() function in android::netdutils::IPPrefix
135 if (!IPAddress::forString(repr.substr(0, index), &ip)) return false; in forString()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DInternetAddresses.h127 static bool forString(const std::string& repr, IPAddress* ip);
128 static IPAddress forString(const std::string& repr) { in forString() function
130 if (!forString(repr, &ip)) return IPAddress(); in forString()
199 static bool forString(const std::string& repr, IPPrefix* prefix);
200 static IPPrefix forString(const std::string& repr) { in forString() function
202 if (!forString(repr, &prefix)) return IPPrefix(); in forString()
258 return IPSockAddr(IPAddress::forString(repr), port); in toIPSockAddr()
/packages/modules/DnsResolver/
DPrivateDnsConfiguration.cpp54 if (!IPAddress::forString(s, &ip)) { in ensureNoInvalidIp()
95 return IPAddress::forString(a) > IPAddress::forString(b); in sortServers()
155 DnsTlsServer server(IPAddress::forString(s)); in setDot()
DDnsResolverService.cpp262 if (!IPPrefix::forString(stringPrefix, &prefix)) { in setPrefix64()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp55 static const IPAddress V4ADDR1 = IPAddress::forString("192.0.2.1");
56 static const IPAddress V4ADDR2 = IPAddress::forString("192.0.2.2");
57 static const IPAddress V6ADDR1 = IPAddress::forString("2001:db8::1");
58 static const IPAddress V6ADDR2 = IPAddress::forString("2001:db8::2");
812 DnsTlsServer s1(IPAddress::forString("fe80::1%1")); in TEST_F()
813 DnsTlsServer s2(IPAddress::forString("fe80::1%2")); in TEST_F()
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DConnectivityToolsFragment.java113 InetAddress serverAddress = InetAddresses.forString(serverIp); in getPingCommand()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/
DSipUtils.java330 return InetAddresses.forString(address) instanceof Inet6Address; in isIPv6Address()
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/TV/libs/m2/
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...