/external/v8/test/cctest/ |
D | test-unique.cc | 268 UniqueSet<T>* set1, UniqueSet<T>* set2, bool expected) { in CHECK_SETS() argument 269 CHECK(set1->Equals(set1)); in CHECK_SETS() 271 CHECK(expected == set1->Equals(set2)); in CHECK_SETS() 272 CHECK(expected == set2->Equals(set1)); in CHECK_SETS() 283 UniqueSet<String>* set1 = new(&zone) UniqueSet<String>(); in TEST() local 286 CHECK_SETS(set1, set2, true); in TEST() 288 set1->Add(A, &zone); in TEST() 290 CHECK_SETS(set1, set2, false); in TEST() 294 CHECK_SETS(set1, set2, true); in TEST() 296 set1->Add(B, &zone); in TEST() [all …]
|
/external/skia/tests/ |
D | BitSetTest.cpp | 17 SkBitSet set1(65536); in DEF_TEST() local 18 REPORTER_ASSERT(reporter, set0 == set1); in DEF_TEST() 37 set1.setBit(12345, true); in DEF_TEST() 38 set1.orBits(set0); in DEF_TEST() 40 REPORTER_ASSERT(reporter, set1.isBitSet(12345) == true); in DEF_TEST() 41 REPORTER_ASSERT(reporter, set1.isBitSet(22) == false); in DEF_TEST() 42 REPORTER_ASSERT(reporter, set1.isBitSet(24) == true); in DEF_TEST() 44 REPORTER_ASSERT(reporter, set1 != set0); in DEF_TEST() 46 set1.clearAll(); in DEF_TEST() 48 REPORTER_ASSERT(reporter, set1.isBitSet(12345) == false); in DEF_TEST() [all …]
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | cpu_set_unittest.cc | 120 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/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 132 if (set1.type() != CV_32F) in computeDistance() 133 set1.convertTo(set1, CV_32F); in computeDistance() 136 CV_Assert((set1.channels()==2) && (set1.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 | 41 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/ |
D | tr.c | 36 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/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
D | SetTagTest.java | 33 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/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() 82 if (rank_[set2] < rank_[set1]) in mergeSets() 84 parent[set2] = set1; in mergeSets() 85 size[set1] += size[set2]; in mergeSets() 86 return set1; in mergeSets() 88 parent[set1] = set2; in mergeSets() 90 size[set2] += size[set1]; in mergeSets()
|
/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 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/testng/src/test/java/test/asserttests/ |
D | AssertTest.java | 60 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 1492 UnicodeSet set1 = new UnicodeSet("[a-b d-g {ch} {zh}]").freeze(); in TestGenerics() local 1503 for (UnicodeSetIterator it = new UnicodeSetIterator(set1); it.next();) { in TestGenerics() 1508 for (String s : set1) { in TestGenerics() 1515 set1.addAllTo(list1); in TestGenerics() 1518 list1 = set1.addAllTo(new ArrayList<String>()); in TestGenerics() 1525 TreeSet sorted1 = set1.addAllTo(new TreeSet<String>()); in TestGenerics() 1530 assertTrue("containsAll", set1.containsAll(list1)); in TestGenerics() 1531 assertTrue("containsAll", set1.containsAll(sorted1)); in TestGenerics() 1532 assertTrue("containsAll", set1.containsAll(list2)); in TestGenerics() 1533 assertTrue("containsAll", set1.containsAll(sorted2)); in TestGenerics() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 1496 UnicodeSet set1 = new UnicodeSet("[a-b d-g {ch} {zh}]").freeze(); in TestGenerics() local 1507 for (UnicodeSetIterator it = new UnicodeSetIterator(set1); it.next();) { in TestGenerics() 1512 for (String s : set1) { in TestGenerics() 1519 set1.addAllTo(list1); in TestGenerics() 1522 list1 = set1.addAllTo(new ArrayList<String>()); in TestGenerics() 1529 TreeSet sorted1 = set1.addAllTo(new TreeSet<String>()); in TestGenerics() 1534 assertTrue("containsAll", set1.containsAll(list1)); in TestGenerics() 1535 assertTrue("containsAll", set1.containsAll(sorted1)); in TestGenerics() 1536 assertTrue("containsAll", set1.containsAll(list2)); in TestGenerics() 1537 assertTrue("containsAll", set1.containsAll(sorted2)); in TestGenerics() [all …]
|
/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() 168 if (rank[set2] < rank[set1]) in merge() 170 parent[set2] = set1; in merge() 171 size[set1] += size[set2]; in merge() 172 return set1; in merge() 174 parent[set1] = set2; in merge() [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 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/eigen/bench/ |
D | sparse_randomsetter.cpp | 51 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/ |
D | RecursiveSetTest.java | 29 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/smali/util/src/main/java/org/jf/util/ |
D | CollectionUtils.java | 192 public static <T extends Comparable<T>> int compareAsSet(@Nonnull Collection<? extends T> set1, 194 int res = Ints.compare(set1.size(), set2.size()); 197 SortedSet<? extends T> sortedSet1 = toNaturalSortedSet(set1); 201 for (T element1: set1) { 214 SortedSet<? extends T> set1 = toSortedSet(elementComparator, list1); 218 for (T element1: set1) {
|
/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() 74 for(size_t i = 0; i < set1.size(); i++) in calcDistance() 81 double dist = norm(set1[i] - set2[j]); in calcDistance() 107 mean_dist = sqrt(sum_dist/set1.size()); in calcDistance()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | BagFormatter.java | 78 UnicodeSet set1, in showSetDifferences() argument 83 showSetDifferences(new PrintWriter(result),name1,set1,name2,set2); in showSetDifferences() 90 Collection set1, in showSetDifferences() argument 95 showSetDifferences(new PrintWriter(result), name1, set1, name2, set2); in showSetDifferences() 103 UnicodeSet set1, in showSetDifferences() argument 106 showSetDifferences(pw, name1, set1, name2, set2, -1); in showSetDifferences() 118 UnicodeSet set1, 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 | 79 UnicodeSet set1, in showSetDifferences() argument 84 showSetDifferences(new PrintWriter(result),name1,set1,name2,set2); in showSetDifferences() 91 Collection set1, in showSetDifferences() argument 96 showSetDifferences(new PrintWriter(result), name1, set1, name2, set2); in showSetDifferences() 104 UnicodeSet set1, in showSetDifferences() argument 107 showSetDifferences(pw, name1, set1, name2, set2, -1); in showSetDifferences() 119 UnicodeSet set1, 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/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/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/data/misc/ |
D | plurals.txt | 13 am{"set1"} 15 as{"set1"} 25 bn{"set1"} 49 fa{"set1"} 61 gu{"set1"} 67 hi{"set1"} 97 kn{"set1"} 120 mr{"set1"} 210 zu{"set1"} 307 set1{
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/ |
D | LZMAEncoderNormal.java | 181 opts[1].set1(literalPrice, 0, -1); in getNextSymbol() 193 opts[1].set1(shortRepPrice, 0, 0); in getNextSymbol() 233 opts[repLen].set1(price, 0, rep); in getNextSymbol() 255 opts[len].set1(price, 0, dist + REPS); in getNextSymbol() 384 opts[optCur + 1].set1(literalPrice, optCur, -1); 395 opts[optCur + 1].set1(shortRepPrice, optCur, 0); 447 opts[optCur + i].set1(price, optCur, rep); 525 opts[optCur + len].set1(matchAndLenPrice,
|