Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DIpPrefix.java179 byte[] addrBytes = (address == null) ? null : address.getAddress(); in contains()
180 if (addrBytes == null || addrBytes.length != this.address.length) { in contains()
183 NetworkUtils.maskRawAddress(addrBytes, prefixLength); in contains()
184 return Arrays.equals(this.address, addrBytes); in contains()
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java1214 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument
1215 return bytesToInt(addrBytes) | (int) (uint32(-1) >>> prefixLength); in ipv4BroadcastAddress()
1219 public static int bytesToInt(byte[] addrBytes) { in bytesToInt() argument
1220 return (uint8(addrBytes[0]) << 24) in bytesToInt()
1221 + (uint8(addrBytes[1]) << 16) in bytesToInt()
1222 + (uint8(addrBytes[2]) << 8) in bytesToInt()
1223 + (uint8(addrBytes[3])); in bytesToInt()