Searched refs:containsPrefix (Results 1 – 3 of 3) sorted by relevance
247 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("0.0.0.0/0"))); in testContainsIpPrefix()248 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/0"))); in testContainsIpPrefix()249 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/8"))); in testContainsIpPrefix()250 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/24"))); in testContainsIpPrefix()251 assertTrue(new IpPrefix("0.0.0.0/0").containsPrefix(new IpPrefix("1.2.3.4/23"))); in testContainsIpPrefix()253 assertTrue(new IpPrefix("1.2.3.4/8").containsPrefix(new IpPrefix("1.2.3.4/8"))); in testContainsIpPrefix()254 assertTrue(new IpPrefix("1.2.3.4/8").containsPrefix(new IpPrefix("1.254.12.9/8"))); in testContainsIpPrefix()255 assertTrue(new IpPrefix("1.2.3.4/21").containsPrefix(new IpPrefix("1.2.3.4/21"))); in testContainsIpPrefix()256 assertTrue(new IpPrefix("1.2.3.4/32").containsPrefix(new IpPrefix("1.2.3.4/32"))); in testContainsIpPrefix()258 assertTrue(new IpPrefix("1.2.3.4/20").containsPrefix(new IpPrefix("1.2.3.0/24"))); in testContainsIpPrefix()[all …]
206 public boolean containsPrefix(@NonNull IpPrefix otherPrefix) { in containsPrefix() method in IpPrefix
406 if (existingPrefix.containsPrefix(newPrefix)) { in deduplicatePrefixSet()