Searched refs:cJSON_AddItemToObject (Results 1 – 8 of 8) sorted by relevance
/base/startup/init/test/unittest/init/ |
D | sandbox_unittest.cpp | 99 cJSON_AddItemToObject(mJsonSandbox, SANDBOX_CONFIG[0], cJSON_CreateString(SANDBOX_ROOT[0])); in MakeSandboxJson() 115 … cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[0], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson() 116 … cJSON_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() 121 …cJSON_AddItemToObject(mJsonMtBdPth_Itm, MOUNT_BIND_PATHS[MOUNT_FLAG_COUNT], mJsonMtBdPthItmSdxFlg); in MakeSandboxJson() 124 …cJSON_AddItemToObject(mJsonMtBdFlItm, SANDBOX_CONFIG[1], cJSON_CreateString("/data/init_ut/testsan… in MakeSandboxJson() 131 … cJSON_AddItemToObject(mJsonSymLk_Itm, SYMBOL_LINKS[0], cJSON_CreateString(APP_PATHS[i])); in MakeSandboxJson() 132 … cJSON_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/ |
D | nativetoken_json_oper.c | 133 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/ |
D | utils_json.c | 167 (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/ |
D | cJSON.h | 65 cJSON_bool cJSON_AddItemToObject(cJSON* object, const char* string, cJSON* item);
|
/base/security/permission_lite/services/pms/src/ |
D | pms_impl.c | 255 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/ |
D | jsonutil.c | 154 cJSON_AddItemToObject((cJSON *)parent, field, (cJSON *)obj); in add_item_to_object()
|
/base/security/device_auth/common_lib/impl/src/ |
D | json_utils.c | 321 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/ |
D | cJSON.c | 291 cJSON_bool cJSON_AddItemToObject(cJSON*object, const char *string, cJSON* item) in cJSON_AddItemToObject() function
|