Home
last modified time | relevance | path

Searched refs:addrBytes (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/framework/src/android/net/
DIpPrefix.java189 byte[] addrBytes = address.getAddress(); in contains()
190 if (addrBytes == null || addrBytes.length != this.address.length) { in contains()
193 NetUtils.maskRawAddress(addrBytes, prefixLength); in contains()
194 return Arrays.equals(this.address, addrBytes); in contains()
DQosSocketInfo.java182 final byte[] addrBytes = in.createByteArray(); in readSocketAddress()
183 if (addrBytes == null) { in readSocketAddress()
189 return new InetSocketAddress(InetAddress.getByAddress(addrBytes), port); in readSocketAddress()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DInetDiagMessage.java394 final byte[] addrBytes = addr.getAddress(); in isLoopbackAddress()
396 if (addrBytes[i] != 0) return false; in isLoopbackAddress()
398 return addrBytes[10] == (byte) 0xff in isLoopbackAddress()
399 && addrBytes[11] == (byte) 0xff in isLoopbackAddress()
400 && addrBytes[12] == 127; in isLoopbackAddress()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsRecordRepository.java1447 final byte[] addrBytes = addr.getAddress(); in getReverseDnsAddress()
1450 for (int i = addrBytes.length - 1; i >= 0; i--) { in getReverseDnsAddress()
1451 out.add(String.valueOf(Byte.toUnsignedInt(addrBytes[i]))); in getReverseDnsAddress()
1455 final String hexAddr = HexDump.toHexString(addrBytes); in getReverseDnsAddress()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java2284 private Inet4Address parseIPv4Address(byte[] addrBytes) { in parseIPv4Address() argument
2286 final InetAddress ia = Inet4Address.getByAddress(addrBytes); in parseIPv4Address()
/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java2361 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument
2362 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress()
DApfFilter.java2855 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument
2856 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress()