Home
last modified time | relevance | path

Searched refs:compVer (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dversion_info.cpp82 cJSON *compVer = cJSON_CreateObject(); in ToJson() local
83 if (compVer == NULL) { in ToJson()
88 cJSON_AddStringToObject(compVer, NAME.c_str(), compVersion.second.name.c_str()); in ToJson()
89 cJSON_AddNumberToObject(compVer, TYPE.c_str(), (double)compVersion.second.dhType); in ToJson()
93 cJSON_AddItemToArray(compVers, compVer); in ToJson()
98 void FromJson(const cJSON *jsonObject, CompVersion &compVer) in FromJson() argument
105 compVer.name = cJSON_GetObjectItem(jsonObject, NAME.c_str())->valuestring; in FromJson()
118 compVer.sinkVersion = cJSON_GetObjectItem(jsonObject, SINK_VER.c_str())->valuestring; in FromJson()
136 const cJSON *compVer = cJSON_GetObjectItem(jsonObject, COMP_VER.c_str()); in FromJson() local
137 if (compVer != NULL) { in FromJson()
[all …]
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/
H A Dversioninfomanager_fuzzer.cpp50 CompVersion compVer; in VersioninfoManagerFuzzTest() local
51 compVer.dhType = dhTypeFuzz[data[0] % DH_TYPE_SIZE]; in VersioninfoManagerFuzzTest()
52 compVer.name = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
53 compVer.handlerVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
54 compVer.sourceVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
55 compVer.sinkVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
56 versionInfo.compVersions.insert(std::pair<DHType, CompVersion>(compVer.dhType, compVer)); in VersioninfoManagerFuzzTest()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/resourcemanager/
H A Dversion_info.h35 void FromJson(const cJSON *jsonObject, CompVersion &compVer);
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-ota-guide.md125 …<component compAddr="ota_tag" compId="27" resType="5" compType="0" compVer="1.0">./OTA.tag</compon…
126 …<component compAddr="config" compId="23" resType="5" compType="0" compVer="1.0">./config</componen…
127 …<component compAddr="bootloader" compId="24" resType="5" compType="0" compVer="1.0">./u-boot-xxxx.…
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-ota-guide.md125 …<component compAddr="ota_tag" compId="27" resType="5" compType="0" compVer="1.0">./OTA.tag</compon…
126 …<component compAddr="config" compId="23" resType="5" compType="0" compVer="1.0">./config</componen…
127 …<component compAddr="bootloader" compId="24" resType="5" compType="0" compVer="1.0">./u-boot-xxxx.…