Home
last modified time | relevance | path

Searched refs:isNumeric (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DInetAddressTest.java113 assertTrue(InetAddress.isNumeric("1.2.3.4")); in test_isNumeric()
114 assertTrue(InetAddress.isNumeric("127.0.0.1")); in test_isNumeric()
117 assertTrue(InetAddress.isNumeric("::1")); in test_isNumeric()
118 assertTrue(InetAddress.isNumeric("2001:4860:800d::68")); in test_isNumeric()
121 assertTrue(InetAddress.isNumeric("::ffff:127.0.0.1")); in test_isNumeric()
124 assertTrue(InetAddress.isNumeric("[2001:4860:800d::68]")); in test_isNumeric()
125 assertTrue(InetAddress.isNumeric("[::ffff:127.0.0.1]")); in test_isNumeric()
128 assertFalse(InetAddress.isNumeric("example.com")); in test_isNumeric()
131 assertTrue(InetAddress.isNumeric("0177.00.00.01")); // Interpreted as 177.0.0.1 in test_isNumeric()
134 assertFalse(invalid, InetAddress.isNumeric(invalid)); in test_isNumeric()
/libcore/luni/src/main/java/javax/net/ssl/
DDefaultHostnameVerifier.java51 return InetAddress.isNumeric(host) in verify()
/libcore/luni/src/main/java/java/net/
DHttpCookie.java104 if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { in domainMatches()
DInetAddress.java499 public static boolean isNumeric(String address) { in isNumeric() method in InetAddress
DURI.java530 if (InetAddress.isNumeric(host)) { in isValidHost()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralName.java652 if (!InetAddress.isNumeric(ip)) { in ipStrToBytes()