Searched refs:IPV4_BYTES (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | IpPrefixTest.java | 49 private static final byte[] IPV4_BYTES = { (byte) 192, (byte) 0, (byte) 2, (byte) 4}; field in IpPrefixTest 131 p = new IpPrefix(IPV4_BYTES, 32); in testTruncation() 134 p = new IpPrefix(IPV4_BYTES, 29); in testTruncation() 137 p = new IpPrefix(IPV4_BYTES, 8); in testTruncation() 140 p = new IpPrefix(IPV4_BYTES, 0); in testTruncation() 144 p = new IpPrefix(IPV4_BYTES, 33); in testTruncation() 149 p = new IpPrefix(IPV4_BYTES, 128); in testTruncation() 154 p = new IpPrefix(IPV4_BYTES, -1); in testTruncation() 219 System.arraycopy(IPV4_BYTES, 0, ipv6bytes, 0, IPV4_BYTES.length); in testEquals() 223 p2 = new IpPrefix(IPV4_BYTES, 32); in testEquals()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowOs.java | 39 private static final byte[] IPV4_BYTES = new byte[4]; field in ShadowOs 47 return InetAddress.getByAddress((AF_INET == family) ? IPV4_BYTES : IPV6_BYTES); in inet_pton()
|