Home
last modified time | relevance | path

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

12

/foundation/communication/ipc/interfaces/innerkits/rust/src/ipc/remote_obj/
Dcmp.rs17 use std::cmp::Ordering;
20 fn cmp(&self, other: &Self) -> Ordering { in cmp() method
43 Some(self.cmp(other)) in partial_cmp()
/foundation/communication/wifi/wifi/frameworks/native/src/
Dwifi_p2p_msg.cpp224 bool WifiP2pDevice::operator==(const WifiP2pDevice &cmp) const in operator ==()
226 return mDeviceAddress == cmp.GetDeviceAddress(); in operator ==()
229 bool WifiP2pDevice::operator!=(const WifiP2pDevice &cmp) const in operator !=()
231 return !operator==(cmp); in operator !=()
610 bool WifiP2pServiceRequest::operator==(const WifiP2pServiceRequest &cmp) const in operator ==()
612 return mProtocolType == cmp.GetProtocolType() && mQuery == cmp.GetQuery(); in operator ==()
689 bool WifiP2pServiceResponse::operator==(const WifiP2pServiceResponse &cmp) const in operator ==()
691 return mProtocolType == cmp.GetProtocolType() && mServiceStatus == cmp.GetServiceStatus() && in operator ==()
692 responseData == cmp.GetData(); in operator ==()
735 bool WifiP2pServiceInfo::operator==(const WifiP2pServiceInfo &cmp) const in operator ==()
[all …]
/foundation/communication/bluetooth_service/test/unittest/gatt/
Dgatt_descriptor_test.cpp88 bool cmp; variable
90 cmp = true;
92 cmp = false;
94 EXPECT_EQ(true, cmp);
Dgatt_service_test.cpp92 bool cmp; variable
94 cmp = true;
96 cmp = false;
98 EXPECT_EQ(true, cmp);
/foundation/communication/ipc/interfaces/innerkits/rust/src/ipc/
Dmod.rs25 use std::cmp::Ordering;
115 fn cmp(&self, other: &Self) -> Ordering { in cmp() method
116 self.0.as_object().cmp(&other.0.as_object()) in cmp()
Dremote_obj.rs37 pub mod cmp; module
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/
Dsingle_store_impl_get_top_test.cpp225 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona34c638a0102() variable
226 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
265 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona34c638a0202() variable
266 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
Dsingle_store_impl_test.cpp608 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona18d98190302() variable
609 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
645 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona18d98190402() variable
646 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
684 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona18d98190502() variable
685 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
1038 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona18d98190602() variable
1039 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
1073 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in __anona18d98190702() variable
1074 std::map<Key, Value, decltype(cmp)> dictionary(cmp);
[all …]
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
Dconfig.rs17 use std::cmp;
111 self.min = (cmp::min(self.max, min), Duration::from_secs(duration)); in min_speed()
131 self.max = cmp::max(self.min.0, max); in max_speed()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
Dlist.c121 void *ListForEachData(const List *list, const ListCmpFunc cmp, void *parameter) in ListForEachData() argument
124 ASSERT(cmp); in ListForEachData()
131 if (cmp(node->data, parameter)) { in ListForEachData()
/foundation/resourceschedule/ffrt/src/sync/
Dio_poller.h41 bool CasStrong(std::atomic<int> &a, int cmp, int exc);
Dio_poller.cpp92 bool IOPoller::CasStrong(std::atomic<int>& a, int cmp, int exc) in CasStrong() argument
94 return a.compare_exchange_strong(cmp, exc); in CasStrong()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
Dcloud_sync_utils.h42 bool EqualInMsLevel(const Timestamp cmp, const Timestamp beCmp);
Dcloud_sync_utils.cpp131 bool EqualInMsLevel(const Timestamp cmp, const Timestamp beCmp) in EqualInMsLevel() argument
133 return cmp / CloudDbConstant::TEN_THOUSAND == beCmp / CloudDbConstant::TEN_THOUSAND; in EqualInMsLevel()
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
Dbundle_active_form_record.h83 …static bool cmp(const BundleActiveFormRecord& formRecordA, const BundleActiveFormRecord& formRecor…
Dbundle_active_module_record.h32 …static bool cmp(const BundleActiveModuleRecord& moduleRecordA, const BundleActiveModuleRecord& mod…
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/include/
Dlist.h105 void *ListForEachData(const List *list, const ListCmpFunc cmp, void *parameter);
/foundation/communication/wifi/wifi/interfaces/inner_api/
Dwifi_p2p_msg.h208 bool operator==(const WifiP2pDevice &cmp) const;
209 bool operator!=(const WifiP2pDevice &cmp) const;
432 bool operator==(const WifiP2pServiceRequest &cmp) const;
464 bool operator==(const WifiP2pServiceResponse &cmp) const;
493 bool operator==(const WifiP2pServiceInfo &cmp) const;
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
Dskiplist.h98 FILLP_INT SkiplistInit(struct SkipList *list, funcSkiplistCompair cmp);
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
Dbundle_active_form_record.cpp82 bool BundleActiveFormRecord::cmp(const BundleActiveFormRecord& formRecordA, in cmp() function in OHOS::DeviceUsageStats::BundleActiveFormRecord
Dbundle_active_module_record.cpp127 bool BundleActiveModuleRecord::cmp(const BundleActiveModuleRecord& moduleRecordA, in cmp() function in OHOS::DeviceUsageStats::BundleActiveModuleRecord
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
Dskiplist.c56 FILLP_INT SkiplistInit(struct SkipList *list, funcSkiplistCompair cmp) in SkiplistInit() argument
73 list->funcCmp = cmp; in SkiplistInit()
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
Dcolor_extract.cpp174 bool ColorExtract::cmp(std::pair<uint32_t, uint32_t>&a, std::pair<uint32_t, uint32_t>&b) {return a.… in cmp() function in OHOS::Rosen::ColorExtract
310 sort(featureColors_.begin(), featureColors_.end(), cmp); in GetNFeatureColors()
/foundation/distributeddatamgr/kv_store/test/fuzztest/devicekvstore_fuzzer/
Ddevicekvstore_fuzzer.cpp371 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in RemoveDeviceDataFuzz() local
372 std::map<Key, Value, decltype(cmp)> dictionary(cmp); in RemoveDeviceDataFuzz()
/foundation/distributeddatamgr/kv_store/test/fuzztest/singlekvstore_fuzzer/
Dsinglekvstore_fuzzer.cpp337 auto cmp = [](const Key &entry, const Key &sentry) { return entry.Data() < sentry.Data(); }; in RemoveDeviceDataFuzz() local
338 std::map<Key, Value, decltype(cmp)> dictionary(cmp); in RemoveDeviceDataFuzz()

12