Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/data/
DNewestFirstComparator.java58 int cmp = compareDate(d1PrimaryDate, d2PrimaryDate); in compare() local
59 if (cmp == 0) { in compare()
60 cmp = compareDate(d1Data.getLastModifiedDate(), in compare()
63 if (cmp == 0) { in compare()
64 cmp = d1Data.getTitle().compareTo(d2Data.getTitle()); in compare()
66 return cmp; in compare()
/packages/providers/MediaProvider/jni/
Dnode-inl.h477 int cmp = strcasecmp(lhs->name_.c_str(), rhs->name_.c_str()); in operator() local
478 if (cmp != 0) { in operator()
479 return cmp < 0; in operator()
485 int cmp = strcasecmp(lhs->name_.c_str(), rhs.first.c_str()); in operator() local
486 if (cmp != 0) { in operator()
487 return cmp < 0; in operator()
493 int cmp = strcasecmp(lhs.first.c_str(), rhs->name_.c_str()); in operator() local
494 if (cmp != 0) { in operator()
495 return cmp < 0; in operator()
Dnode_test.cpp46 node::NodeCompare cmp; member in NodeTest
409 ASSERT_FALSE(cmp.operator()(node_a.get(), node_a.get())); in TEST_F()
410 ASSERT_FALSE(cmp.operator()(node_b.get(), node_b.get())); in TEST_F()
411 ASSERT_FALSE(cmp.operator()(node_c.get(), node_c.get())); in TEST_F()
414 ASSERT_TRUE(cmp.operator()(lhs_node, rhs_node)); in TEST_F()
415 ASSERT_FALSE(cmp.operator()(rhs_node, lhs_node)); in TEST_F()
423 ASSERT_TRUE(cmp.operator()(std::make_pair("A", 0), node_a.get())); in TEST_F()
424 ASSERT_TRUE(cmp.operator()(node_a.get(), in TEST_F()
426 ASSERT_TRUE(cmp.operator()(std::make_pair("A", std::numeric_limits<uintptr_t>::max()), in TEST_F()
/packages/apps/Car/Radio/src/com/android/car/radio/bands/
DRegionConfig.java64 Comparator<BandDescriptor> cmp = (BandDescriptor a, BandDescriptor b) -> in RegionConfig() local
66 Collections.sort(mAmConfig, cmp); in RegionConfig()
67 Collections.sort(mFmConfig, cmp); in RegionConfig()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstrtod.h211 int cmp = CheckWithinHalfULP(a.Value(), dInt, dExp); in StrtodBigInteger() local
212 if (cmp < 0) in StrtodBigInteger()
214 else if (cmp == 0) { in StrtodBigInteger()
Dbiginteger.h187 int cmp = Compare(rhs); in Difference() local
188 RAPIDJSON_ASSERT(cmp != 0); in Difference()
191 if (cmp < 0) { a = &rhs; b = this; ret = true; } in Difference()
/packages/modules/NeuralNetworks/common/
DTypes.cpp93 constexpr auto cmp = [](const auto& performance, auto type) { return performance.type < type; }; in lookup() local
94 const auto it = std::lower_bound(mSorted.begin(), mSorted.end(), operandType, cmp); in lookup()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/
DTestHarness.h249 const std::map<int, std::vector<T>>& test, std::function<void(T, T)> cmp) { in compare_() argument
250 for_each<T>(golden, test, [&cmp](int index, const std::vector<T>& g, const std::vector<T>& t) { in compare_()
254 cmp(g[i], t[i]); in compare_()
/packages/modules/NeuralNetworks/runtime/test/
DTestUnknownDimensions.cpp99 std::function<void(T, T)> cmp) { in CompareGeneric() argument
103 cmp(golden[i], test[i]); in CompareGeneric()
/packages/modules/Virtualization/authfs/src/
Dcommon.rs45 let chunk_data_size = std::cmp::min( in next()
Dfusefs.rs150 let size_to_read = std::cmp::min(size as usize, remaining as usize); in read_chunks()
/packages/modules/NeuralNetworks/tools/api/
Dgenerate_api.sh46 ${DRYRUN} cmp -s ${out} ${TEMPFILE} || {
/packages/modules/Virtualization/authfs/src/file/
Dlocal_file.rs17 use std::cmp::min;
Dremote_file.rs17 use std::cmp::min;
/packages/modules/NeuralNetworks/tools/test_generator/tests/
Dtest.py89 return filecmp.cmp(actual, expect, False)
/packages/modules/Virtualization/authfs/fd_server/src/
Dmain.rs30 use std::cmp::min;
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs262 let end = std::cmp::min(end, ofb.buf.len()); in read()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp336 const StatsCmp cmp) { in expectStatsFromGetResolverInfo() argument
375 switch (cmp) { in expectStatsFromGetResolverInfo()
389 ADD_FAILURE() << "Unknown comparator " << static_cast<int>(cmp); in expectStatsFromGetResolverInfo()
/packages/inputmethods/LatinIME/dictionaries/
Dfi_wordlist.combined.gz