Home
last modified time | relevance | path

Searched refs:metaCapInfo (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dmeta_capability_info.cpp88 bool MetaCapabilityInfo::Compare(const MetaCapabilityInfo& metaCapInfo) in Compare() argument
90 if (strcmp(this->GetDeviceId().c_str(), metaCapInfo.GetDeviceId().c_str()) != 0) { in Compare()
94 if (strcmp(this->GetDHId().c_str(), metaCapInfo.GetDHId().c_str()) != 0) { in Compare()
102 if (this->GetDeviceType() != metaCapInfo.GetDeviceType()) { in Compare()
106 if (this->GetDHType() != metaCapInfo.GetDHType()) { in Compare()
110 if (strcmp(this->GetDHAttrs().c_str(), metaCapInfo.GetDHAttrs().c_str()) != 0) { in Compare()
118 if (strcmp(this->GetUdidHash().c_str(), metaCapInfo.GetUdidHash().c_str()) != 0) { in Compare()
147 void ToJson(cJSON *jsonObject, const MetaCapabilityInfo &metaCapInfo) in ToJson() argument
153 cJSON_AddStringToObject(jsonObject, DH_ID.c_str(), metaCapInfo.GetDHId().c_str()); in ToJson()
164 void FromJson(const cJSON *jsonObject, MetaCapabilityInfo &metaCapInfo) in FromJson() argument
[all …]
H A Dmeta_info_manager.cpp129 for (auto &metaCapInfo : metaCapInfos) { in AddMetaCapInfos() local
130 if (metaCapInfo == nullptr) { in AddMetaCapInfos()
133 key = metaCapInfo->GetKey(); in AddMetaCapInfos()
134 globalMetaInfoMap_[key] = metaCapInfo; in AddMetaCapInfos()
141 values.push_back(metaCapInfo->ToJsonString()); in AddMetaCapInfos()
175 std::shared_ptr<MetaCapabilityInfo> metaCapInfo; in SyncMetaInfoFromDB() local
180 globalMetaInfoMap_[metaCapInfo->GetKey()] = metaCapInfo; in SyncMetaInfoFromDB()
217 globalMetaInfoMap_[metaCapInfo->GetKey()] = metaCapInfo; in SyncRemoteMetaInfos()
248 metaCapMap[metaCapInfo->GetKey()] = metaCapInfo; in GetDataByKeyPrefix()
296 for (auto &metaCapInfo : globalMetaInfoMap_) { in GetMetaCapInfosByUdidHash() local
[all …]
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/resourcemanager/
H A Dmeta_capability_info.h50 bool Compare(const MetaCapabilityInfo& metaCapInfo);
59 void ToJson(cJSON *jsonObject, const MetaCapabilityInfo &metaCapInfo);
60 void FromJson(const cJSON *jsonObject, MetaCapabilityInfo &metaCapInfo);
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/src/
H A Dresource_manager_test.cpp1141 MetaCapabilityInfo metaCapInfo; variable
1162 FromJson(jsonObj, metaCapInfo);