Home
last modified time | relevance | path

Searched refs:comparer (Results 1 – 15 of 15) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DProtobufEqualityComparersTest.cs100 …private static void ValidateEqualityComparer<T>(EqualityComparer<T> comparer, IEnumerable<T> value… in ValidateEqualityComparer() argument
110 Assert.IsTrue(comparer.Equals(array[i], array[j]), in ValidateEqualityComparer()
115 Assert.IsFalse(comparer.Equals(array[i], array[j]), in ValidateEqualityComparer()
117 … Assert.AreNotEqual(comparer.GetHashCode(array[i]), comparer.GetHashCode(array[j]), in ValidateEqualityComparer()
/external/icu/icu4c/source/common/
Duvector.cpp37 comparer(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 comparer(0) in UVector()
57 comparer(c) in UVector()
67 comparer(c) in UVector()
116 if (comparer != NULL) { in operator ==()
119 if (!(*comparer)(elements[i], other.elements[i])) { in operator ==()
271 if (comparer == 0) { in equals()
281 if (!(*comparer)(key, elements[i])) { in equals()
306 if (comparer != 0) { in indexOf()
308 if ((*comparer)(key, elements[i])) { in indexOf()
[all …]
Duvector.h92 UElementsAreEqual *comparer; variable
/external/protobuf/csharp/src/Google.Protobuf/Collections/
DLists.cs61 IEqualityComparer<T> comparer = EqualityComparer<T>.Default; in Equals()
64 if (!comparer.Equals(left[i], right[i])) in Equals()
DRepeatedField.cs442 EqualityComparer<T> comparer = EqualityComparer; in Equals()
445 if (!comparer.Equals(array[i], other.array[i])) in Equals()
462 EqualityComparer<T> comparer = EqualityComparer; in IndexOf()
465 if (comparer.Equals(array[i], item)) in IndexOf()
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
Drotate_copy.pass.cpp101 auto comparer = comparator<T, Iterator1, Iterator2>(); in operator ()() local
102 bool check = std::equal(data_m, data_e, actual_b, comparer); in operator ()()
103 … check && std::equal(data_b, data_m, std::next(actual_b, std::distance(data_m, data_e)), comparer); in operator ()()
/external/mesa3d/src/gallium/tools/trace/
Ddiff_state.py190 self.comparer = Comparer(ignore_added = ignore_added)
193 if self.comparer.visit(a, b):
203 if not self.comparer.ignore_added:
212 if not self.comparer.visit(ae, be):
235 if self.comparer.visit(ae, be):
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DEnumerableExtensions.cs92 …ontains<TSource>(IEnumerable<TSource> source, TSource value, IEqualityComparer<TSource> comparer) { in Contains() argument
95 if (comparer == null) in Contains()
96 comparer = EqualityComparer<TSource>.Default; in Contains()
99 if (comparer.Equals(element, value)) in Contains()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DUCAConformanceTest.java43comparer = new UTF16.StringComparator(true, false, UTF16.StringComparator.FOLD_CASE_DEFAULT); in init()
48 private UTF16.StringComparator comparer; field in UCAConformanceTest
247 res = comparer.compare(oldB, buffer); in conformanceTest()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DUCAConformanceTest.java46comparer = new UTF16.StringComparator(true, false, UTF16.StringComparator.FOLD_CASE_DEFAULT); in init()
51 private UTF16.StringComparator comparer; field in UCAConformanceTest
250 res = comparer.compare(oldB, buffer); in conformanceTest()
/external/perfetto/src/base/
Dcircular_queue_unittest.cc275 auto comparer = [](const Checker& lhs, const Checker& rhs) { in TEST() local
278 ASSERT_TRUE(std::is_sorted(q1.begin(), q1.end(), comparer)); in TEST()
279 ASSERT_TRUE(std::is_sorted(q2.begin(), q2.end(), comparer)); in TEST()
/external/perfetto/src/kallsyms/
Dkernel_symbol_map.cc307 auto comparer = [](TokenMapPtr a, TokenMapPtr b) { in Parse() local
311 std::sort(tokens_by_freq.begin(), tokens_by_freq.end(), comparer); in Parse()
/external/icu/libicu/cts_headers/
Duvector.h92 UElementsAreEqual *comparer; variable
/external/deqp/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp5999 …::vector<deUint64>& testSamples, const std::vector<deUint64>& allSamples, const Comparer& comparer) in sumOfRanks() argument
6006 …int)(std::lower_bound(allSamples.begin(), allSamples.end(), testSample, comparer) - allSamples.beg… in sumOfRanks()
6007 …int)(std::upper_bound(allSamples.begin(), allSamples.end(), testSample, comparer) - allSamples.beg… in sumOfRanks()
6019 … orderedObservationsA, const std::vector<deUint64>& orderedObservationsB, const Comparer& comparer) in distributionCompare() argument
6032 const float R1 = sumOfRanks(orderedObservationsA, allSamples, comparer); in distributionCompare()
6078 ThresholdComparer<deUint64> comparer; in findStabilizationSample() local
6080 comparer.relativeThreshold = 0.15f; // 15% in findStabilizationSample()
6081 comparer.absoluteThreshold = 100; // (us), assumed sampling precision in findStabilizationSample()
6108 …ibutionCompare(sampleObservations[sampleNdx], sampleObservations[cmpTargetDistribution], comparer); in findStabilizationSample()
/external/kotlinx.coroutines/benchmarks/src/jmh/resources/
Dospd.txt.gz