Home
last modified time | relevance | path

Searched refs:cJSON_AddItemToArray (Results 1 – 25 of 74) sorted by relevance

123

/ohos5.0/foundation/multimodalinput/input/service/key_command/test/
H A Dkey_command_handler_util_test.cpp163 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(-1));
182 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(1));
183 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(1));
384 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(1));
385 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(1));
404 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(1));
405 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(2));
406 cJSON_AddItemToArray(preKey, cJSON_CreateNumber(3));
767 cJSON_AddItemToArray(params, nullptr);
847 cJSON_AddItemToArray(params, param1);
[all …]
/ohos5.0/foundation/distributedhardware/distributed_audio/audiohandler/src/
H A Ddaudio_handler.cpp61 cJSON_AddItemToArray(sampleArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
68 cJSON_AddItemToArray(channelArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
75 cJSON_AddItemToArray(formatsArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
83 cJSON_AddItemToArray(sampleArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
90 cJSON_AddItemToArray(channelArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
97 cJSON_AddItemToArray(formatsArray, cJSON_CreateNumber(static_cast<uint32_t>(value))); in AddItemsToObject()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/json/
H A Djsonutil.c202 cJSON_AddItemToArray(objArr, cJSON_CreateString(value)); in add_string_to_array()
207 cJSON_AddItemToArray(objArr, cJSON_CreateNumber(value)); in add_number_to_array()
212 cJSON_AddItemToArray(objArr, cJSON_CreateBool(value)); in add_bool_to_array()
217 cJSON_AddItemToArray(objArr, obj); in add_obj_to_array()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp167 cJSON_AddItemToArray(sampleRateJson, cJSON_CreateNumber(rate)); in ToJson()
269 cJSON_AddItemToArray(audioEncoderInsJson, audioEncoderInJson); in ToJson()
284 cJSON_AddItemToArray(audioEncoderOutsJson, audioEncoderOutJson); in ToJson()
479 cJSON_AddItemToArray(audioDecoderInsJson, audioDecoderInJson); in ToJson()
494 cJSON_AddItemToArray(audioDecoderOutsJson, audioDecoderOutJson); in ToJson()
671 cJSON_AddItemToArray(videoEncoderInsJson, videoEncoderInJson); in ToJson()
686 cJSON_AddItemToArray(videoEncoderOutsJson, videoEncoderOutJson); in ToJson()
795 cJSON_AddItemToArray(fmtJson, cJSON_CreateNumber(static_cast<uint32_t>(fmt))); in ToJson()
889 cJSON_AddItemToArray(videoDecoderInsJson, videoDecoderInJson); in ToJson()
904 cJSON_AddItemToArray(videoDecoderOutsJson, videoDecoderOutJson); in ToJson()
[all …]
/ohos5.0/base/startup/init/test/unittest/init/
H A Dsandbox_unittest.cpp105 cJSON_AddItemToArray(mJsonMtBdPthItmSdxFlg, cJSON_CreateString(SANDBOX_FLAGS[i])); in MakeSandboxJson()
112 cJSON_AddItemToArray(mJsonMtBdPth, mJsonMtBdPth_Itm = cJSON_CreateObject()); in MakeSandboxJson()
126 cJSON_AddItemToArray(mJsonMtBdFl, mJsonMtBdFlItm); in MakeSandboxJson()
130 cJSON_AddItemToArray(mJsonSymLk, mJsonSymLk_Itm = cJSON_CreateObject()); in MakeSandboxJson()
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/cJson/include/
H A DcJsonMock.h38 virtual cJSON_bool cJSON_AddItemToArray(cJSON *array, cJSON *item) = 0;
57 MOCK_METHOD2(cJSON_AddItemToArray, cJSON_bool(cJSON *array, cJSON *item));
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/handler/src/
H A Ddcamera_handler.cpp193 cJSON_AddItemToArray(array, cJSON_CreateString(mimeType.c_str())); in CreateAVCodecList()
247 cJSON_AddItemToArray(modeArray, cJSON_CreateNumber(mode)); in CreateDHItem()
360 cJSON_AddItemToArray(array, cJSON_CreateString(value.c_str())); in ConfigFormatphoto()
369 cJSON_AddItemToArray(array, cJSON_CreateNumber(format)); in ConfigFormatphoto()
394 cJSON_AddItemToArray(array, cJSON_CreateString(value.c_str())); in ConfigFormatvideo()
403 cJSON_AddItemToArray(array, cJSON_CreateNumber(format)); in ConfigFormatvideo()
/ohos5.0/foundation/filemanagement/app_file_service/utils/src/b_jsonutil/
H A Db_jsonutil.cpp135 cJSON_AddItemToArray(details, {}); in AddUnicastInfo()
143 cJSON_AddItemToArray(infos, info); in AddUnicastInfo()
221 cJSON_AddItemToArray(details, detail); in InsertBundleDetailInfo()
332 cJSON_AddItemToArray(arrJson, eleJson); in BuildExtensionErrInfo()
434 cJSON_AddItemToArray(infos, info); in BuildBundleInfoJson()
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/cJson/src/
H A DcJsonMock.cpp138 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray() function
140 return CJson::cJsonPtr->cJSON_AddItemToArray(array, item); in cJSON_AddItemToArray()
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/
H A Dwifi_statistic.cpp114 (void)cJSON_AddItemToArray(stationArray, stationJson); in GetSoftApInfo()
159 (void)cJSON_AddItemToArray(gcArray, gcJson); in GetP2PInfo()
/ohos5.0/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/
H A Dnetfirewall_default_rule_parser_test.cpp64 cJSON_AddItemToArray(localIps, ip);
79 cJSON_AddItemToArray(array, param);
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/
H A Dcustom_utd_json_parser.cpp92 cJSON_AddItemToArray(CustomUTDs, jsonItem); in ConvertUtdCfgsToJson()
108 cJSON_AddItemToArray(arrayNode, item); in AddJsonStringArray()
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Dexport_json_file_writer.cpp181 cJSON_AddItemToArray(dataJsonArray, eventItem); in CreateEventsJsonArray()
189 cJSON_AddItemToArray(eventsJsonArray, anonymousJsonObj); in CreateEventsJsonArray()
321 cJSON_AddItemToArray(domainsJsonArray, domainJsonObj); in Write()
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/
H A Ddcamera_capture_info_cmd.cpp43 cJSON_AddItemToArray(captureInfos, captureInfo); in Marshal()
60 cJSON_AddItemToArray(captureSettings, captureSetting); in Marshal()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
H A DcJSON.h61 cJSON_bool cJSON_AddItemToArray(cJSON* array, cJSON* item);
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_file.cpp301 cJSON_AddItemToArray(quotaPolicy, quotaPolicyItem); in AddQuotaPolicy()
317 cJSON_AddItemToArray(uidPolicy, uidPolicyItem); in AddUidPolicy()
344 cJSON_AddItemToArray(deniedListArr, cJSON_CreateString(std::to_string(it).c_str())); in AddFirewallRule()
347 cJSON_AddItemToArray(allowedListArr, cJSON_CreateString(std::to_string(it).c_str())); in AddFirewallRule()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dconvert_utils.cpp342 if (!cJSON_AddItemToArray(roots, item)) { in GetJsonBundleInfos()
398 if (!cJSON_AddItemToArray(jsonModuleInfos, moduleInfosItem)) { in GetJsonModuleInfos()
481 !cJSON_AddItemToArray(jsonMetaData, metaDataItem)) { in GetJsonModuleInfoMetaData()
508 if (!cJSON_AddItemToArray(jsonDeviceType, object)) { in GetJsonModuleInfoDeviceType()
529 if (!cJSON_AddItemToArray(jsonAbilityInfos, item)) { in GetJsonAbilityInfos()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/
H A Dcomponent_privacy.cpp83 cJSON_AddItemToArray(jsonArrayMsg, tmpJson); in HandlePullUpPage()
111 cJSON_AddItemToArray(jsonArrayMsg, tmpJson); in HandleClosePage()
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/interfaces/
H A Ddp_sync_options.cpp92 if (!cJSON_AddItemToArray(jsonArr, jsonArrItem)) { in dump()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_json_oper.c127 if (item == NULL || !cJSON_AddItemToArray(strJsonArr, item)) { in AddStrArrayInfo()
222 if (!cJSON_AddItemToArray(strArrJson, item)) { in UpdateStrArrayType()
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnetworkvpn_service.cpp463 cJSON_AddItemToArray(jVecRoutes, jRoute); in ConvertVecRouteToJson()
474 cJSON_AddItemToArray(jVecAddrs, jInetAddr); in ParseConfigToJson()
491 cJSON_AddItemToArray(jVecDnsAddrs, cJSON_CreateString(mem.c_str())); in ParseConfigToJson()
497 cJSON_AddItemToArray(jVecDomains, cJSON_CreateString(mem.c_str())); in ParseConfigToJson()
503 cJSON_AddItemToArray(jVecAcceptApp, cJSON_CreateString(mem.c_str())); in ParseConfigToJson()
509 cJSON_AddItemToArray(jVecRefuseApp, cJSON_CreateString(mem.c_str())); in ParseConfigToJson()
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Dclipboard_policy_serializer.cpp60 if (!cJSON_AddItemToArray(root, item)) { in Serialize()
/ohos5.0/base/inputmethod/imf/services/json/include/
H A Dserializable.h76 if (!ret || !cJSON_AddItemToArray(array, item)) { in SetValue()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_driver_info.cpp33 if (!cJSON_AddItemToArray(array, cJSON_CreateNumber(static_cast<double>(item)))) { in SetArrayToObj()
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/contentsensormanager/
H A Dsyscap_info_collector.cpp102 if (!cJSON_AddItemToArray(osSyscapJsonData, jsonArrItem)) { in AddOsSyscapToJson()

123