Home
last modified time | relevance | path

Searched refs:set1 (Results 1 – 25 of 132) sorted by relevance

123456

/external/google-breakpad/src/client/linux/minidump_writer/
Dcpu_set_unittest.cc120 CpuSet set1; in TEST() local
121 ASSERT_TRUE(set1.ParseSysFile(file1.GetFd())); in TEST()
122 ASSERT_EQ(11, set1.GetCount()); in TEST()
130 set1.IntersectWith(set2); in TEST()
131 ASSERT_EQ(4, set1.GetCount()); in TEST()
138 CpuSet set1; in TEST() local
139 ASSERT_TRUE(set1.ParseSysFile(file1.GetFd())); in TEST()
140 ASSERT_EQ(11, set1.GetCount()); in TEST()
142 set1.IntersectWith(set1); in TEST()
143 ASSERT_EQ(11, set1.GetCount()); in TEST()
[all …]
/external/testng/src/test/java/test/tmp/
DAssertEqualsTest.java41 Set set1 = new LinkedHashSet(); in main() local
44 set1.add(5); in main()
47 set1.add(6); in main()
50 set1.add(1); in main()
53 set1.add(9); in main()
56 System.out.println("set1 is:" + set1.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/toybox/toys/pending/
Dtr.c36 static void map_translation(char *set1 , char *set2) in map_translation() argument
41 for (; i; i--, k++) TT.map[set1[k]] = set1[k]|0x100; //set delete bit in map_translation()
45 TT.map[set1[k]] = TT.map[set1[k]]|0x200; in map_translation()
51 TT.map[set1[i]] = ((TT.map[set1[i]] & 0xFF00) | set2[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
257 set1 = expand_set(toys.optargs[0], &TT.len1); in tr_main()
258 if (toys.optflags & FLAG_c) do_complement(&set1); 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
23 sigemptyset(&set1); in main()
25 sigaddset(&set1, SIGKILL); in main()
26 sigaddset(&set1, SIGSTOP); in main()
27 sigprocmask_return_val = sigprocmask(SIG_SETMASK, &set1, NULL); in main()
D6-1.c28 sigset_t set1, set2, pending_set; in main() local
30 sigemptyset(&set1); in main()
31 sigaddset(&set1, SIGABRT); in main()
32 sigaddset(&set1, SIGUSR2); in main()
53 if (sigprocmask(SIG_SETMASK, &set1, NULL) == -1) { in main()
/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
545 checkNotNull(set1, "set1"); in union()
548 final Set<? extends E> set2minus1 = difference(set2, set1); in union()
552 return set1.size() + set2minus1.size(); in union()
555 return set1.isEmpty() && set2.isEmpty(); in union()
559 Iterators.concat(set1.iterator(), set2minus1.iterator())); in union()
562 return set1.contains(object) || set2.contains(object); in union()
565 set.addAll(set1); in union()
571 .addAll(set1).addAll(set2).build(); in union()
603 final Set<E> set1, final Set<?> set2) {
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
D10-1.c21 sigset_t set1, set2; in a_thread_func() local
24 sigemptyset(&set1); in a_thread_func()
26 sigaddset(&set1, SIGKILL); in a_thread_func()
27 sigaddset(&set1, SIGSTOP); in a_thread_func()
28 pthread_sigmask_return_val = pthread_sigmask(SIG_SETMASK, &set1, NULL); in a_thread_func()
D6-1.c45 sigset_t set1, set2, pending_set; in a_thread_func() local
47 sigemptyset(&set1); in a_thread_func()
48 sigaddset(&set1, SIGABRT); in a_thread_func()
49 sigaddset(&set1, SIGALRM); in a_thread_func()
70 if (pthread_sigmask(SIG_SETMASK, &set1, NULL) == -1) { in a_thread_func()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DSetTagTest.java33 Set<String> set1 = (Set<String>) map.get("baseball players"); in testSet() local
34 assertEquals(3, set1.size()); in testSet()
35 assertTrue(set1.contains("Mark McGwire")); in testSet()
36 assertTrue(set1.contains("Sammy Sosa")); in testSet()
37 assertTrue(set1.contains("Ken Griffey")); in testSet()
/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.
74 Input `set1` is a `SparseTensor` represented by `set1_indices`, `set1_values`,
75 and `set1_shape`. For `set1` ranked `n`, 1st `n-1` dimensions must be the same
81 as `set1`. Dimension `n` contains values in a set, duplicates are allowed but
84 If `validate_indices` is `True`, this op validates the order and range of `set1`
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_DenseToDenseSetOperation.pbtxt4 name: "set1"
13 `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set1`.
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`
Dapi_def_DenseToSparseSetOperation.pbtxt4 name: "set1"
28 be the same as the 1st `n-1` dimensions of `set1`, `result_shape[n]` is the
48 the same as the 1st `n-1` dimensions of `set1` and `set2`, `result_shape[n]`
58 as `set1`. Dimension `n` contains values in a set, duplicates are allowed but
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`
/external/testng/src/test/java/test/asserttests/
DAssertTest.java60 Set<Integer> set1 = Sets.newHashSet(); in setsSuccess() local
63 set1.add(1); in setsSuccess()
66 set1.add(3); in setsSuccess()
69 set1.add(2); in setsSuccess()
72 Assert.assertEquals(set1, set2); in setsSuccess()
73 Assert.assertEquals(set2, set1); in setsSuccess()
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_state_test.cpp88 const auto set1 = in TEST_F()
93 EXPECT_FALSE(state_.HasAnyOfCapabilities(set1)); in TEST_F()
96 EXPECT_TRUE(state_.HasAnyOfCapabilities(set1)); in TEST_F()
125 const auto set1 = ExtensionSet{Extension::kSPV_KHR_multiview, in TEST_F()
130 EXPECT_FALSE(state_.HasAnyOfExtensions(set1)); in TEST_F()
133 EXPECT_TRUE(state_.HasAnyOfExtensions(set1)); in TEST_F()
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_state_test.cpp88 const auto set1 = in TEST_F()
93 EXPECT_FALSE(state_.HasAnyOfCapabilities(set1)); in TEST_F()
96 EXPECT_TRUE(state_.HasAnyOfCapabilities(set1)); in TEST_F()
125 const auto set1 = ExtensionSet{Extension::kSPV_KHR_multiview, in TEST_F()
130 EXPECT_FALSE(state_.HasAnyOfExtensions(set1)); in TEST_F()
133 EXPECT_TRUE(state_.HasAnyOfExtensions(set1)); in TEST_F()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetTest.java1521 UnicodeSet set1 = new UnicodeSet("[a-b d-g {ch} {zh}]").freeze(); in TestGenerics() local
1532 for (UnicodeSetIterator it = new UnicodeSetIterator(set1); it.next();) { in TestGenerics()
1537 for (String s : set1) { in TestGenerics()
1544 set1.addAllTo(list1); in TestGenerics()
1547 list1 = set1.addAllTo(new ArrayList<String>()); in TestGenerics()
1554 TreeSet sorted1 = set1.addAllTo(new TreeSet<String>()); in TestGenerics()
1559 assertTrue("containsAll", set1.containsAll(list1)); in TestGenerics()
1560 assertTrue("containsAll", set1.containsAll(sorted1)); in TestGenerics()
1561 assertTrue("containsAll", set1.containsAll(list2)); in TestGenerics()
1562 assertTrue("containsAll", set1.containsAll(sorted2)); in TestGenerics()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetTest.java1524 UnicodeSet set1 = new UnicodeSet("[a-b d-g {ch} {zh}]").freeze(); in TestGenerics() local
1535 for (UnicodeSetIterator it = new UnicodeSetIterator(set1); it.next();) { in TestGenerics()
1540 for (String s : set1) { in TestGenerics()
1547 set1.addAllTo(list1); in TestGenerics()
1550 list1 = set1.addAllTo(new ArrayList<String>()); in TestGenerics()
1557 TreeSet sorted1 = set1.addAllTo(new TreeSet<String>()); in TestGenerics()
1562 assertTrue("containsAll", set1.containsAll(list1)); in TestGenerics()
1563 assertTrue("containsAll", set1.containsAll(sorted1)); in TestGenerics()
1564 assertTrue("containsAll", set1.containsAll(list2)); in TestGenerics()
1565 assertTrue("containsAll", set1.containsAll(sorted2)); in TestGenerics()
[all …]
/external/skia/tests/
DBitSetTest.cpp36 SkBitSet set1(65536); in DEF_TEST() local
37 set1.set(12345); in DEF_TEST()
39 REPORTER_ASSERT(reporter, set1.has(12345) == true); in DEF_TEST()
40 REPORTER_ASSERT(reporter, set1.has(22) == false); in DEF_TEST()
/external/skqp/tests/
DBitSetTest.cpp36 SkBitSet set1(65536); in DEF_TEST() local
37 set1.set(12345); in DEF_TEST()
39 REPORTER_ASSERT(reporter, set1.has(12345) == true); in DEF_TEST()
40 REPORTER_ASSERT(reporter, set1.has(22) == false); in DEF_TEST()
/external/guava/guava/src/com/google/common/collect/
DSets.java580 final Set<? extends E> set1, final Set<? extends E> set2) { in union() argument
581 checkNotNull(set1, "set1"); in union()
584 final Set<? extends E> set2minus1 = difference(set2, set1); in union()
588 return set1.size() + set2minus1.size(); in union()
591 return set1.isEmpty() && set2.isEmpty(); in union()
595 Iterators.concat(set1.iterator(), set2minus1.iterator())); in union()
598 return set1.contains(object) || set2.contains(object); in union()
601 set.addAll(set1); in union()
607 .addAll(set1).addAll(set2).build(); in union()
639 final Set<E> set1, final Set<?> set2) {
[all …]
/external/python/cpython2/Lib/test/
Dtest_compare.py32 set1 = [2, 2.0, 2L, 2+0j, Coerce(2), Cmp(2.0)] variable in ComparisonTest
34 candidates = set1 + set2
39 if ((a in self.set1) and (b in self.set1)) or a is b:
/external/vixl/test/
Dtest-invalset.cc360 TestSet set1; in TEST() local
361 VIXL_CHECK(set1.empty() && (set1.size() == 0)); in TEST()
368 set1.insert(Obj(i, 1)); in TEST()
372 TestSet::iterator it1_a = set1.begin(); in TEST()
373 TestSet::iterator it1_b = set1.begin(); in TEST()
381 VIXL_CHECK(set1.begin() != set1.end()); in TEST()
383 VIXL_CHECK(set1.begin() != set2.begin()); in TEST()
384 VIXL_CHECK(set1.end() != set2.end()); in TEST()
/external/eigen/bench/
Dsparse_randomsetter.cpp51 SetterType* set1 = new SetterType(sm1); in dostuff() local
54 (*set1)(internal::random<int>(0,rows-1),internal::random<int>(0,cols-1)) += 1; in dostuff()
57 << " nnz=" << set1->nonZeros() << std::flush; in dostuff()
61 t.reset(); t.start(); delete set1; t.stop(); in dostuff()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue73/
DRecursiveSetTest.java29 Set<Object> set1 = new HashSet<Object>(); in testDumpException() local
31 set1.add(set2); in testDumpException()
32 set2.add(set1); in testDumpException()
35 yaml.dump(set1); in testDumpException()
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c30 sigset_t set, set1, set2; in verify_rt_sigsuspend() local
38 SAFE_RT_SIGPROCMASK(0, NULL, &set1, SIGSETSIZE); in verify_rt_sigsuspend()
58 if (sigismember(&set1, i) != sigismember(&set2, i)) in verify_rt_sigsuspend()

123456