Home
last modified time | relevance | path

Searched refs:intersection (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/util/LinkedHashSet/
DBasic.java55 Set intersection = clone(s1); in main() local
56 intersection.retainAll(s2); in main()
63 if (diff1.removeAll(intersection)) in main()
67 if (diff2.removeAll(intersection)) in main()
69 if (intersection.removeAll(diff1)) in main()
71 if (intersection.removeAll(diff1)) in main()
74 intersection.addAll(diff1); intersection.addAll(diff2); in main()
75 if (!intersection.equals(union)) in main()
83 if (!intersection.remove(e.next())) in main()
85 if (!intersection.isEmpty()) in main()
/libcore/ojluni/src/test/java/util/Collections/
DCheckedSetBash.java72 Set<Integer> intersection = clone(s1, supplier); in testCheckedSet() local
73 intersection.retainAll(s2); in testCheckedSet()
80 if (diff1.removeAll(intersection)) in testCheckedSet()
84 if (diff2.removeAll(intersection)) in testCheckedSet()
86 if (intersection.removeAll(diff1)) in testCheckedSet()
88 if (intersection.removeAll(diff1)) in testCheckedSet()
91 intersection.addAll(diff1); intersection.addAll(diff2); in testCheckedSet()
92 if (!intersection.equals(union)) in testCheckedSet()
100 if (!intersection.remove(e.next())) in testCheckedSet()
102 if (!intersection.isEmpty()) in testCheckedSet()
DCheckedListBash.java56 List intersection = clone(s1); intersection.retainAll(s2); in main() local
63 if (diff1.removeAll(intersection)) in main()
67 if (diff2.removeAll(intersection)) in main()
69 if (intersection.removeAll(diff1)) in main()
71 if (intersection.removeAll(diff1)) in main()
74 intersection.addAll(diff1); intersection.addAll(diff2); in main()
75 if (!(intersection.containsAll(union) && in main()
76 union.containsAll(intersection))) in main()
81 intersection.remove(e.next()); in main()
82 if (!intersection.isEmpty()) in main()
/libcore/luni/src/main/java/android/compat/
DCompatibility.java218 Set<Long> intersection = new HashSet<>(enabled); in ChangeConfig() local
219 intersection.retainAll(disabled); in ChangeConfig()
220 if (!intersection.isEmpty()) { in ChangeConfig()
221 throw new IllegalArgumentException("Cannot have changes " + intersection in ChangeConfig()
/libcore/ojluni/src/test/java/util/EnumSet/
DEnumSetBash.java92 EnumSet<T> intersection = clone(s1, enumClass); in bash() local
93 intersection.retainAll(s2); in bash()
99 Assert.assertFalse(diff1.removeAll(intersection)); in bash()
101 Assert.assertFalse(diff2.removeAll(intersection)); in bash()
102 Assert.assertFalse(intersection.removeAll(diff1)); in bash()
103 Assert.assertFalse(intersection.removeAll(diff1)); in bash()
105 intersection.addAll(diff1); intersection.addAll(diff2); in bash()
106 Assert.assertTrue(intersection.equals(union)); in bash()
112 Assert.assertTrue(intersection.remove(e.next())); in bash()
113 Assert.assertTrue(intersection.isEmpty()); in bash()
/libcore/ojluni/src/main/java/java/lang/reflect/
DProxy.java736 Set<Class<?>> intersection = new HashSet<Class<?>>(); in intersectExceptions() local
740 intersection.add(b); in intersectExceptions()
742 intersection.add(a); in intersectExceptions()
746 return intersection.toArray(new Class<?>[intersection.size()]); in intersectExceptions()
/libcore/ojluni/src/main/java/sun/security/x509/
DGeneralSubtrees.java395 boolean intersection = false; in intersect()
409 intersection = true; in intersect()
415 if (intersection == false) { in intersect()
/libcore/tools/expected_upstream/
Dojluni_merge_to_main.py399 intersection = set(filter(lambda e: e.dst_path in removed_paths,
401 diff_entries = list(filter(lambda e: e.dst_path not in intersection, diff_entries))
402 new_removed_paths = set(filter(lambda p: p not in intersection,
/libcore/ojluni/src/test/java/util/regex/
DTestCases.txt166 // Negation with nested char class and intersection
240 // Class union and intersection
DBMPTestCases.txt151 // Class union and intersection
DSupplementaryTestCases.txt272 // Class union and intersection