Home
last modified time | relevance | path

Searched refs:cJSON_GetObjectItem (Results 1 – 25 of 26) sorted by relevance

12

/base/startup/appspawn/lite/
Dappspawn_message.c108 cJSON *capItem = cJSON_GetObjectItem(curItem, "capability"); in GetCaps()
171 cJSON *bundleNameItem = cJSON_GetObjectItem(rootJ, "bundleName"); in SplitMessage()
179 cJSON *identityIDItem = cJSON_GetObjectItem(rootJ, "identityID"); in SplitMessage()
187 cJSON *uIDItem = cJSON_GetObjectItem(rootJ, "uID"); in SplitMessage()
188 cJSON *gIDItem = cJSON_GetObjectItem(rootJ, "gID"); in SplitMessage()
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp39 cJSON *item = cJSON_GetObjectItem(thisPartition, "start"); in SetPartitionInfo()
46 item = cJSON_GetObjectItem(thisPartition, "length"); in SetPartitionInfo()
55 item = cJSON_GetObjectItem(thisPartition, "partName"); in SetPartitionInfo()
62 item = cJSON_GetObjectItem(thisPartition, "fsType"); in SetPartitionInfo()
82 cJSON* partitions = cJSON_GetObjectItem(root, "Partition"); in ParsePartitionInfo()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c42 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag()
82 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag()
128 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity()
134 cJSON *notBefore = cJSON_GetObjectItem(jsonObj, "not-before"); in GetProfValidity()
141 cJSON *notAfter = cJSON_GetObjectItem(jsonObj, "not-after"); in GetProfValidity()
152 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo()
188 cJSON *jsonObj = cJSON_GetObjectItem(root, "permissions"); in GetProfPermission()
200 cJSON *jsonObj = cJSON_GetObjectItem(root, "debug-info"); in GetProfDebugInfo()
296 cJSON *jsonObj = cJSON_GetObjectItem(root, "version-code"); in ParseProfile()
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c33 cJSON *processNameJson = cJSON_GetObjectItem(cjsonItem, PROCESS_KEY_NAME); in GetProcessNameFromJson()
49 cJSON *tokenIdJson = cJSON_GetObjectItem(cjsonItem, TOKENID_KEY_NAME); in GetTokenIdFromJson()
67 cJSON *aplJson = cJSON_GetObjectItem(cjsonItem, APL_KEY_NAME); in GetAplFromJson()
83 cJSON *strArrJson = cJSON_GetObjectItem(cjsonItem, attr->strKey); in GetInfoArrFromJson()
228 if (cJSON_GetObjectItem(record, strKey) != NULL) { in UpdateStrArrayType()
286 cJSON *processNameJson = cJSON_GetObjectItem(cjsonItem, PROCESS_KEY_NAME); in UpdateGoalItemFromRecord()
/base/startup/init/test/unittest/init/
Dservice_unittest.cpp68 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
91 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
134 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
190 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
262 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
274 serviceItem = cJSON_GetObjectItem(jobItem, "services");
Dcmds_unittest.cpp240 cJSON *cmdsItem = cJSON_GetObjectItem(jobItem, "jobs");
250 cJSON *cmdsItem2 = cJSON_GetObjectItem(cmdsItem1, "cmds");
Dgroup_unittest.cpp345 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
/base/startup/init/services/modules/selinux/
Dselinux_static.c32 …char *fieldStr = cJSON_GetStringValue(cJSON_GetObjectItem(serviceParseCtx->serviceNode, SECON_STR_… in ServiceParseSelinuxHook()
/base/startup/init/services/init/lite/
Dinit_jobs.c50 char *jobNameStr = cJSON_GetStringValue(cJSON_GetObjectItem(jobItem, "name")); in GetJobName()
71 cJSON *cmdsItem = cJSON_GetObjectItem(jobItem, CMDS_ARR_NAME_IN_JSON); in ParseJob()
/base/startup/init/services/sandbox/
Dsandbox.c227 char *srcPath = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_SOURCE)); in AddMountInfoToSandbox()
229 char *dstPath = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_TARGET)); in AddMountInfoToSandbox()
231 cJSON *obj = cJSON_GetObjectItem(item, SANDBOX_FLAGS); in AddMountInfoToSandbox()
246 obj = cJSON_GetObjectItem(item, SANDBOX_IGNORE_ERRORS); in AddMountInfoToSandbox()
269 char *target = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_SYMLINK_TARGET)); in AddSymbolLinksToSandbox()
271 char *name = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_SYMLINK_NAME)); in AddSymbolLinksToSandbox()
287 cJSON *obj = cJSON_GetObjectItem(root, itemName); in GetSandboxInfo()
317 cJSON *sandboxRoot = cJSON_GetObjectItem(root, SANDBOX_ROOT_TAG); in ParseSandboxConfig()
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c79 cJSON *objValue = cJSON_GetObjectItem(handle, field); in GetJsonFieldIntArray()
137 return cJSON_GetObjectItem((cJSON *)handle, field); in GetJsonFieldJson()
/base/startup/init/services/init/
Dinit_service_manager.c188 char *fieldStr = cJSON_GetStringValue(cJSON_GetObjectItem(json, name)); in GetStringValue()
208 cJSON *obj = cJSON_GetObjectItem(argJson, name); in GetServiceArgs()
317 cJSON *filedJ = cJSON_GetObjectItem(curArrItem, attrName); in GetServiceAttr()
564 cJSON *item = cJSON_GetObjectItem(curArrItem, "ondemand"); in GetServiceOnDemand()
612 char *value = cJSON_GetStringValue(cJSON_GetObjectItem(json, "start-mode")); in GetServiceMode()
617 value = cJSON_GetStringValue(cJSON_GetObjectItem(json, "end-mode")); in GetServiceMode()
631 char *jobName = cJSON_GetStringValue(cJSON_GetObjectItem(json, jobTypes[i])); in GetServiceJobs()
650 cJSON *arrItem = cJSON_GetObjectItem(curArrItem, attrName); in GetCritical()
701 cJSON *obj = cJSON_GetObjectItem(argJson, name); in GetCpuArgs()
732 cJSON *item = cJSON_GetObjectItem(curItem, "sandbox"); in GetServiceSandbox()
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h52 cJSON* cJSON_GetObjectItem(const cJSON* const object, const char* const string);
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp606 char *nameStr = cJSON_GetStringValue(cJSON_GetObjectItem(curItem, "name")); in CheckService()
613 cJSON *pathArgsItem = cJSON_GetObjectItem(curItem, "path"); in CheckService()
630 cJSON *filedJ = cJSON_GetObjectItem(curItem, "uid"); in CheckService()
634 filedJ = cJSON_GetObjectItem(curItem, "gid"); in CheckService()
638 filedJ = cJSON_GetObjectItem(curItem, "once"); in CheckService()
641 filedJ = cJSON_GetObjectItem(curItem, "importance"); in CheckService()
644 filedJ = cJSON_GetObjectItem(curItem, "caps"); in CheckService()
728 cJSON *cmdsItem = cJSON_GetObjectItem(jobItem, CMDS_ARR_NAME_IN_JSON.c_str()); in CheckJob()
760 char *jobNameStr = cJSON_GetStringValue(cJSON_GetObjectItem(jobItem, "name")); in CheckJobs()
/base/startup/init/services/param/trigger/
Dtrigger_processor.c232 char *name = cJSON_GetStringValue(cJSON_GetObjectItem(triggerItem, "name")); in ParseTrigger_()
234 char *condition = cJSON_GetStringValue(cJSON_GetObjectItem(triggerItem, "condition")); in ParseTrigger_()
247 cJSON *cmdItems = cJSON_GetObjectItem(triggerItem, CMDS_ARR_NAME_IN_JSON); in ParseTrigger_()
287 ParseJobHookExecute(cJSON_GetStringValue(cJSON_GetObjectItem(item, "name")), item); in ParseTriggerConfig()
/base/security/permission_lite/services/pms_client/
Dperm_client.c212 cJSON *array = cJSON_GetObjectItem(root, FIELD_PERMISSION); in ParsePermissions()
231 cJSON *itemName = cJSON_GetObjectItem(object, FIELD_NAME); in ParsePermissions()
232 cJSON *itemDesc = cJSON_GetObjectItem(object, FIELD_DESC); in ParsePermissions()
233 cJSON *itemGranted = cJSON_GetObjectItem(object, FIELD_IS_GRANTED); in ParsePermissions()
/base/startup/init/services/modules/trace/
Dinit_trace.c121 …workspace->compress = cJSON_IsTrue(cJSON_GetObjectItem(workspace->jsonRootNode, "compress")) ? 1 :… in InitTraceWorkspace()
252 PLUGIN_LOGI("Tag name = %s ", cJSON_GetStringValue(cJSON_GetObjectItem(item, "name"))); in SetUserSpaceSettings()
253 int tag = cJSON_GetNumberValue(cJSON_GetObjectItem(item, "tag")); in SetUserSpaceSettings()
274 const char *name = cJSON_GetStringValue(cJSON_GetObjectItem(tagJson, "name")); in SetKernelTraceEnabled()
/base/security/permission_lite/services/pms/src/
Dpms_impl.c146 cJSON *itemName = cJSON_GetObjectItem(object, FIELD_NAME); in ParseFixedPermissionsItem()
147 cJSON *itemDesc = cJSON_GetObjectItem(object, FIELD_DESC); in ParseFixedPermissionsItem()
148 cJSON *itemGranted = cJSON_GetObjectItem(object, FIELD_IS_GRANTED); in ParseFixedPermissionsItem()
165 cJSON *itemFlags = cJSON_GetObjectItem(object, FIELD_FLAGS); in ParseNewPermissionsItem()
181 cJSON *array = cJSON_GetObjectItem(root, FIELD_PERMISSION); in ParsePermissions()
/base/sensors/miscdevice/utils/src/
Djson_parser.cpp66 return cJSON_GetObjectItem(json, key.c_str()); in GetObjectItem()
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c39 return cJSON_GetObjectItem((cJSON *)parent, field); in get_json_obj()
/base/msdp/device_status/libs/src/
Ddevicestatus_data_parse.cpp97 cJSON* mockarray = cJSON_GetObjectItem(parser.json, DeviceStatusJson[type].json.c_str()); in DeviceStatusDataInit()
/base/update/updateservice/services/firmware/check/include/
Dfirmware_icheck.h123 cJSON *item = cJSON_GetObjectItem(root, "searchStatus"); in ParseJsonFile()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_dump.cpp204 cJSON* description = cJSON_GetObjectItem(tags, "description"); in ParseTagCategory()
208 cJSON* tagOffset = cJSON_GetObjectItem(tags, "tag_offset"); in ParseTagCategory()
212 cJSON* type = cJSON_GetObjectItem(tags, "type"); in ParseTagCategory()
216 cJSON* sysFiles = cJSON_GetObjectItem(tags, "sysFiles"); in ParseTagCategory()
253 cJSON* tagCategory = cJSON_GetObjectItem(root, "tag_category"); in ParseTagInfo()
263 cJSON* tagGroups = cJSON_GetObjectItem(root, "tag_groups"); in ParseTagInfo()
/base/startup/init/test/unittest/loopevent/
Dloopserver_unittest.cpp59 printf("Message: %s \n", cJSON_GetStringValue(cJSON_GetObjectItem(root, "message"))); in DecodeMessage()
60 cmd = cJSON_GetNumberValue(cJSON_GetObjectItem(root, "cmd")); in DecodeMessage()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c58 cJSON* cJSON_GetObjectItem(const cJSON* const object, const char* const string) in cJSON_GetObjectItem() function

12