Home
last modified time | relevance | path

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

/base/startup/init/test/unittest/init/
Dsandbox_unittest.cpp99 cJSON_AddItemToObject(mJsonSandbox, SANDBOX_CONFIG[0], cJSON_CreateString(SANDBOX_ROOT[0])); in MakeSandboxJson()
115cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[0], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson()
116cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[1], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson()
118 cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[0], nullptr); in MakeSandboxJson()
119 cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[1], nullptr); in MakeSandboxJson()
121cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[MOUNT_FLAG_COUNT], mJsonMtBdPthItmSdxFlg); in MakeSandboxJson()
124cJSON_AddItemToObject(mJsonMtBdFlItm, SANDBOX_CONFIG[1], cJSON_CreateString("/data/init_ut/testsan… in MakeSandboxJson()
131cJSON_AddItemToObject(mJsonSymLk_Itm, SYMBOL_LINKS[0], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson()
132cJSON_AddItemToObject(mJsonSymLk_Itm, SYMBOL_LINKS[1], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson()
138 cJSON_AddItemToObject(mJsonSandbox, SANDBOX_CONFIG[count++], mJsonMtBdPth); in MakeSandboxJson()
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c133 if (!cJSON_AddItemToObject(object, strKey, strJsonArr)) { in AddStrArrayInfo()
144 if (item == NULL || !cJSON_AddItemToObject(object, PROCESS_KEY_NAME, item)) { in SetNativeTokenJsonObject()
151 if (item == NULL || !cJSON_AddItemToObject(object, APL_KEY_NAME, item)) { in SetNativeTokenJsonObject()
158 if (item == NULL || !cJSON_AddItemToObject(object, VERSION_KEY_NAME, item)) { in SetNativeTokenJsonObject()
165 if (item == NULL || !cJSON_AddItemToObject(object, TOKENID_KEY_NAME, item)) { in SetNativeTokenJsonObject()
172 if (item == NULL || !cJSON_AddItemToObject(object, TOKEN_ATTR_KEY_NAME, item)) { in SetNativeTokenJsonObject()
235 if (!cJSON_AddItemToObject(record, strKey, strArrJson)) { in UpdateStrArrayType()
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c167 (void)cJSON_AddItemToObject((cJSON *)handle, field, arrayObj); in AddFieldIntArrayToJson()
183 (void)cJSON_AddItemToObject((cJSON *)handle, field, json); in AddFieldJsonToJson()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h65 cJSON_bool cJSON_AddItemToObject(cJSON* object, const char* string, cJSON* item);
/base/security/permission_lite/services/pms/src/
Dpms_impl.c255 cJSON_AddItemToObject(object, FIELD_NAME, cJSON_CreateString(permissions[i].name)); in SavePermissions()
256 cJSON_AddItemToObject(object, FIELD_DESC, cJSON_CreateString(permissions[i].desc)); in SavePermissions()
257 cJSON_AddItemToObject(object, FIELD_IS_GRANTED, cJSON_CreateBool(permissions[i].granted)); in SavePermissions()
271 cJSON_AddItemToObject(object, FIELD_FLAGS, cJSON_CreateString(buf)); in SavePermissions()
274 cJSON_AddItemToObject(root, FIELD_PERMISSION, array); in SavePermissions()
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c154 cJSON_AddItemToObject((cJSON *)parent, field, (cJSON *)obj); in add_item_to_object()
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c321 if (cJSON_AddItemToObject(jsonObj, key, tmpObj) == false) { in AddObjToJson()
500 if (cJSON_AddItemToObject(jsonObj, key, strArrayObj) == false) { in AddStringArrayToJson()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
DcJSON.c291 cJSON_bool cJSON_AddItemToObject(cJSON*object, const char *string, cJSON* item) in cJSON_AddItemToObject() function