Home
last modified time | relevance | path

Searched refs:cJSON_Delete (Results 1 – 25 of 32) sorted by relevance

12

/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_oper_test.cpp79 cJSON_Delete(jsonroot);
86 cJSON_Delete(jsonroot);
99 cJSON_Delete(jsonroot);
116 cJSON_Delete(jsonroot);
123 cJSON_Delete(jsonroot2);
130 cJSON_Delete(jsonroot3);
151 cJSON_Delete(jsonroot);
158 cJSON_Delete(jsonroot);
165 cJSON_Delete(jsonroot);
188 cJSON_Delete(jsonroot);
[all …]
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c128 cJSON_Delete(item); in AddStrArrayInfo()
129 cJSON_Delete(strJsonArr); in AddStrArrayInfo()
135 cJSON_Delete(strJsonArr); in AddStrArrayInfo()
146 cJSON_Delete(item); in SetNativeTokenJsonObject()
153 cJSON_Delete(item); in SetNativeTokenJsonObject()
160 cJSON_Delete(item); in SetNativeTokenJsonObject()
167 cJSON_Delete(item); in SetNativeTokenJsonObject()
174 cJSON_Delete(item); in SetNativeTokenJsonObject()
200 cJSON_Delete(object); in CreateNativeTokenJsonObject()
218 cJSON_Delete(strArrJson); in UpdateStrArrayType()
[all …]
Dnativetoken.c188 cJSON_Delete(record); in ParseTokenInfo()
387 cJSON_Delete(record); in SaveTokenIdToCfg()
393 cJSON_Delete(record); in SaveTokenIdToCfg()
617 cJSON_Delete(record); in UpdateInfoInCfgFile()
622 cJSON_Delete(record); in UpdateInfoInCfgFile()
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp37 … UPDATER_ERROR_CHECK(partitions != nullptr, "Error get Partitions", cJSON_Delete(root); return -1); in ParsePartitionInfo()
39 …UPDATER_ERROR_CHECK(number > MIN_PARTITIONS_NUM, "Error partitions number < 3", cJSON_Delete(root)… in ParsePartitionInfo()
40 …UPDATER_ERROR_CHECK(number < MAX_PARTITIONS_NUM, "Error partitions number > 20", cJSON_Delete(root… in ParsePartitionInfo()
47 cJSON_Delete(root); in ParsePartitionInfo()
77 cJSON_Delete(root); in ParsePartitionInfo()
/base/security/permission_lite/services/pms/src/
Dpms_impl.c185 cJSON_Delete(root); in ParsePermissions()
190 cJSON_Delete(root); in ParsePermissions()
197 cJSON_Delete(root); in ParsePermissions()
204 cJSON_Delete(root); in ParsePermissions()
211 cJSON_Delete(root); in ParsePermissions()
245 cJSON_Delete(root); in SavePermissions()
251 cJSON_Delete(array); in SavePermissions()
252 cJSON_Delete(root); in SavePermissions()
260 cJSON_Delete(array); in SavePermissions()
261 cJSON_Delete(root); in SavePermissions()
[all …]
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c54 cJSON_Delete(jsonObj); in FreeJson()
76 cJSON_Delete(cJSON_DetachItemViaPointer(jsonObj, curItem)); in DeleteAllItemExceptOne()
92 cJSON_Delete(cJSON_DetachItemViaPointer(jsonObj, curItem)); in DeleteAllItem()
322 cJSON_Delete(tmpObj); in AddObjToJson()
327 cJSON_Delete(tmpObj); in AddObjToJson()
369 cJSON_Delete(strObj); in AddStringToArray()
393 cJSON_Delete(tmp); in AddStringToJson()
445 cJSON_Delete(tmp); in AddBoolToJson()
470 cJSON_Delete(tmp); in AddIntToJson()
501 cJSON_Delete(strArrayObj); in AddStringArrayToJson()
/base/startup/appspawn_lite/services/src/
Dappspawn_message.c173 cJSON_Delete(rootJ); in SplitMessage()
181 cJSON_Delete(rootJ); in SplitMessage()
193 cJSON_Delete(rootJ); in SplitMessage()
197 cJSON_Delete(rootJ); in SplitMessage()
/base/startup/appspawn/lite/
Dappspawn_message.c175 cJSON_Delete(rootJ); in SplitMessage()
183 cJSON_Delete(rootJ); in SplitMessage()
195 cJSON_Delete(rootJ); in SplitMessage()
199 cJSON_Delete(rootJ); in SplitMessage()
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/mock/
Dnativetoken_oper_test.cpp87 cJSON_Delete(jsonRoot);
116 cJSON_Delete(jsonRoot);
148 cJSON_Delete(jsonRoot);
193 cJSON_Delete(jsonRoot);
234 cJSON_Delete(jsonRoot);
/base/security/permission_lite/services/pms_client/
Dperm_client.c220 cJSON_Delete(root); in ParsePermissions()
226 cJSON_Delete(root); in ParsePermissions()
236 cJSON_Delete(root); in ParsePermissions()
242 cJSON_Delete(root); in ParsePermissions()
248 cJSON_Delete(root); in ParsePermissions()
256 cJSON_Delete(root); in ParsePermissions()
/base/msdp/device_status/libs/include/
Ddevicestatus_data_define.h51 cJSON_Delete(json_); in ~JsonParser()
/base/startup/init/test/unittest/init/
Dgroup_unittest.cpp211 cJSON_Delete(fileRoot);
270 cJSON_Delete(fileRoot);
303 cJSON_Delete(fileRoot);
339 cJSON_Delete(jobItem);
Dcmds_unittest.cpp262 cJSON_Delete(jobItem);
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c33 cJSON_Delete((cJSON *)handle); in free_json()
148 cJSON_Delete((cJSON *)obj); in delete_json_object()
/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
DcJSON.h64 void cJSON_Delete(cJSON* item);
/base/sensors/miscdevice/utils/src/
Djson_parser.cpp42 cJSON_Delete(cJson_); in ~JsonParser()
/base/startup/init/services/init/
Dinit_config.c55 cJSON_Delete(fileRoot); in ParseInitCfg()
Dinit_group_manager.c78 cJSON_Delete(fileRoot); in InitParseGroupCfg_()
/base/update/updater/utils/json/
Djson_node.h40 using cJSONPtr = std::unique_ptr<cJSON, decltype(&cJSON_Delete)>;
Djson_node.cpp84 cJSON_Delete(const_cast<cJSON *>(root)); in Init()
/base/update/updateservice/services/engine/src/
Dupdate_service.cpp681 ENGINE_CHECK(item != nullptr, cJSON_Delete(root); return -1, "Error get searchStatus"); in ParseJsonFile()
685 ENGINE_CHECK(item != nullptr, cJSON_Delete(root); return -1, "Error get errMsg"); in ParseJsonFile()
689 ENGINE_CHECK(results != nullptr, cJSON_Delete(root); return -1, "Error get checkResults"); in ParseJsonFile()
691 ENGINE_CHECK(ret == 0, cJSON_Delete(root); return -1, "Error get checkResults"); in ParseJsonFile()
694 ENGINE_CHECK(descriptInfo != nullptr, cJSON_Delete(root); return -1, "Error get descriptInfo"); in ParseJsonFile()
696 ENGINE_CHECK(ret == 0, cJSON_Delete(root); return -1, "Error get descriptInfo"); in ParseJsonFile()
698 cJSON_Delete(root); in ParseJsonFile()
/base/update/updater/services/ui/view/layout/
Dlayout_parser.cpp42 using cJSONPtr = std::unique_ptr<cJSON, decltype(&cJSON_Delete)>;
/base/security/device_security_level/baselib/utils/src/
Dutils_json.c41 cJSON_Delete((cJSON *)handle); in DestroyJson()
/base/startup/init/services/modules/bootevent/
Dbootevent.c214 cJSON_Delete(root); in SaveServiceBootEvent()
220 cJSON_Delete(root); in SaveServiceBootEvent()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_provision.c326 cJSON_Delete(root); in ParseProfile()
330 cJSON_Delete(root); in ParseProfile()

12