Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DIpPrefix.java264 public int compare(IpPrefix prefix1, IpPrefix prefix2) { in lengthComparator()
265 if (prefix1.isIPv4()) { in lengthComparator()
270 final int p1len = prefix1.getPrefixLength(); in lengthComparator()
274 final byte[] a1 = prefix1.address; in lengthComparator()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java216 private boolean isConflictPrefix(final IpPrefix prefix1, final IpPrefix prefix2) { in isConflictPrefix() argument
217 if (prefix2.getPrefixLength() < prefix1.getPrefixLength()) { in isConflictPrefix()
218 return prefix2.contains(prefix1.getAddress()); in isConflictPrefix()
221 return prefix1.contains(prefix2.getAddress()); in isConflictPrefix()
/frameworks/base/tests/net/common/java/android/net/
DLinkPropertiesTest.java402 LinkAddress prefix1 = new LinkAddress(address("2001:db8:1::"), 48); in testRouteInterfaces() local
408 RouteInfo r = new RouteInfo(prefix1, address, null); in testRouteInterfaces()