Home
last modified time | relevance | path

Searched refs:valueJson (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/
H A Ddcamera_event_cmd.cpp76 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(rootValue, "Value"); in Unmarshal() local
77 if (valueJson == nullptr || !cJSON_IsObject(valueJson)) { in Unmarshal()
81 cJSON *eventType = cJSON_GetObjectItemCaseSensitive(valueJson, "EventType"); in Unmarshal()
88 cJSON *eventResult = cJSON_GetObjectItemCaseSensitive(valueJson, "EventResult"); in Unmarshal()
94 cJSON *eventContent = cJSON_GetObjectItemCaseSensitive(valueJson, "EventContent"); in Unmarshal()
H A Ddcamera_info_cmd.cpp78 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(rootValue, "Value"); in Unmarshal() local
79 if (valueJson == nullptr || !cJSON_IsObject(valueJson)) { in Unmarshal()
83 cJSON *state = cJSON_GetObjectItemCaseSensitive(valueJson, "State"); in Unmarshal()
H A Ddcamera_open_info_cmd.cpp78 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(rootValue, "Value"); in Unmarshal() local
79 if (valueJson == nullptr || !cJSON_IsObject(valueJson)) { in Unmarshal()
83 cJSON *sourceDevId = cJSON_GetObjectItemCaseSensitive(valueJson, "SourceDevId"); in Unmarshal()
H A Ddcamera_channel_info_cmd.cpp94 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(rootValue, "Value"); in Unmarshal() local
95 if (valueJson == nullptr || !cJSON_IsObject(valueJson)) { in Unmarshal()
99 cJSON *sourceDevId = cJSON_GetObjectItemCaseSensitive(valueJson, "SourceDevId"); in Unmarshal()
106 cJSON *details = cJSON_GetObjectItemCaseSensitive(valueJson, "Detail"); in Unmarshal()
H A Ddcamera_capture_info_cmd.cpp118 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(rootValue, "Value"); in UmarshalValue() local
119 if (valueJson == nullptr || !cJSON_IsArray(valueJson)) { in UmarshalValue()
123 cJSON_ArrayForEach(capInfo, valueJson) { in UmarshalValue()
164 int32_t DCameraCaptureInfoCmd::UmarshalSettings(cJSON *valueJson, in UmarshalSettings() argument
168 cJSON_ArrayForEach(captureSetting, valueJson) { in UmarshalSettings()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/include/
H A Ddcamera_capture_info_cmd.h52 int32_t UmarshalSettings(cJSON* valueJson, std::shared_ptr<DCameraCaptureInfo>& captureInfo);
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/
H A Dkey_command_handler_util.cpp143 cJSON *valueJson = cJSON_GetObjectItemCaseSensitive(json, key.c_str()); in GetKeyVal() local
144 if (cJSON_IsString(valueJson)) { in GetKeyVal()
145 value = valueJson->valuestring; in GetKeyVal()
/ohos5.0/foundation/communication/netstack/utils/napi_utils/src/
H A Dnapi_utils.cpp585 cJSON *valueJson = cJSON_Parse(inStr.c_str()); in JsonParse() local
586 if (valueJson == nullptr) { in JsonParse()
590 cJSON_Delete(valueJson); in JsonParse()