Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DIpPrefixTest.java255 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("0.0.0.0/0"))); in testContainsIpPrefix()
256 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/0"))); in testContainsIpPrefix()
257 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/8"))); in testContainsIpPrefix()
258 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/24"))); in testContainsIpPrefix()
259 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/23"))); in testContainsIpPrefix()
261 assertTrue(new IpPrefix("1.2.3.4/8").containsPrefix(new IpPrefix("1.2.3.4/8"))); in testContainsIpPrefix()
262 assertTrue(new IpPrefix("1.2.3.4/8").containsPrefix(new IpPrefix("1.254.12.9/8"))); in testContainsIpPrefix()
263 assertTrue(new IpPrefix("1.2.3.4/21").containsPrefix(new IpPrefix("1.2.3.4/21"))); in testContainsIpPrefix()
264 assertTrue(new IpPrefix("1.2.3.4/32").containsPrefix(new IpPrefix("1.2.3.4/32"))); in testContainsIpPrefix()
266 assertTrue(new IpPrefix("1.2.3.4/20").containsPrefix(new IpPrefix("1.2.3.0/24"))); in testContainsIpPrefix()
[all …]
/frameworks/base/core/java/android/net/
DIpPrefix.java197 public boolean containsPrefix(IpPrefix otherPrefix) { in containsPrefix() method in IpPrefix
DNetworkUtils.java409 if (existingPrefix.containsPrefix(newPrefix)) { in deduplicatePrefixSet()