Home
last modified time | relevance | path

Searched refs:textToNumericFormatV4 (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/sun/net/util/
DIPAddressUtilTest.java23 import static sun.net.util.IPAddressUtil.textToNumericFormatV4;
28 assertBytesEquals(0, 0, 0, 0, textToNumericFormatV4("0.0.0.0")); in test_textToNumericFormatV4_valid()
29 assertBytesEquals(1, 2, 3, 4, textToNumericFormatV4("1.2.3.4")); in test_textToNumericFormatV4_valid()
30 assertBytesEquals(255, 255, 255, 255, textToNumericFormatV4("255.255.255.255")); in test_textToNumericFormatV4_valid()
31 assertBytesEquals(123, 23, 255, 37, textToNumericFormatV4("123.23.255.37")); in test_textToNumericFormatV4_valid()
32 assertBytesEquals(192, 168, 0, 42, textToNumericFormatV4("192.168.0.42")); in test_textToNumericFormatV4_valid()
37 assertNull(textToNumericFormatV4("1")); in test_textToNumericFormatV4_invalid()
38 assertNull(textToNumericFormatV4("1.2")); in test_textToNumericFormatV4_invalid()
39 assertNull(textToNumericFormatV4("1.2.3")); in test_textToNumericFormatV4_invalid()
40 assertNull(textToNumericFormatV4("1.2.3.4.5")); in test_textToNumericFormatV4_invalid()
[all …]
/libcore/ojluni/src/main/java/sun/net/util/
DIPAddressUtil.java41 public static byte[] textToNumericFormatV4(String src) in textToNumericFormatV4() method in IPAddressUtil
204 byte[] v4addr = textToNumericFormatV4(ia4); in textToNumericFormatV6()
249 return textToNumericFormatV4(src) != null; in isIPv4LiteralAddress()
/libcore/ojluni/annotations/hiddenapi/sun/net/util/
DIPAddressUtil.java35 public static byte[] textToNumericFormatV4(java.lang.String src) { in textToNumericFormatV4() method in IPAddressUtil