Home
last modified time | relevance | path

Searched refs:msgJson (Results 1 - 5 of 5) sorted by relevance

/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/
H A Dav_trans_message.cpp42 cJSON *msgJson = cJSON_CreateObject(); in MarshalMessage() local
43 if (msgJson == nullptr) { in MarshalMessage()
46 cJSON_AddNumberToObject(msgJson, KEY_TYPE.c_str(), type_); in MarshalMessage()
47 cJSON_AddStringToObject(msgJson, KEY_CONTENT.c_str(), content_.c_str()); in MarshalMessage()
48 cJSON_AddStringToObject(msgJson, KEY_DST_DEVID.c_str(), dstDevId_.c_str()); in MarshalMessage()
49 char *data = cJSON_PrintUnformatted(msgJson); in MarshalMessage()
51 cJSON_Delete(msgJson); in MarshalMessage()
56 cJSON_Delete(msgJson); in MarshalMessage()
88 bool AVTransMessage::IsUInt32(const cJSON *msgJson, const std::string &key) in IsUInt32() argument
90 cJSON *keyObj = cJSON_GetObjectItemCaseSensitive(msgJson, ke in IsUInt32()
95 IsString(const cJSON *msgJson, const std::string &key) IsString() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/
H A Dav_trans_message.h35 bool IsUInt32(const cJSON *msgJson, const std::string &key);
36 bool IsString(const cJSON *msgJson, const std::string &key);
/foundation/distributedhardware/device_manager/services/service/include/relationshipsyncmgr/
H A Drelationship_sync_mgr.h60 bool FromJson(const std::string &msgJson);
67 RelationShipChangeMsg ParseTrustRelationShipChange(const std::string &msgJson);
/foundation/distributedhardware/device_manager/services/service/src/relationshipsyncmgr/
H A Drelationship_sync_mgr.cpp338 bool RelationShipChangeMsg::FromJson(const std::string &msgJson) in FromJson() argument
340 cJSON *msgObj = cJSON_Parse(msgJson.c_str()); in FromJson()
382 RelationShipChangeMsg ReleationShipSyncMgr::ParseTrustRelationShipChange(const std::string &msgJson) in ParseTrustRelationShipChange() argument
385 if (!msgObj.FromJson(msgJson)) { in ParseTrustRelationShipChange()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/daudio_input_test/
H A Ddaudio_input_test.cpp424 cJSON *msgJson = cJSON_CreateObject(); in HWTEST_F() local
425 cJSON_AddStringToObject(msgJson, KEY_TYPE.c_str(), "type_test"); in HWTEST_F()
426 cJSON_AddNumberToObject(msgJson, KEY_CONTENT.c_str(), 1); in HWTEST_F()
427 char* cjson = cJSON_PrintUnformatted(msgJson); in HWTEST_F()
432 cJSON_Delete(msgJson); in HWTEST_F()

Completed in 3 milliseconds