Home
last modified time | relevance | path

Searched refs:set2 (Results 1 – 25 of 118) sorted by relevance

12345

/external/testng/src/test/java/test/tmp/
DAssertEqualsTest.java42 Set set2 = new HashSet(); in main() local
45 set2.add(5); in main()
48 set2.add(6); in main()
51 set2.add(1); in main()
54 set2.add(9); in main()
57 System.out.println("set2 is:" + set2.toString()); in main()
59 System.out.println("is set1 equals set2 :" + set1.equals(set2)); in main()
62 Assert.assertEquals(set1, set2, "set1 must equals with set2"); in main()
/external/google-breakpad/src/client/linux/minidump_writer/
Dcpu_set_unittest.cc126 CpuSet set2; in TEST() local
127 ASSERT_TRUE(set2.ParseSysFile(file2.GetFd())); in TEST()
128 ASSERT_EQ(9, set2.GetCount()); in TEST()
130 set1.IntersectWith(set2); in TEST()
132 ASSERT_EQ(9, set2.GetCount()); in TEST()
155 CpuSet set2; in TEST() local
156 ASSERT_TRUE(set2.ParseSysFile(file2.GetFd())); in TEST()
157 ASSERT_EQ(20, set2.GetCount()); in TEST()
159 set1.IntersectWith(set2); in TEST()
162 ASSERT_EQ(20, set2.GetCount()); in TEST()
/external/cldr/tools/java/org/unicode/cldr/draft/
DCompacter.java28 public static String encodeString(Collection<String> set2) { in encodeString() argument
30 for (String s : set2) { in encodeString()
45 List<Interval> intermediate = codePointsToIntervals(set2); in encodeString()
70 private static List<Interval> codePointsToIntervals(Collection<String> set2) { in codePointsToIntervals() argument
74 for (String item : set2) { in codePointsToIntervals()
98 public static String appendCompacted(Collection<String> set2) { in appendCompacted() argument
100 return encodeString(set2); in appendCompacted()
102 String resultStr = getInternalRangeString(set2); in appendCompacted()
106 public static String getInternalRangeString(Collection<String> set2) { in getInternalRangeString() argument
110 for (String item : set2) { in getInternalRangeString()
/external/libchrome/base/sampling_heap_profiler/
Dlock_free_address_hash_set_unittest.cc36 const LockFreeAddressHashSet& set2) { in Equals() argument
37 return Subset(set1, set2) && Subset(set2, set1); in Equals()
98 LockFreeAddressHashSet set2(4); in TEST_F() local
100 set2.Copy(set); in TEST_F()
103 EXPECT_TRUE(Equals(set, set2)); in TEST_F()
105 EXPECT_TRUE(Equals(set2, set3)); in TEST_F()
109 EXPECT_FALSE(Equals(set, set2)); in TEST_F()
111 EXPECT_TRUE(Equals(set2, set3)); in TEST_F()
113 EXPECT_TRUE(Subset(set, set2)); in TEST_F()
114 EXPECT_FALSE(Subset(set2, set)); in TEST_F()
/external/toybox/toys/pending/
Dtr.c36 static void map_translation(char *set1 , char *set2) in map_translation() argument
47 TT.map[set2[k]] = TT.map[set2[k]]|0x200; in map_translation()
50 while (!(toys.optflags & FLAG_d) && set2 && TT.len1--) { //ignore set2 if -d present in map_translation()
51 TT.map[set1[i]] = ((TT.map[set1[i]] & 0xFF00) | set2[k]); in map_translation()
52 if (set2[k + 1]) k++; in map_translation()
211 static void print_map(char *set1, char *set2) in print_map() argument
252 char *set1, *set2 = NULL; in tr_main() local
261 set2 = expand_set(toys.optargs[1], &TT.len2); in tr_main()
263 map_translation(set1, set2); in tr_main()
265 print_map(set1, set2); in tr_main()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/
D10-1.c20 sigset_t set1, set2; in main() local
24 sigemptyset(&set2); in main()
28 sigprocmask(SIG_SETMASK, NULL, &set2); in main()
30 if (sigismember(&set2, SIGKILL)) { in main()
34 if (sigismember(&set2, SIGSTOP)) { in main()
D6-1.c28 sigset_t set1, set2, pending_set; in main() local
34 sigemptyset(&set2); in main()
35 sigaddset(&set2, SIGUSR2); in main()
59 if (sigprocmask(SIG_UNBLOCK, &set2, NULL) == -1) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
D10-1.c21 sigset_t set1, set2; in a_thread_func() local
25 sigemptyset(&set2); in a_thread_func()
29 pthread_sigmask(SIG_SETMASK, NULL, &set2); in a_thread_func()
31 if (sigismember(&set2, SIGKILL)) { in a_thread_func()
35 if (sigismember(&set2, SIGSTOP)) { in a_thread_func()
D6-1.c45 sigset_t set1, set2, pending_set; in a_thread_func() local
51 sigemptyset(&set2); in a_thread_func()
52 sigaddset(&set2, SIGALRM); in a_thread_func()
76 if (pthread_sigmask(SIG_UNBLOCK, &set2, NULL) == -1) { in a_thread_func()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DSetTagTest.java39 Set<String> set2 = (Set<String>) map.get("baseball teams"); in testSet() local
40 assertEquals(3, set2.size()); in testSet()
41 assertTrue(set2.contains("Boston Red Sox")); in testSet()
42 assertTrue(set2.contains("Detroit Tigers")); in testSet()
43 assertTrue(set2.contains("New York Yankees")); in testSet()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSets.java544 final Set<? extends E> set1, final Set<? extends E> set2) { in union() argument
546 checkNotNull(set2, "set2"); in union()
548 final Set<? extends E> set2minus1 = difference(set2, set1); in union()
555 return set1.isEmpty() && set2.isEmpty(); in union()
562 return set1.contains(object) || set2.contains(object); in union()
566 set.addAll(set2); in union()
571 .addAll(set1).addAll(set2).build(); in union()
603 final Set<E> set1, final Set<?> set2) {
605 checkNotNull(set2, "set2");
607 final Predicate<Object> inSet2 = Predicates.in(set2);
[all …]
/external/icu/icu4c/source/test/cintltst/
Dusettest.c84 USet* set2; in TestAPI() local
180 set2 = uset_open(1, 1); in TestAPI()
181 uset_clear(set2); in TestAPI()
184 uset_applyPropertyAlias(set2, PAT_lb, PAT_lb_LEN, VAL_SP, VAL_SP_LEN, &ec); in TestAPI()
185 expect(set2, " ", "abcdefghi{bc}", NULL); in TestAPI()
188 uset_set(set2, 0x0061, 0x0063); in TestAPI()
193 if (uset_containsSome(set, set2)) { in TestAPI()
196 uset_complementAll(set, set2); in TestAPI()
197 if (!uset_containsSome(set, set2)) { in TestAPI()
203 uset_removeAll(set, set2); in TestAPI()
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SparseToSparseSetOperation.pbtxt63 the same as the 1st `n-1` dimensions of `set1` and `set2`, `result_shape[n]`
72 order and range of `set1` and `set2` indices.
76 as `set2`. Dimension `n` contains values in a set, duplicates are allowed but
79 Input `set2` is a `SparseTensor` represented by `set2_indices`, `set2_values`,
80 and `set2_shape`. For `set2` ranked `n`, 1st `n-1` dimensions must be the same
85 and `set2` indices.
88 `result_values`, and `result_shape`. For `set1` and `set2` ranked `n`, this
89 has rank `n` and the same 1st `n-1` dimensions as `set1` and `set2`. The `nth`
Dapi_def_DenseToSparseSetOperation.pbtxt6 `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set2`.
48 the same as the 1st `n-1` dimensions of `set1` and `set2`, `result_shape[n]`
56 Input `set2` is a `SparseTensor` represented by `set2_indices`, `set2_values`,
57 and `set2_shape`. For `set2` ranked `n`, 1st `n-1` dimensions must be the same
61 If `validate_indices` is `True`, this op validates the order and range of `set2`
65 `result_values`, and `result_shape`. For `set1` and `set2` ranked `n`, this
66 has rank `n` and the same 1st `n-1` dimensions as `set1` and `set2`. The `nth`
Dapi_def_DenseToDenseSetOperation.pbtxt6 `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set2`.
11 name: "set2"
33 the same as the 1st `n-1` dimensions of `set1` and `set2`, `result_shape[n]`
42 `result_values`, and `result_shape`. For `set1` and `set2` ranked `n`, this
43 has rank `n` and the same 1st `n-1` dimensions as `set1` and `set2`. The `nth`
/external/testng/src/test/java/test/asserttests/
DAssertTest.java61 Set<Integer> set2 = Sets.newHashSet(); in setsSuccess() local
64 set2.add(1); in setsSuccess()
67 set2.add(3); in setsSuccess()
70 set2.add(2); in setsSuccess()
72 Assert.assertEquals(set1, set2); in setsSuccess()
73 Assert.assertEquals(set2, set1); in setsSuccess()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_state_test.cpp90 const auto set2 = CapabilitySet{SpvCapabilityStorageImageWriteWithoutFormat, in TEST_F()
94 EXPECT_FALSE(state_.HasAnyOfCapabilities(set2)); in TEST_F()
97 EXPECT_FALSE(state_.HasAnyOfCapabilities(set2)); in TEST_F()
127 const auto set2 = ExtensionSet{Extension::kSPV_KHR_shader_draw_parameters, in TEST_F()
131 EXPECT_FALSE(state_.HasAnyOfExtensions(set2)); in TEST_F()
134 EXPECT_FALSE(state_.HasAnyOfExtensions(set2)); in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_state_test.cpp90 const auto set2 = CapabilitySet{SpvCapabilityStorageImageWriteWithoutFormat, in TEST_F()
94 EXPECT_FALSE(state_.HasAnyOfCapabilities(set2)); in TEST_F()
97 EXPECT_FALSE(state_.HasAnyOfCapabilities(set2)); in TEST_F()
127 const auto set2 = ExtensionSet{Extension::kSPV_KHR_shader_draw_parameters, in TEST_F()
131 EXPECT_FALSE(state_.HasAnyOfExtensions(set2)); in TEST_F()
134 EXPECT_FALSE(state_.HasAnyOfExtensions(set2)); in TEST_F()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetTest.java501 UnicodeSet set2 = new UnicodeSet(); in TestAddRemove() local
502 expectPattern(set2, "[f-ky-za-bc[vw]]", "acfkvwyz"); in TestAddRemove()
503 set.removeAll(set2); in TestAddRemove()
508 expectPattern(set2, "[hitoshinamekatajamesanderson]", "aadehkmort"); in TestAddRemove()
509 set.addAll(set2); in TestAddRemove()
514 expectPattern(set2, "[jackiemclean]", "aacceein"); in TestAddRemove()
515 set.addAll(set2); in TestAddRemove()
530 UnicodeSet set2 = new UnicodeSet("[i-o]"); in TestMinimalRep() local
531 set.addAll(set2); in TestMinimalRep()
535 set2.applyPattern("[e-o]"); in TestMinimalRep()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetTest.java504 UnicodeSet set2 = new UnicodeSet(); in TestAddRemove() local
505 expectPattern(set2, "[f-ky-za-bc[vw]]", "acfkvwyz"); in TestAddRemove()
506 set.removeAll(set2); in TestAddRemove()
511 expectPattern(set2, "[hitoshinamekatajamesanderson]", "aadehkmort"); in TestAddRemove()
512 set.addAll(set2); in TestAddRemove()
517 expectPattern(set2, "[jackiemclean]", "aacceein"); in TestAddRemove()
518 set.addAll(set2); in TestAddRemove()
533 UnicodeSet set2 = new UnicodeSet("[i-o]"); in TestMinimalRep() local
534 set.addAll(set2); in TestMinimalRep()
538 set2.applyPattern("[e-o]"); in TestMinimalRep()
[all …]
/external/guava/guava/src/com/google/common/collect/
DSets.java580 final Set<? extends E> set1, final Set<? extends E> set2) { in union() argument
582 checkNotNull(set2, "set2"); in union()
584 final Set<? extends E> set2minus1 = difference(set2, set1); in union()
591 return set1.isEmpty() && set2.isEmpty(); in union()
598 return set1.contains(object) || set2.contains(object); in union()
602 set.addAll(set2); in union()
607 .addAll(set1).addAll(set2).build(); in union()
639 final Set<E> set1, final Set<?> set2) {
641 checkNotNull(set2, "set2");
643 final Predicate<Object> inSet2 = Predicates.in(set2);
[all …]
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c30 sigset_t set, set1, set2; in verify_rt_sigsuspend() local
54 SAFE_RT_SIGPROCMASK(0, NULL, &set2, SIGSETSIZE); in verify_rt_sigsuspend()
58 if (sigismember(&set1, i) != sigismember(&set2, i)) in verify_rt_sigsuspend()
/external/smali/util/src/main/java/org/jf/util/
DCollectionUtils.java193 … @Nonnull Collection<? extends T> set2) {
194 int res = Ints.compare(set1.size(), set2.size());
198 SortedSet<? extends T> sortedSet2 = toNaturalSortedSet(set2);
200 Iterator<? extends T> elements2 = set2.iterator();
215 SortedSet<? extends T> set2 = toSortedSet(elementComparator, list2);
217 Iterator<? extends T> elements2 = set2.iterator();
/external/python/cpython2/Lib/unittest/test/
Dtest_case.py771 set2 = set()
772 self.assertSetEqual(set1, set2)
774 self.assertRaises(self.failureException, self.assertSetEqual, None, set2)
775 self.assertRaises(self.failureException, self.assertSetEqual, [], set2)
780 set2 = set()
781 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
784 set2 = set(['a'])
785 self.assertSetEqual(set1, set2)
788 set2 = set(['a', 'b'])
789 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
[all …]
/external/vixl/test/
Dtest-invalset.cc363 TestSet set2; in TEST() local
364 VIXL_CHECK(set2.empty() && (set2.size() == 0)); in TEST()
369 set2.insert(Obj(i, 2)); in TEST()
382 VIXL_CHECK(set2.begin() != set2.end()); in TEST()
383 VIXL_CHECK(set1.begin() != set2.begin()); in TEST()
384 VIXL_CHECK(set1.end() != set2.end()); in TEST()

12345