Home
last modified time | relevance | path

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

/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()
98 if (strcmp(this->GetDeviceName().c_str(), metaCapInfo.GetDeviceName().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()
114 if (strcmp(this->GetDHSubtype().c_str(), metaCapInfo.GetDHSubtype().c_str()) != 0) { in Compare()
118 if (strcmp(this->GetUdidHash().c_str(), metaCapInfo.GetUdidHash().c_str()) != 0) { in Compare()
122 if (strcmp(this->GetSinkVersion().c_str(), metaCapInfo in Compare()
147 ToJson(cJSON *jsonObject, const MetaCapabilityInfo &metaCapInfo) ToJson() argument
164 FromJson(const cJSON *jsonObject, MetaCapabilityInfo &metaCapInfo) FromJson() argument
[all...]
H A Dmeta_info_manager.cpp129 for (auto &metaCapInfo : metaCapInfos) { in AddMetaCapInfos()
130 if (metaCapInfo == nullptr) { in AddMetaCapInfos()
133 key = metaCapInfo->GetKey(); in AddMetaCapInfos()
134 globalMetaInfoMap_[key] = metaCapInfo; in AddMetaCapInfos()
135 if (dbAdapterPtr_->GetDataByKey(key, data) == DH_FWK_SUCCESS && data == metaCapInfo->ToJsonString()) { in AddMetaCapInfos()
136 DHLOGI("this record is exist, Key: %{public}s", metaCapInfo->GetAnonymousKey().c_str()); in AddMetaCapInfos()
139 DHLOGI("AddMetaCapability, Key: %{public}s", metaCapInfo->GetAnonymousKey().c_str()); in AddMetaCapInfos()
141 values.push_back(metaCapInfo->ToJsonString()); in AddMetaCapInfos()
175 std::shared_ptr<MetaCapabilityInfo> metaCapInfo; in SyncMetaInfoFromDB() local
176 if (GetMetaCapByValue(data, metaCapInfo) ! in SyncMetaInfoFromDB()
206 std::shared_ptr<MetaCapabilityInfo> metaCapInfo; SyncRemoteMetaInfos() local
243 std::shared_ptr<MetaCapabilityInfo> metaCapInfo; GetDataByKeyPrefix() local
[all...]
/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);
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/resourcemanager/src/
H A Dresource_manager_test.cpp1152 MetaCapabilityInfo metaCapInfo; in HWTEST_F() local
1173 FromJson(jsonObj, metaCapInfo); in HWTEST_F()

Completed in 4 milliseconds