HomeSort by relevance Sort by last modified time
    Searched refs:IPv4Address (Results 1 - 6 of 6) sorted by null

  /frameworks/base/core/tests/coretests/src/android/net/
NetworkUtilsTest.java 33 private Inet4Address IPv4Address(String addr) {
39 assertEquals(8, NetworkUtils.getImplicitNetmask(IPv4Address("4.2.2.2")));
40 assertEquals(8, NetworkUtils.getImplicitNetmask(IPv4Address("10.5.6.7")));
41 assertEquals(16, NetworkUtils.getImplicitNetmask(IPv4Address("173.194.72.105")));
42 assertEquals(16, NetworkUtils.getImplicitNetmask(IPv4Address("172.23.68.145")));
43 assertEquals(24, NetworkUtils.getImplicitNetmask(IPv4Address("192.0.2.1")));
44 assertEquals(24, NetworkUtils.getImplicitNetmask(IPv4Address("192.168.5.1")));
45 assertEquals(32, NetworkUtils.getImplicitNetmask(IPv4Address("224.0.0.1")));
46 assertEquals(32, NetworkUtils.getImplicitNetmask(IPv4Address("255.6.7.8")));
59 assertEquals(0, NetworkUtils.netmaskToPrefixLength(IPv4Address("0.0.0.0")))
    [all...]
  /external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/ipaddr/
ipaddr_test.py 61 self.assertEqual(ipaddr.IPv4Address('1.1.1.1') + 255,
62 ipaddr.IPv4Address('1.1.2.0'))
63 self.assertEqual(ipaddr.IPv4Address('1.1.1.1') - 256,
64 ipaddr.IPv4Address('1.1.0.1'))
158 ipaddr.IPv4Address(1)._ip_int_from_string,
337 self.assertEqual([ipaddr.IPv4Address('2.0.0.0'),
338 ipaddr.IPv4Address('2.0.0.1')],
415 addr1 = ipaddr.IPv4Address('1.2.3.37')
531 ip1 = ipaddr.IPv4Address('1.1.1.0')
532 ip2 = ipaddr.IPv4Address('1.1.1.1'
    [all...]
ipaddr.py 54 An IPv4Address or IPv6Address object.
63 return IPv4Address(address)
68 return IPv4Address(address)
208 >>> summarize_address_range(IPv4Address('1.1.1.0'),
209 IPv4Address('1.1.1.130'))
214 first: the first IPv4Address or IPv6Address in the range.
215 last: the last IPv4Address or IPv6Address in the range.
399 IPv4Address('1.1.1.1') <= IPv4Network('1.1.1.1/24')
    [all...]
  /external/jmdns/src/javax/jmdns/impl/
HostInfo.java 212 return new DNSRecord.IPv4Address(this.getName(), DNSRecordClass.CLASS_IN, unique, ttl, this.getInetAddress());
DNSRecord.java 173 public static class IPv4Address extends Address {
175 IPv4Address(String name, DNSRecordClass recordClass, boolean unique, int ttl, InetAddress addr) {
179 IPv4Address(String name, DNSRecordClass recordClass, boolean unique, int ttl, byte[] rawAddress) {
    [all...]
DNSIncoming.java 300 rec = new DNSRecord.IPv4Address(domain, recordClass, unique, ttl, _messageInputStream.readBytes(len));

Completed in 363 milliseconds