/foundation/ability/dmsfwk/services/dtbschedmgr/src/continue/ |
H A D | dsched_continue_event.cpp | 35 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 36 if (rootValue == nullptr) { in Marshal() 39 cJSON_AddNumberToObject(rootValue, "Version", version_); in Marshal() 40 cJSON_AddNumberToObject(rootValue, "ServiceType", serviceType_); in Marshal() 41 cJSON_AddNumberToObject(rootValue, "SubServiceType", subServiceType_); in Marshal() 42 cJSON_AddNumberToObject(rootValue, "Command", command_); in Marshal() 44 cJSON_AddStringToObject(rootValue, "SrcDeviceId", srcDeviceId_.c_str()); in Marshal() 45 cJSON_AddStringToObject(rootValue, "SrcBundleName", srcBundleName_.c_str()); in Marshal() 46 cJSON_AddStringToObject(rootValue, "SrcDeveloperId", srcDeveloperId_.c_str()); in Marshal() 47 cJSON_AddStringToObject(rootValue, "DstDeviceI in Marshal() 69 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local 120 cJSON *rootValue = cJSON_CreateObject(); Marshal() local 156 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local 210 cJSON *rootValue = cJSON_CreateObject(); Marshal() local 353 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local 409 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); UnmarshalParcel() local 463 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); UnmarshalCallerInfo() local 515 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); UnmarshalCallerInfoExtra() local 563 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); UnmarshalAccountInfo() local 609 cJSON *rootValue = cJSON_CreateObject(); Marshal() local 639 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local 684 cJSON *rootValue = cJSON_CreateObject(); Marshal() local 711 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dsched_continue_manager.cpp | 613 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in HandleDataRecv() local 614 if (rootValue == nullptr) { in HandleDataRecv() 618 cJSON *baseCmd = cJSON_GetObjectItemCaseSensitive(rootValue, "BaseCmd"); in HandleDataRecv() 620 cJSON_Delete(rootValue); in HandleDataRecv() 626 cJSON_Delete(rootValue); in HandleDataRecv()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/ |
H A D | dcamera_metadata_setting_cmd.cpp | 27 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 28 if (rootValue == nullptr) { in Marshal() 31 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 32 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 33 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 37 cJSON_Delete(rootValue); in Marshal() 40 cJSON_AddItemToObject(rootValue, "Value", settings); in Marshal() 43 cJSON_Delete(rootValue); in Marshal() 48 cJSON_Delete(rootValue); in Marshal() 56 char *data = cJSON_Print(rootValue); in Marshal() 69 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dcamera_event_cmd.cpp | 29 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 30 if (rootValue == nullptr) { in Marshal() 33 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 34 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 35 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 39 cJSON_Delete(rootValue); in Marshal() 45 cJSON_AddItemToObject(rootValue, "Value", event); in Marshal() 47 char *data = cJSON_Print(rootValue); in Marshal() 49 cJSON_Delete(rootValue); in Marshal() 53 cJSON_Delete(rootValue); in Marshal() 60 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dcamera_info_cmd.cpp | 30 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 31 if (rootValue == nullptr) { in Marshal() 34 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 35 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 36 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 40 cJSON_Delete(rootValue); in Marshal() 44 cJSON_AddItemToObject(rootValue, "Value", info); in Marshal() 46 char *data = cJSON_Print(rootValue); in Marshal() 48 cJSON_Delete(rootValue); in Marshal() 52 cJSON_Delete(rootValue); in Marshal() 59 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dcamera_open_info_cmd.cpp | 30 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 31 if (rootValue == nullptr) { in Marshal() 34 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 35 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 36 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 40 cJSON_Delete(rootValue); in Marshal() 44 cJSON_AddItemToObject(rootValue, "Value", openInfo); in Marshal() 46 char *data = cJSON_Print(rootValue); in Marshal() 48 cJSON_Delete(rootValue); in Marshal() 52 cJSON_Delete(rootValue); in Marshal() 59 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dcamera_channel_info_cmd.cpp | 26 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 27 if (rootValue == nullptr) { in Marshal() 30 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 31 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 32 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 36 cJSON_Delete(rootValue); in Marshal() 40 cJSON_AddItemToObject(rootValue, "Value", channelInfo); in Marshal() 44 cJSON_Delete(rootValue); in Marshal() 51 cJSON_Delete(rootValue); in Marshal() 59 char *data = cJSON_Print(rootValue); in Marshal() 72 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local [all...] |
H A D | dcamera_capture_info_cmd.cpp | 26 cJSON *rootValue = cJSON_CreateObject(); in Marshal() local 27 if (rootValue == nullptr) { in Marshal() 30 cJSON_AddStringToObject(rootValue, "Type", type_.c_str()); in Marshal() 31 cJSON_AddStringToObject(rootValue, "dhId", dhId_.c_str()); in Marshal() 32 cJSON_AddStringToObject(rootValue, "Command", command_.c_str()); in Marshal() 35 CHECK_NULL_FREE_RETURN(captureInfos, DCAMERA_BAD_VALUE, rootValue); in Marshal() 36 cJSON_AddItemToObject(rootValue, "Value", captureInfos); in Marshal() 40 cJSON_Delete(rootValue); in Marshal() 44 CHECK_NULL_FREE_RETURN(captureInfo, DCAMERA_BAD_VALUE, rootValue); in Marshal() 54 CHECK_NULL_FREE_RETURN(captureSettings, DCAMERA_BAD_VALUE, rootValue); in Marshal() 80 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); Unmarshal() local 117 UmarshalValue(cJSON *rootValue) UmarshalValue() argument [all...] |
H A D | dcamera_sink_frame_info.cpp | 49 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in Unmarshal() local 50 if (rootValue == nullptr) { in Unmarshal() 53 cJSON *type = cJSON_GetObjectItemCaseSensitive(rootValue, FRAME_INFO_TYPE.c_str()); in Unmarshal() 55 cJSON_Delete(rootValue); in Unmarshal() 59 cJSON *index = cJSON_GetObjectItemCaseSensitive(rootValue, FRAME_INFO_INDEX.c_str()); in Unmarshal() 61 cJSON_Delete(rootValue); in Unmarshal() 65 cJSON *pts = cJSON_GetObjectItemCaseSensitive(rootValue, FRAME_INFO_PTS.c_str()); in Unmarshal() 67 cJSON_Delete(rootValue); in Unmarshal() 71 cJSON *startEncode = cJSON_GetObjectItemCaseSensitive(rootValue, FRAME_INFO_START_ENCODE.c_str()); in Unmarshal() 73 cJSON_Delete(rootValue); in Unmarshal() [all...] |
/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_low_latency.cpp | 41 cJSON *rootValue = cJSON_CreateObject(); in EnableLowLatency() local 42 if (rootValue == nullptr) { in EnableLowLatency() 45 cJSON_AddItemToObject(rootValue, DH_TYPE.c_str(), cJSON_CreateNumber(static_cast<uint32_t>(DHType::CAMERA))); in EnableLowLatency() 46 cJSON_AddItemToObject(rootValue, LOW_LATENCY_ENABLE.c_str(), cJSON_CreateBool(true)); in EnableLowLatency() 47 char *jsonstr = cJSON_Print(rootValue); in EnableLowLatency() 49 cJSON_Delete(rootValue); in EnableLowLatency() 55 cJSON_Delete(rootValue); in EnableLowLatency() 77 cJSON *rootValue = cJSON_CreateObject(); in DisableLowLatency() local 78 if (rootValue == nullptr) { in DisableLowLatency() 81 cJSON_AddItemToObject(rootValue, DH_TYP in DisableLowLatency() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | flatbuffer_schema.cpp | 305 int DoVerifyBeforeExtract(const flatbuffers::Table &rootValue, const reflection::Field &fieldInfo, in DoVerifyBeforeExtract() argument 315 verifyResult = rootValue.VerifyField<int8_t>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 319 verifyResult = rootValue.VerifyField<int16_t>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 323 verifyResult = rootValue.VerifyField<int32_t>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 327 verifyResult = rootValue.VerifyField<uint64_t>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 330 verifyResult = rootValue.VerifyField<float>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 333 verifyResult = rootValue.VerifyField<double>(verifier, fieldInfo.offset()); in DoVerifyBeforeExtract() 336 verifyResult = rootValue.VerifyField<flatbuffers::uoffset_t>(verifier, fieldInfo.offset()) && in DoVerifyBeforeExtract() 337 verifier.VerifyString(flatbuffers::GetFieldS(rootValue, fieldInfo)); // VerifyString can accept null in DoVerifyBeforeExtract() 345 inline std::string DoExtractString(const flatbuffers::Table &rootValue, cons argument 354 DoExtractValue(const flatbuffers::Table &rootValue, const reflection::Field &fieldInfo, TypeValue &outExtract) DoExtractValue() argument 401 ExtractFlatBufferValueFinal(const flatbuffers::Table &rootValue, const reflection::Field &fieldInfo, const flatbuffers::Verifier &verifier, TypeValue &outExtract) ExtractFlatBufferValueFinal() argument 457 auto rootValue = flatbuffers::GetAnyRoot(valueRealBegin); ExtractFlatBufferValue() local [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.cpp | 132 cJSON *rootValue = cJSON_CreateObject(); in StopCapture() local 133 if (rootValue == nullptr) { in StopCapture() 136 cJSON_AddStringToObject(rootValue, "Command", DCAMERA_PROTOCOL_CMD_STOP_CAPTURE.c_str()); in StopCapture() 137 char *data = cJSON_Print(rootValue); in StopCapture() 139 cJSON_Delete(rootValue); in StopCapture() 143 cJSON_Delete(rootValue); in StopCapture() 497 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in HandleReceivedData() local 498 if (rootValue == nullptr) { in HandleReceivedData() 501 cJSON *comvalue = cJSON_GetObjectItemCaseSensitive(rootValue, "Command"); in HandleReceivedData() 503 cJSON_Delete(rootValue); in HandleReceivedData() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include/ |
H A D | dcamera_capture_info_cmd.h | 51 int32_t UmarshalValue(cJSON* rootValue);
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/ |
H A D | cast_session_impl.cpp | 884 bool CheckJsonMemberType(Json::Value rootValue) in CheckJsonMemberType() argument 886 if (!rootValue.isMember(KEY_BUNDLE_NAME) || !rootValue[KEY_BUNDLE_NAME].isString()) { in CheckJsonMemberType() 890 if (!rootValue.isMember(KEY_PID) || !rootValue[KEY_PID].isInt()) { in CheckJsonMemberType() 894 if (!rootValue.isMember(KEY_APP_MIN_COMPATIBLE_VERSION) || in CheckJsonMemberType() 895 !rootValue[KEY_APP_MIN_COMPATIBLE_VERSION].isInt()) { in CheckJsonMemberType() 899 if (!rootValue.isMember(KEY_APP_TARGET_VERSION) || !rootValue[KEY_APP_TARGET_VERSION].isInt()) { in CheckJsonMemberType()
|
/foundation/CastEngine/castengine_cast_plus_stream/src/ |
H A D | cast_session_impl.cpp | 884 bool CheckJsonMemberType(Json::Value rootValue) in CheckJsonMemberType() argument 886 if (!rootValue.isMember(KEY_BUNDLE_NAME) || !rootValue[KEY_BUNDLE_NAME].isString()) { in CheckJsonMemberType() 890 if (!rootValue.isMember(KEY_PID) || !rootValue[KEY_PID].isInt()) { in CheckJsonMemberType() 894 if (!rootValue.isMember(KEY_APP_MIN_COMPATIBLE_VERSION) || in CheckJsonMemberType() 895 !rootValue[KEY_APP_MIN_COMPATIBLE_VERSION].isInt()) { in CheckJsonMemberType() 899 if (!rootValue.isMember(KEY_APP_TARGET_VERSION) || !rootValue[KEY_APP_TARGET_VERSION].isInt()) { in CheckJsonMemberType()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcameramgr/ |
H A D | dcamera_sink_controller.cpp | 669 cJSON *rootValue = cJSON_Parse(jsonStr.c_str()); in HandleReceivedData() local 670 if (rootValue == nullptr) { in HandleReceivedData() 673 cJSON *comvalue = cJSON_GetObjectItemCaseSensitive(rootValue, "Command"); in HandleReceivedData() 675 cJSON_Delete(rootValue); in HandleReceivedData() 680 cJSON_Delete(rootValue); in HandleReceivedData()
|