Home
last modified time | relevance | path

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

/base/startup/appspawn_lite/services/src/
Dappspawn_message.c107 cJSON* capItem = cJSON_GetObjectItem(curItem, "capability"); in GetCaps()
169 cJSON* bundleNameItem = cJSON_GetObjectItem(rootJ, "bundleName"); in SplitMessage()
177 cJSON* identityIDItem = cJSON_GetObjectItem(rootJ, "identityID"); in SplitMessage()
185 cJSON* uIDItem = cJSON_GetObjectItem(rootJ, "uID"); in SplitMessage()
186 cJSON* gIDItem = cJSON_GetObjectItem(rootJ, "gID"); in SplitMessage()
/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.cpp36 cJSON* partitions = cJSON_GetObjectItem(root, "Partition"); in ParsePartitionInfo()
54 cJSON* item = cJSON_GetObjectItem(thisPartition, "start"); in ParsePartitionInfo()
58 item = cJSON_GetObjectItem(thisPartition, "length"); in ParsePartitionInfo()
64 item = cJSON_GetObjectItem(thisPartition, "partName"); in ParsePartitionInfo()
68 item = cJSON_GetObjectItem(thisPartition, "fsType"); in ParsePartitionInfo()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c36 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringTag()
76 cJSON *jsonObj = cJSON_GetObjectItem(root, tag); in GetStringArrayTag()
122 cJSON *jsonObj = cJSON_GetObjectItem(root, "validity"); in GetProfValidity()
128 cJSON *notBefore = cJSON_GetObjectItem(jsonObj, "not-before"); in GetProfValidity()
135 cJSON *notAfter = cJSON_GetObjectItem(jsonObj, "not-after"); in GetProfValidity()
146 cJSON *jsonObj = cJSON_GetObjectItem(root, "bundle-info"); in GetProfBundleInfo()
182 cJSON *jsonObj = cJSON_GetObjectItem(root, "permissions"); in GetProfPermission()
194 cJSON *jsonObj = cJSON_GetObjectItem(root, "debug-info"); in GetProfDebugInfo()
290 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.cpp60 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
82 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
125 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
184 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
255 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
266 serviceItem = cJSON_GetObjectItem(jobItem, "services");
Dcmds_unittest.cpp247 cJSON *cmdsItem = cJSON_GetObjectItem(jobItem, "jobs");
257 cJSON *cmdsItem2 = cJSON_GetObjectItem(cmdsItem1, "cmds");
Dgroup_unittest.cpp324 cJSON *serviceItem = cJSON_GetObjectItem(jobItem, "services");
/base/startup/init/services/modules/selinux/
Dselinux_static.c30 …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/interfaces/innerkits/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/update/updateservice/services/engine/src/
Dupdate_service.cpp680 cJSON *item = cJSON_GetObjectItem(root, "searchStatus"); in ParseJsonFile()
684 item = cJSON_GetObjectItem(root, "errMsg"); in ParseJsonFile()
688 cJSON *results = cJSON_GetObjectItem(root, "checkResults"); in ParseJsonFile()
693 cJSON *descriptInfo = cJSON_GetObjectItem(root, "descriptInfo"); in ParseJsonFile()
714 cJSON *item = cJSON_GetObjectItem(result, "versionName"); in ReadCheckVersionResult()
718 item = cJSON_GetObjectItem(result, "versionCode"); in ReadCheckVersionResult()
722 item = cJSON_GetObjectItem(result, "verifyInfo"); in ReadCheckVersionResult()
726 item = cJSON_GetObjectItem(result, "size"); in ReadCheckVersionResult()
730 item = cJSON_GetObjectItem(result, "packageType"); in ReadCheckVersionResult()
734 item = cJSON_GetObjectItem(result, "url"); in ReadCheckVersionResult()
[all …]
/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.c173 char *fieldStr = cJSON_GetStringValue(cJSON_GetObjectItem(json, name)); in GetStringValue()
193 cJSON *obj = cJSON_GetObjectItem(argJson, name); in GetServiceArgs()
299 cJSON *filedJ = cJSON_GetObjectItem(curArrItem, attrName); in GetServiceAttr()
546 cJSON *item = cJSON_GetObjectItem(curArrItem, "ondemand"); in GetServiceOnDemand()
594 char *value = cJSON_GetStringValue(cJSON_GetObjectItem(json, "start-mode")); in GetServiceMode()
599 value = cJSON_GetStringValue(cJSON_GetObjectItem(json, "end-mode")); in GetServiceMode()
613 char *jobName = cJSON_GetStringValue(cJSON_GetObjectItem(json, jobTypes[i])); in GetServiceJobs()
632 cJSON *arrItem = cJSON_GetObjectItem(curArrItem, attrName); in GetCritical()
683 cJSON *obj = cJSON_GetObjectItem(argJson, name); in GetCpuArgs()
714 cJSON *item = cJSON_GetObjectItem(curItem, "sandbox"); in GetServiceSandbox()
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h54 cJSON* cJSON_GetObjectItem(const cJSON* const object, const char* const string);
/base/startup/init/test/unittest/lite/
Dcmd_func_test.cpp609 char *nameStr = cJSON_GetStringValue(cJSON_GetObjectItem(curItem, "name")); in CheckService()
616 cJSON *pathArgsItem = cJSON_GetObjectItem(curItem, "path"); in CheckService()
633 cJSON *filedJ = cJSON_GetObjectItem(curItem, "uid"); in CheckService()
637 filedJ = cJSON_GetObjectItem(curItem, "gid"); in CheckService()
641 filedJ = cJSON_GetObjectItem(curItem, "once"); in CheckService()
644 filedJ = cJSON_GetObjectItem(curItem, "importance"); in CheckService()
647 filedJ = cJSON_GetObjectItem(curItem, "caps"); in CheckService()
729 cJSON *cmdsItem = cJSON_GetObjectItem(jobItem, CMDS_ARR_NAME_IN_JSON.c_str()); in CheckJob()
761 char *jobNameStr = cJSON_GetStringValue(cJSON_GetObjectItem(jobItem, "name")); in CheckJobs()
/base/startup/init/services/param/trigger/
Dtrigger_processor.c225 char *name = cJSON_GetStringValue(cJSON_GetObjectItem(triggerItem, "name")); in ParseTrigger_()
227 char *condition = cJSON_GetStringValue(cJSON_GetObjectItem(triggerItem, "condition")); in ParseTrigger_()
240 cJSON *cmdItems = cJSON_GetObjectItem(triggerItem, CMDS_ARR_NAME_IN_JSON); in ParseTrigger_()
279 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/sensors/miscdevice/utils/src/
Djson_parser.cpp56 return cJSON_GetObjectItem(json, key.c_str()); in GetObjectItem()
/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/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.cpp62 cJSON* mockarray = cJSON_GetObjectItem(parser.json_, DeviceStatusJson[type].json.c_str()); in DataInit()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c54 cJSON* cJSON_GetObjectItem(const cJSON* const object, const char* const string) in cJSON_GetObjectItem() function
/base/startup/init/services/modules/bootevent/
Dbootevent.c267 cJSON *bootEvents = cJSON_GetObjectItem(serviceParseCtx->serviceNode, BOOT_EVENT_FIELD_NAME); in ServiceParseBootEventHook()