/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/ |
H A D | dcamera_sink_frame_info.cpp | 54 if (type == nullptr || !cJSON_IsNumber(type)) { in Unmarshal() 60 if (index == nullptr || !cJSON_IsNumber(index)) { in Unmarshal() 66 if (pts == nullptr || !cJSON_IsNumber(pts)) { in Unmarshal() 72 if (startEncode == nullptr || !cJSON_IsNumber(startEncode)) { in Unmarshal() 78 if (finishEncode == nullptr || !cJSON_IsNumber(finishEncode)) { in Unmarshal() 84 if (sendT == nullptr || !cJSON_IsNumber(sendT)) { in Unmarshal()
|
H A D | dcamera_capture_info_cmd.cpp | 107 if (mode == nullptr || !cJSON_IsNumber(mode)) { in Unmarshal() 126 CHECK_NULL_RETURN((width == nullptr || !cJSON_IsNumber(width)), DCAMERA_BAD_VALUE); in UmarshalValue() 130 CHECK_NULL_RETURN((height == nullptr || !cJSON_IsNumber(height)), DCAMERA_BAD_VALUE); in UmarshalValue() 134 CHECK_NULL_RETURN((format == nullptr || !cJSON_IsNumber(format)), DCAMERA_BAD_VALUE); in UmarshalValue() 138 CHECK_NULL_RETURN((dataSpace == nullptr || !cJSON_IsNumber(dataSpace)), DCAMERA_BAD_VALUE); in UmarshalValue() 146 … CHECK_NULL_RETURN((encodeType == nullptr || !cJSON_IsNumber(encodeType)), DCAMERA_BAD_VALUE); in UmarshalValue() 150 … CHECK_NULL_RETURN((streamType == nullptr || !cJSON_IsNumber(streamType)), DCAMERA_BAD_VALUE); in UmarshalValue() 170 if (settingType == nullptr || !cJSON_IsNumber(settingType)) { in UmarshalSettings()
|
H A D | dcamera_event_cmd.cpp | 82 if (eventType == nullptr || !cJSON_IsNumber(eventType)) { in Unmarshal() 89 if (eventResult == nullptr || !cJSON_IsNumber(eventResult)) { in Unmarshal()
|
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 39 if (ruleDirection != nullptr && cJSON_IsNumber(ruleDirection)) { in ConvertFirewallRuleToConfig() 44 if (ruleAction != nullptr && cJSON_IsNumber(ruleAction)) { in ConvertFirewallRuleToConfig() 49 if (ruleType != nullptr && cJSON_IsNumber(ruleType)) { in ConvertFirewallRuleToConfig() 59 if (appUid != nullptr && cJSON_IsNumber(appUid)) { in ConvertFirewallRuleToConfig() 65 if (protocol != nullptr && cJSON_IsNumber(protocol)) { in ConvertFirewallRuleToConfig() 71 if (userId != nullptr && cJSON_IsNumber(userId)) { in ConvertFirewallRuleToConfig() 151 if (family != nullptr && cJSON_IsNumber(family)) { in ConvertIpParamToConfig() 155 if (type != nullptr && cJSON_IsNumber(type)) { in ConvertIpParamToConfig() 171 if (mask != nullptr && cJSON_IsNumber(mask)) { in ConvertIpParamToConfig() 202 if (startPort != nullptr && cJSON_IsNumber(startPort)) { in ConvertPortParamToConfig() [all …]
|
/ohos5.0/base/sensors/miscdevice/utils/haptic_decoder/he_json/src/ |
H A D | he_vibrator_decoder.cpp | 85 return cJSON_IsNumber(versionJSON) ? versionJSON->valueint : -1; in ParseVersion() 105 int32_t time = cJSON_IsNumber(timeJSON) ? timeJSON->valueint : -1; in ParsePatternList() 164 event.duration = cJSON_IsNumber(durationJSON) ? durationJSON->valueint : -1; in ParseEvent() 172 event.index = cJSON_IsNumber(indexJSON) ? indexJSON->valueint : -1; in ParseEvent() 178 event.time = cJSON_IsNumber(timeJSON) ? timeJSON->valueint : -1; in ParseEvent() 183 event.intensity = cJSON_IsNumber(intensityJSON) ? intensityJSON->valueint : -1; in ParseEvent() 186 event.frequency = cJSON_IsNumber(frequencyJSON) ? frequencyJSON->valueint : -1; in ParseEvent() 221 point.time = cJSON_IsNumber(timeJSON) ? timeJSON->valueint : -1; in ParseCurve() 229 …point.intensity = cJSON_IsNumber(intensityJSON) ? (intensityJSON->valuedouble) * CURVE_INTENSITY_S… in ParseCurve() 236 point.frequency = cJSON_IsNumber(frequencyJSON) ? frequencyJSON->valueint : -1; in ParseCurve()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 81 if (item == NULL || !cJSON_IsNumber(item) || (item->valuedouble < 0)) { in GetJsonObjectNumberItem() 96 if (item == NULL || !cJSON_IsNumber(item)) { in GetJsonObjectSignedNumberItem() 111 if (item == NULL || !cJSON_IsNumber(item)) { in GetJsonObjectDoubleItem() 126 if (item == NULL || !cJSON_IsNumber(item) || (item->valuedouble < 0)) { in GetJsonObjectNumber16Item() 141 if (item == NULL || !cJSON_IsNumber(item) || (item->valuedouble < 0)) { in GetJsonObjectNumber64Item() 156 if (item == NULL || !cJSON_IsNumber(item)) { in GetJsonObjectSignedNumber64Item() 171 if (item == NULL || !cJSON_IsNumber(item)) { in GetJsonObjectInt32Item() 382 if (!cJSON_IsNumber(item)) { in GetJsonObjectIntArrayItem()
|
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/ |
H A D | key_command_handler_util.cpp | 63 if (!cJSON_IsNumber(preKeyJson)) { in GetPreKeys() 110 if (!cJSON_IsNumber(keyDownDuration)) { in GetKeyDownDuration() 129 if (!cJSON_IsNumber(finalKey)) { in GetKeyFinalKey() 285 if (!cJSON_IsNumber(keyCode)) { in GetKeyCode() 304 if (!cJSON_IsNumber(keyAction)) { in GetKeyAction() 323 if (!cJSON_IsNumber(delay)) { in GetDelay() 342 if (!cJSON_IsNumber(repeatTimes)) { in GetRepeatTimes() 361 if (!cJSON_IsNumber(abilityStartDelay)) { in GetAbilityStartDelay() 494 if (!cJSON_IsNumber(keyCodeJson)) { in ConvertToExcludeKey() 501 if (!cJSON_IsNumber(keyActionJson)) { in ConvertToExcludeKey() [all …]
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/continue/ |
H A D | dsched_continue_event.cpp | 82 if (item == nullptr || !cJSON_IsNumber(item)) { in Unmarshal() 173 if (direction == nullptr || !cJSON_IsNumber(direction)) { in Unmarshal() 180 if (appVersion == nullptr || !cJSON_IsNumber(appVersion)) { in Unmarshal() 375 if (requestCode == nullptr || !cJSON_IsNumber(requestCode)) { in Unmarshal() 495 if (item == nullptr || !cJSON_IsNumber(item)) { in UnmarshalCallerInfo() 548 if (accessToken != nullptr && cJSON_IsNumber(accessToken)) { in UnmarshalCallerInfoExtra() 570 if (accountType == nullptr || !cJSON_IsNumber(accountType)) { in UnmarshalAccountInfo() 597 if (userId == nullptr || !cJSON_IsNumber(userId)) { in UnmarshalAccountInfo() 664 if (item == nullptr || !cJSON_IsNumber(item)) { in Unmarshal() 728 if (result == nullptr || !cJSON_IsNumber(result)) { in Unmarshal()
|
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | input_parse.cpp | 68 if (cJSON_IsNumber(rawNum)) { in GetJsonData() 93 if (cJSON_IsNumber(val)) { in GetJsonData() 111 if (!cJSON_IsNumber(xPos)) { in ParseEvents() 118 if (!cJSON_IsNumber(yPos)) { in ParseEvents()
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/utils/ |
H A D | array_usb_device_type_serializer.cpp | 70 if (!cJSON_IsNumber(baseClass) || !cJSON_IsNumber(subClass) || !cJSON_IsNumber(protocol) || in Deserialize()
|
H A D | clipboard_policy_serializer.cpp | 38 if (!cJSON_IsNumber(clipboardPolicy) || !cJSON_IsNumber(tokenId)) { in Deserialize()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_meta.cpp | 75 if (typeObj == nullptr || !cJSON_IsNumber(typeObj)) { in UnmarshalAudioMeta() 80 if (ptsObj == nullptr || !cJSON_IsNumber(ptsObj)) { in UnmarshalAudioMeta() 85 if (frameObj == nullptr || !cJSON_IsNumber(frameObj)) { in UnmarshalAudioMeta()
|
H A D | av_trans_message.cpp | 71 if (typeObj == nullptr || !cJSON_IsNumber(typeObj)) { in UnmarshalMessage() 91 return (keyObj != nullptr) && cJSON_IsNumber(keyObj) && in IsUInt32()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/contentsensormanager/ |
H A D | pasteboard_info_collector.cpp | 66 if (!cJSON_IsNumber(item)) { in ConvertToProfile() 73 if (!cJSON_IsNumber(item)) { in ConvertToProfile()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | convert_utils.cpp | 589 if (cJSON_IsNumber(item)) { in ConvertJsonToBundleInfo() 593 if (cJSON_IsNumber(item)) { in ConvertJsonToBundleInfo() 597 if (cJSON_IsNumber(item)) { in ConvertJsonToBundleInfo() 601 if (cJSON_IsNumber(item)) { in ConvertJsonToBundleInfo() 605 if (cJSON_IsNumber(item)) { in ConvertJsonToBundleInfo() 641 if (cJSON_IsNumber(item) && item->valueint > 0) { in ConvertJsonToBundleInfo() 649 if (cJSON_IsNumber(item) && item->valueint > 0) { in ConvertJsonToBundleInfo() 786 if (cJSON_IsNumber(item)) { in ConvertJsonToAbilityInfo() 790 if (cJSON_IsNumber(item)) { in ConvertJsonToAbilityInfo()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | dh_utils_tool.cpp | 168 if (value == NULL || !cJSON_IsNumber(value)) { in IsUInt8() 177 if (value == NULL || !cJSON_IsNumber(value)) { in IsUInt16() 186 if (value == NULL || !cJSON_IsNumber(value)) { in IsInt32() 195 if (value == NULL || !cJSON_IsNumber(value)) { in IsUInt32()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | json_payload.c | 206 if (!cJSON_IsNumber(item) || (item->valuedouble < 0) || (item->valuedouble > 0xFF)) { in ParseDeviceJsonData() 213 if (!cJSON_IsNumber(item) || (item->valuedouble < 0) || (item->valuedouble > UINT32_MAX)) { in ParseDeviceJsonData() 254 if (!cJSON_IsNumber(item) || (item->valuedouble < 0)) { in ParseModeJsonData() 346 if (!cJSON_IsNumber(capability) || in ParseCapabilityBitmap() 367 if (!cJSON_IsNumber(item) || (item->valuedouble < 0)) { in ParseBusinessType() 408 if (!cJSON_IsNumber(item) || (item->valueint < 0) || (item->valueint > UINT16_MAX)) { in ParseSequenceNumber()
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/ |
H A D | cjson_util.cpp | 42 if (intJson == nullptr || !cJSON_IsNumber(intJson)) { in GetIntValue() 54 if (doubleJson == nullptr || !cJSON_IsNumber(doubleJson)) { in GetDoubleValue()
|
/ohos5.0/base/sensors/miscdevice/utils/common/src/ |
H A D | json_parser.cpp | 127 if (!cJSON_IsNumber(json)) { in GetIntValue() 135 if (!cJSON_IsNumber(json)) { in GetDoubleValue()
|
/ohos5.0/base/inputmethod/imf/services/json/src/ |
H A D | serializable.cpp | 68 if (subNode == nullptr || !cJSON_IsNumber(subNode)) { in GetValue() 79 if (!cJSON_IsNumber(subNode)) { in GetValue()
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/mini/ |
H A D | device_manager_impl_lite_m.c | 162 if (subscribeIdObj == NULL || !cJSON_IsNumber(subscribeIdObj)) { in StartDiscovering() 200 if (bindTypeObj == NULL || !cJSON_IsNumber(bindTypeObj)) { in BindTarget()
|
H A D | softbus_adapter.c | 582 if (object != NULL && cJSON_IsNumber(object)) { in ParseDiscoverFilterOption() 587 if (object != NULL && cJSON_IsNumber(object)) { in ParseDiscoverFilterOption() 592 if (object != NULL && cJSON_IsNumber(object)) { in ParseDiscoverFilterOption() 597 if (object != NULL && cJSON_IsNumber(object)) { in ParseDiscoverFilterOption() 602 if (object != NULL && cJSON_IsNumber(object)) { in ParseDiscoverFilterOption() 1254 if (object != NULL && cJSON_IsNumber(object)) { in OnBytesReceived() 1281 if (object != NULL && cJSON_IsNumber(object)) { in ProcessSinkMsg()
|
/ohos5.0/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_json.c | 64 if (!cJSON_IsNumber(objValue)) { in DslmGetJsonFieldInt() 94 if (!cJSON_IsNumber(item)) { in DslmGetJsonFieldIntArray()
|
/ohos5.0/base/startup/appspawn/lite/ |
H A D | appspawn_message.c | 97 if (strItem == NULL || !cJSON_IsNumber(strItem)) { in ReadNumberItem() 134 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
|
/ohos5.0/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_drawing.cpp | 1641 if (cJSON_IsNumber(offsetX)) { in ParserDragShadowInfo() 1645 if (cJSON_IsNumber(offsetY)) { in ParserDragShadowInfo() 1649 if (cJSON_IsNumber(argb)) { in ParserDragShadowInfo() 1728 if (cJSON_IsNumber(dipScale)) { in ParserFilterInfo() 1732 if (cJSON_IsNumber(scale)) { in ParserFilterInfo() 1784 if (cJSON_IsNumber(opacity)) { in ParserBlurInfo() 1793 if (cJSON_IsNumber(coef1)) { in ParserBlurInfo() 1798 if (cJSON_IsNumber(coef2)) { in ParserBlurInfo() 1815 if (cJSON_IsNumber(blurColor)) { in ParserBlurInfo() 1857 if (cJSON_IsNumber(coef1)) { in ParserExtraInfo() [all …]
|