Home
last modified time | relevance | path

Searched refs:cJSON_IsArray (Results 1 – 25 of 76) sorted by relevance

1234

/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinput_parse.cpp86 if (!cJSON_IsArray(rawVal)) { in GetJsonData()
102 if (!cJSON_IsArray(eventInfo)) { in ParseEvents()
109 if (cJSON_IsArray(eventArray)) { in ParseEvents()
155 if (!cJSON_IsArray(events)) { in ParseData()
163 if (cJSON_IsArray(eventInfo)) { in ParseData()
237 if (!cJSON_IsArray(parser.json_)) { in DataInit()
263 if (!cJSON_IsArray(events)) { in DataInit()
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_expand.c44 …APPSPAWN_CHECK(bundles != NULL && cJSON_IsArray(bundles), return -1, "MountAllHsp: invalid bundles… in MountAllHsp()
45 …APPSPAWN_CHECK(modules != NULL && cJSON_IsArray(modules), return -1, "MountAllHsp: invalid modules… in MountAllHsp()
46 …APPSPAWN_CHECK(versions != NULL && cJSON_IsArray(versions), return -1, "MountAllHsp: invalid versi… in MountAllHsp()
95 APPSPAWN_CHECK(dataGroupIds != NULL && cJSON_IsArray(dataGroupIds), in MountAllGroup()
97 APPSPAWN_CHECK(gids != NULL && cJSON_IsArray(gids), return -1, "MountAllGroup: invalid gids"); in MountAllGroup()
98 APPSPAWN_CHECK(dirs != NULL && cJSON_IsArray(dirs), return -1, "MountAllGroup: invalid dirs"); in MountAllGroup()
H A Dsandbox_load.c152 if (obj == NULL || !cJSON_IsArray(obj)) { in GetSandboxNsFlags()
247 APPSPAWN_CHECK_ONLY_EXPER(mountConfigs != NULL && cJSON_IsArray(mountConfigs), return -1); in ParseMountPathsConfig()
292 …APPSPAWN_CHECK_ONLY_EXPER(symbolLinkConfigs != NULL && cJSON_IsArray(symbolLinkConfigs), return -1… in ParseSymbolLinksConfig()
308 APPSPAWN_CHECK(cJSON_IsArray(configs), return 0, "json is not array."); in ParseGidTableConfig()
341 APPSPAWN_CHECK(cJSON_IsArray(groupConfig), in ParseMountGroupsConfig()
540 APPSPAWN_CHECK(cJSON_IsArray(configs), return APPSPAWN_SANDBOX_INVALID, "Invalid config "); in ParseNameGroupsConfig()
564 APPSPAWN_CHECK(cJSON_IsArray(configs), in ParseConditionalConfig()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp184 if (rateJson == nullptr || !cJSON_IsArray(rateJson)) { in FromJson()
302 if (audioEncoderInsJson == nullptr || !cJSON_IsArray(audioEncoderInsJson)) { in FromJson()
314 if (audioEncoderOutsJson == nullptr || !cJSON_IsArray(audioEncoderOutsJson)) { in FromJson()
407 if (channelLayoutJson == nullptr || !cJSON_IsArray(channelLayoutJson)) { in FromJson()
448 if (sampleFormatJson == nullptr || !cJSON_IsArray(sampleFormatJson)) { in FromJson()
512 if (audioDecoderInsJson == nullptr || !cJSON_IsArray(audioDecoderInsJson)) { in FromJson()
618 if (videoPixelFmtJson == nullptr || !cJSON_IsArray(videoPixelFmtJson)) { in FromJson()
707 if (videoEncoderInsJson == nullptr || !cJSON_IsArray(videoEncoderInsJson)) { in FromJson()
816 if (videoBitStreamJson == nullptr || !cJSON_IsArray(videoBitStreamJson)) { in FromJson()
860 if (videoPixelFmtJson == nullptr || !cJSON_IsArray(videoPixelFmtJson)) { in FromJson()
[all …]
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/
H A Dkey_command_handler_util.cpp52 if (!cJSON_IsArray(preKey)) { in GetPreKeys()
159 if (!cJSON_IsArray(entities)) { in GetEntities()
185 if (!cJSON_IsArray(params)) { in GetParams()
401 if (!cJSON_IsArray(sequenceKeys)) { in GetSequenceKeys()
570 if (!cJSON_IsArray(shortkeys)) { in ParseShortcutKeys()
597 if (!cJSON_IsArray(sequences)) { in ParseSequences()
619 if (!cJSON_IsArray(excludeKeys)) { in ParseExcludeKeys()
642 if (!cJSON_IsArray(repeatKeys)) { in ParseRepeatKeys()
/ohos5.0/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_json_service_disposal_config.cpp96 if (configArray == nullptr || !cJSON_IsArray(configArray)) { in AppendIntoDisposalConfigFile()
151 if (configArray == nullptr || !cJSON_IsArray(configArray)) { in DeleteFromDisposalConfigFile()
205 if (configArray == nullptr || !cJSON_IsArray(configArray)) { in IfBundleNameInDisposalConfigFile()
249 if (configArray == nullptr || !cJSON_IsArray(configArray)) { in GetBundleNameFromConfigFile()
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/cJson/include/
H A DcJsonMock.h40 virtual cJSON_bool cJSON_IsArray(const cJSON * const item) = 0;
61 MOCK_METHOD1(cJSON_IsArray, cJSON_bool(const cJSON * const item));
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/staticcapabilityloader/
H A Dstatic_capability_loader.cpp112 if (!cJSON_IsArray(staticCapabilities)) { in GetStaticCapability()
179 if (!cJSON_IsArray(staticInfos)) { in GetLatestStaticInfoJson()
204 if (!cJSON_IsArray(staticInfos)) { in GetStaticInfoJsonByVersion()
263 if (!cJSON_IsArray(abilitiesJson)) { in GenerateStaticProfiles()
388 if (!cJSON_IsArray(staticCapabilityItems)) { in SetStaticCapability()
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/init/
H A Djson_parser_utils.cpp85 if (jsonArray == NULL || !cJSON_IsArray(jsonArray)) { in GetJsonStringVec()
103 if (jsonArray == NULL || !cJSON_IsArray(jsonArray)) { in ParseJsonToObjVec()
/ohos5.0/base/hiviewdfx/hiview/base/utility/
H A Dcjson_util.cpp78 if (strArray == nullptr || !cJSON_IsArray(strArray)) { in GetStringArray()
112 if (value == nullptr || !cJSON_IsArray(value)) { in GetArrayValue()
/ohos5.0/base/sensors/miscdevice/utils/common/src/
H A Djson_parser.cpp89 if (!cJSON_IsArray(jsonArray)) { in ParseJsonArray()
112 return cJSON_IsArray(json); in IsArray()
/ohos5.0/base/startup/init/services/init/lite/
H A Dinit_jobs.c72 if (!cJSON_IsArray(cmdsItem)) { in ParseJob()
92 if (!cJSON_IsArray(jobArr)) { in ParseAllJobs()
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp90 if (ips != nullptr && cJSON_IsArray(ips)) { in ParseIpList()
107 if (prot != nullptr && cJSON_IsArray(prot)) { in ParsePortList()
124 if (domain != nullptr && cJSON_IsArray(domain)) { in ParseDomainList()
252 if (defaultRules != nullptr && cJSON_IsArray(defaultRules)) { in GetDefaultRules()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
H A Dfont_config.cpp307 if (filters == nullptr || !cJSON_IsArray(filters)) { in ParseGeneric()
324 if (alias != nullptr && cJSON_IsArray(alias)) { in ParseGeneric()
329 if (adjust != nullptr && cJSON_IsArray(adjust)) { in ParseGeneric()
396 if (filters == nullptr || !cJSON_IsArray(filters)) { in ParseFallback()
436 if (filters == nullptr || !cJSON_IsArray(filters)) { in ParseFontMap()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dconvert_utils.cpp179 …if (!cJSON_IsArray(roots) || static_cast<uint32_t>(cJSON_GetArraySize(roots)) != numOfBundleInfo) { in ConvertStringToBundleInfos()
661 …if (metaData == nullptr || !cJSON_IsArray(metaDataArray) || cJSON_GetArraySize(metaDataArray) > ME… in ConvertJsonToMetaData()
696 if (deviceType == nullptr || !cJSON_IsArray(deviceTypeArray) || in ConvertJsonToDeviceType()
718 if (moduleInfos == nullptr || !cJSON_IsArray(moduleArray) || numOfModule == 0 || in ConvertJsonToModuleInfos()
760 if (cJSON_IsArray(item) && !ConvertJsonToMetaData(item, (*moduleInfos + index)->metaData)) { in ConvertJsonToModuleInfos()
764 … if (!cJSON_IsArray(item) || !ConvertJsonToDeviceType(item, (*moduleInfos + index)->deviceType)) { in ConvertJsonToModuleInfos()
821 if (abilityInfos == nullptr || !cJSON_IsArray(abilityArray) || numOfAbility == 0 || in ConvertJsonToAbilityInfos()
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/cJson/src/
H A DcJsonMock.cpp157 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item) in cJSON_IsArray() function
159 return (CJson::cJsonPtr == nullptr) ? IsArray(item) : CJson::cJsonPtr->cJSON_IsArray(item); in cJSON_IsArray()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/json/
H A Djsonutil.c126 if (cJSON_IsArray(obj)) { in get_array_size()
134 if (cJSON_IsArray(obj)) { in get_array_idx()
/ohos5.0/foundation/filemanagement/app_file_service/utils/src/b_jsonutil/
H A Db_jsonutil.cpp138 if (infos == nullptr || !cJSON_IsArray(infos)) { in AddUnicastInfo()
163 if (infos == nullptr || !cJSON_IsArray(infos) || cJSON_GetArraySize(infos) == 0) { in HasUnicastInfo()
207 if (details == nullptr || !cJSON_IsArray(details)) { in InsertBundleDetailInfo()
254 if (infos == nullptr || !cJSON_IsArray(infos) || cJSON_GetArraySize(infos) == 0) { in ParseBundleInfoJson()
/ohos5.0/base/msdp/device_status/libs/src/
H A Ddevicestatus_data_parse.cpp89 if (cJSON_IsArray(parser.json)) { in DeviceStatusDataInit()
100 if (!cJSON_IsArray(mockarray)) { in DeviceStatusDataInit()
/ohos5.0/base/startup/appspawn/interfaces/innerkits/permission/
H A Dappspawn_mount_permission.c48 …APPSPAWN_CHECK(config != NULL && cJSON_IsArray(config), return 0, "No found permission in config"); in ParseAppSandboxConfig()
85 APPSPAWN_CHECK(configs != NULL && cJSON_IsArray(configs), return 0, "No permission in json"); in ParseAppSandboxConfig()
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnetwork_security_config.cpp385 if (!cJSON_IsArray(root)) { in ParseJsonTrustAnchors()
402 if (!cJSON_IsArray(root)) { in ParseJsonDomains()
441 if (pins == nullptr || !cJSON_IsArray(pins)) { in ParseJsonPinSet()
484 if (!cJSON_IsArray(root)) { in ParseJsonDomainConfigs()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/
H A Ddcamera_capture_info_cmd.cpp119 if (valueJson == nullptr || !cJSON_IsArray(valueJson)) { in UmarshalValue()
154 …CHECK_NULL_RETURN((captureSettings == nullptr || !cJSON_IsArray(captureSettings)), DCAMERA_BAD_VAL… in UmarshalValue()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_parser.cpp73 if (cJSON_IsArray(son) || cJSON_IsObject(son)) { in ParseValue()
439 …bundleProfile.isNativeApp = ((object == nullptr) || (cJSON_IsArray(object) && cJSON_GetArraySize(o… in ParseModuleInfo()
468 CHECK_IS_TRUE((cJSON_IsArray(object) && (cJSON_GetArraySize(object) <= DEVICE_TYPE_SIZE)), in ParseDeviceType()
497 CHECK_IS_TRUE((cJSON_IsArray(object) && (cJSON_GetArraySize(object) <= METADATA_SIZE)), in ParseModuleMetaData()
539 … CHECK_IS_TRUE(cJSON_IsArray(abilityObjects), ERR_APPEXECFWK_INSTALL_FAILED_PARSE_ABILITIES_ERROR); in ParseAbilityInfos()
693 CHECK_IS_TRUE(cJSON_IsArray(object), ERR_APPEXECFWK_INSTALL_FAILED_PARSE_DEVICECAP_ERROR); in ParseAbilityDeviceCap()
/ohos5.0/base/telephony/core_service/services/network_search/src/
H A Doperator_name_utils.cpp97 if (itemRoots == nullptr || !cJSON_IsArray(itemRoots) || cJSON_GetArraySize(itemRoots) == 0) { in ParserOperatorNameCustJson()
174 if (plmnArray == nullptr || !cJSON_IsArray(plmnArray)) { in ParserOperatorNames()
/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Disodep_card_handler.cpp53 if (checkApdus == nullptr || !cJSON_IsArray(checkApdus)) { in GetCheckApduFromJson()
76 if (balanceApdus == nullptr || !cJSON_IsArray(balanceApdus)) { in GetBalanceApduFromJson()

1234