/external/v8/test/cctest/ |
D | test-unique.cc | 268 UniqueSet<T>* set1, UniqueSet<T>* set2, bool expected) { in CHECK_SETS() argument 270 CHECK(set2->Equals(set2)); in CHECK_SETS() 271 CHECK(expected == set1->Equals(set2)); in CHECK_SETS() 272 CHECK(expected == set2->Equals(set1)); in CHECK_SETS() 284 UniqueSet<String>* set2 = new(&zone) UniqueSet<String>(); in TEST() local 286 CHECK_SETS(set1, set2, true); in TEST() 290 CHECK_SETS(set1, set2, false); in TEST() 292 set2->Add(A, &zone); in TEST() 294 CHECK_SETS(set1, set2, true); in TEST() 298 CHECK_SETS(set1, set2, false); in TEST() [all …]
|
/external/skia/tests/ |
D | BitSetTest.cpp | 56 SkBitSet set2(1); in DEF_TEST() local 61 REPORTER_ASSERT(reporter, set2 == set3); in DEF_TEST() 62 REPORTER_ASSERT(reporter, set2 != set4); in DEF_TEST() 63 REPORTER_ASSERT(reporter, set2 != set5); in DEF_TEST() 65 set2.setBit(0, true); in DEF_TEST() 66 REPORTER_ASSERT(reporter, set2 != set5); in DEF_TEST() 68 REPORTER_ASSERT(reporter, set2 != set5); in DEF_TEST() 69 REPORTER_ASSERT(reporter, set2 != set3); in DEF_TEST() 71 REPORTER_ASSERT(reporter, set2 == set3); in DEF_TEST() 73 set3 = set2; in DEF_TEST() [all …]
|
/external/opencv3/modules/shape/src/ |
D | haus_dis.cpp | 101 static float _apply(const Mat &set1, const Mat &set2, int distType, double propRank) in _apply() argument 104 Mat disMat(set1.cols, set2.cols, CV_32F); in _apply() 111 Point2f diff = set1.at<Point2f>(0,r)-set2.at<Point2f>(0,c); in _apply() 131 Mat set1=contour1.getMat(), set2=contour2.getMat(); in computeDistance() local 134 if (set2.type() != CV_32F) in computeDistance() 135 set2.convertTo(set2, CV_32F); in computeDistance() 137 CV_Assert((set2.channels()==2) && (set2.cols>0)); in computeDistance() 138 return std::max( _apply(set1, set2, distanceFlag, rankProportion), in computeDistance() 139 _apply(set2, set1, distanceFlag, rankProportion) ); in computeDistance()
|
/external/testng/src/test/java/test/tmp/ |
D | AssertEqualsTest.java | 42 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/ |
D | cpu_set_unittest.cc | 126 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/toybox/toys/pending/ |
D | tr.c | 36 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/opencv3/modules/stitching/src/ |
D | util.cpp | 74 int DisjointSets::mergeSets(int set1, int set2) in mergeSets() argument 76 if (rank_[set1] < rank_[set2]) in mergeSets() 78 parent[set1] = set2; in mergeSets() 79 size[set2] += size[set1]; in mergeSets() 80 return set2; in mergeSets() 82 if (rank_[set2] < rank_[set1]) in mergeSets() 84 parent[set2] = set1; in mergeSets() 85 size[set1] += size[set2]; in mergeSets() 88 parent[set1] = set2; in mergeSets() 89 rank_[set2]++; in mergeSets() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
D | SetTagTest.java | 39 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/valgrind/none/tests/ppc32/ |
D | power5+_round.c | 89 double set2[] = { 0.9, 0.1, -0.1, -0.9, 1e-40, -1e-40 }; in main() local 111 DO_TEST(frin, set2, frin2, frin2rf); in main() 113 DO_TEST(friz, set2, friz2, friz2rf); in main() 115 DO_TEST(frip, set2, frip2, frip2rf); in main() 117 DO_TEST(frim, set2, frim2, frim2rf); in main() 125 double set2[] = in main() local 137 DO_TEST(frsp, set2, frsp2, fprf2); in main()
|
/external/icu/icu4c/source/test/cintltst/ |
D | usettest.c | 82 USet* set2; in TestAPI() local 178 set2 = uset_open(1, 1); in TestAPI() 179 uset_clear(set2); in TestAPI() 182 uset_applyPropertyAlias(set2, PAT_lb, PAT_lb_LEN, VAL_SP, VAL_SP_LEN, &ec); in TestAPI() 183 expect(set2, " ", "abcdefghi{bc}", NULL); in TestAPI() 186 uset_set(set2, 0x0061, 0x0063); in TestAPI() 191 if (uset_containsSome(set, set2)) { in TestAPI() 194 uset_complementAll(set, set2); in TestAPI() 195 if (!uset_containsSome(set, set2)) { in TestAPI() 201 uset_removeAll(set, set2); in TestAPI() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Sets.java | 544 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/testng/src/test/java/test/asserttests/ |
D | AssertTest.java | 61 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/opencv3/modules/cudaimgproc/src/ |
D | mssegmentation.cpp | 63 int merge(int set1, int set2); 160 inline int DjSets::merge(int set1, int set2) in merge() argument 162 if (rank[set1] < rank[set2]) in merge() 164 parent[set1] = set2; in merge() 165 size[set2] += size[set1]; in merge() 166 return set2; in merge() 168 if (rank[set2] < rank[set1]) in merge() 170 parent[set2] = set1; in merge() 171 size[set1] += size[set2]; in merge() 174 parent[set1] = set2; in merge() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 492 UnicodeSet set2 = new UnicodeSet(); in TestAddRemove() local 493 expectPattern(set2, "[f-ky-za-bc[vw]]", "acfkvwyz"); in TestAddRemove() 494 set.removeAll(set2); in TestAddRemove() 499 expectPattern(set2, "[hitoshinamekatajamesanderson]", "aadehkmort"); in TestAddRemove() 500 set.addAll(set2); in TestAddRemove() 505 expectPattern(set2, "[jackiemclean]", "aacceein"); in TestAddRemove() 506 set.addAll(set2); in TestAddRemove() 520 UnicodeSet set2 = new UnicodeSet("[i-o]"); in TestMinimalRep() local 521 set.addAll(set2); in TestMinimalRep() 525 set2.applyPattern("[e-o]"); in TestMinimalRep() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 496 UnicodeSet set2 = new UnicodeSet(); in TestAddRemove() local 497 expectPattern(set2, "[f-ky-za-bc[vw]]", "acfkvwyz"); in TestAddRemove() 498 set.removeAll(set2); in TestAddRemove() 503 expectPattern(set2, "[hitoshinamekatajamesanderson]", "aadehkmort"); in TestAddRemove() 504 set.addAll(set2); in TestAddRemove() 509 expectPattern(set2, "[jackiemclean]", "aacceein"); in TestAddRemove() 510 set.addAll(set2); in TestAddRemove() 524 UnicodeSet set2 = new UnicodeSet("[i-o]"); in TestMinimalRep() local 525 set.addAll(set2); in TestMinimalRep() 529 set2.applyPattern("[e-o]"); in TestMinimalRep() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | Sets.java | 580 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/smali/util/src/main/java/org/jf/util/ |
D | CollectionUtils.java | 193 … @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/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | BagFormatter.java | 80 UnicodeSet set2) { in showSetDifferences() argument 83 showSetDifferences(new PrintWriter(result),name1,set1,name2,set2); in showSetDifferences() 92 Collection set2) { in showSetDifferences() argument 95 showSetDifferences(new PrintWriter(result), name1, set1, name2, set2); in showSetDifferences() 105 UnicodeSet set2) { in showSetDifferences() argument 106 showSetDifferences(pw, name1, set1, name2, set2, -1); in showSetDifferences() 120 UnicodeSet set2, in showSetDifferences() argument 129 temp = new UnicodeSet(set1).removeAll(set2); in showSetDifferences() 137 temp = new UnicodeSet(set2).removeAll(set1); in showSetDifferences() 145 temp = new UnicodeSet(set2).retainAll(set1); in showSetDifferences() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | BagFormatter.java | 81 UnicodeSet set2) { in showSetDifferences() argument 84 showSetDifferences(new PrintWriter(result),name1,set1,name2,set2); in showSetDifferences() 93 Collection set2) { in showSetDifferences() argument 96 showSetDifferences(new PrintWriter(result), name1, set1, name2, set2); in showSetDifferences() 106 UnicodeSet set2) { in showSetDifferences() argument 107 showSetDifferences(pw, name1, set1, name2, set2, -1); in showSetDifferences() 121 UnicodeSet set2, in showSetDifferences() argument 130 temp = new UnicodeSet(set1).removeAll(set2); in showSetDifferences() 138 temp = new UnicodeSet(set2).removeAll(set1); in showSetDifferences() 146 temp = new UnicodeSet(set2).retainAll(set1); in showSetDifferences() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue73/ |
D | RecursiveSetTest.java | 30 Set<Object> set2 = new HashSet<Object>(); in testDumpException() local 31 set1.add(set2); in testDumpException() 32 set2.add(set1); in testDumpException()
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
D | TestBoilerplate.java | 138 …public static boolean verifySetsIdentical(AbstractTestLog here, UnicodeSet set1, UnicodeSet set2) { in verifySetsIdentical() argument 139 if (set1.equals(set2)) return true; in verifySetsIdentical() 142 here.errln(new UnicodeSet(set1).removeAll(set2).toPattern(true)); in verifySetsIdentical() 144 here.errln(new UnicodeSet(set2).removeAll(set1).toPattern(true)); in verifySetsIdentical()
|
/external/opencv3/modules/calib3d/test/ |
D | test_cornerssubpix.cpp | 65 int calcDistance(const vector<Point2f>& set1, const vector<Point2f>& set2, double& mean_dist) in calcDistance() argument 67 if(set1.size() != set2.size()) in calcDistance() 79 for(int j = 0; j < (int)set2.size(); j++) in calcDistance() 81 double dist = norm(set1[i] - set2[j]); in calcDistance()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | TestBoilerplate.java | 139 …public static boolean verifySetsIdentical(AbstractTestLog here, UnicodeSet set1, UnicodeSet set2) { in verifySetsIdentical() argument 140 if (set1.equals(set2)) return true; in verifySetsIdentical() 143 here.errln(new UnicodeSet(set1).removeAll(set2).toPattern(true)); in verifySetsIdentical() 145 here.errln(new UnicodeSet(set2).removeAll(set1).toPattern(true)); in verifySetsIdentical()
|
/external/icu/icu4c/source/common/ |
D | uset.cpp | 179 uset_containsAll(const USet* set1, const USet* set2) { in uset_containsAll() argument 180 return ((const UnicodeSet*) set1)->UnicodeSet::containsAll(* (const UnicodeSet*) set2); in uset_containsAll() 191 uset_containsNone(const USet* set1, const USet* set2) { in uset_containsNone() argument 192 return ((const UnicodeSet*) set1)->UnicodeSet::containsNone(* (const UnicodeSet*) set2); in uset_containsNone() 196 uset_containsSome(const USet* set1, const USet* set2) { in uset_containsSome() argument 197 return ((const UnicodeSet*) set1)->UnicodeSet::containsSome(* (const UnicodeSet*) set2); in uset_containsSome() 221 uset_equals(const USet* set1, const USet* set2) { in uset_equals() argument 222 return *(const UnicodeSet*)set1 == *(const UnicodeSet*)set2; in uset_equals()
|
/external/icu/icu4c/source/common/unicode/ |
D | uset.h | 875 uset_containsAll(const USet* set1, const USet* set2); 899 uset_containsNone(const USet* set1, const USet* set2); 910 uset_containsSome(const USet* set1, const USet* set2); 1007 uset_equals(const USet* set1, const USet* set2);
|