Home
last modified time | relevance | path

Searched refs:jsonString (Results 1 - 25 of 64) sorted by relevance

123

/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_json_service_disposal_config.cpp86 string jsonString((istreambuf_iterator<char>(inFile)), istreambuf_iterator<char>()); in AppendIntoDisposalConfigFile()
89 cJSON *jsonObjectDis = cJSON_Parse(jsonString.c_str()); in AppendIntoDisposalConfigFile()
141 string jsonString((istreambuf_iterator<char>(input)), istreambuf_iterator<char>()); in DeleteFromDisposalConfigFile()
144 cJSON *jsonObjectDis = cJSON_Parse(jsonString.c_str()); in DeleteFromDisposalConfigFile()
195 string jsonString((istreambuf_iterator<char>(inFile)), istreambuf_iterator<char>()); in IfBundleNameInDisposalConfigFile()
198 cJSON *jsonObjectDis = cJSON_Parse(jsonString.c_str()); in IfBundleNameInDisposalConfigFile()
239 string jsonString((istreambuf_iterator<char>(inFile)), istreambuf_iterator<char>()); in GetBundleNameFromConfigFile()
242 cJSON *jsonObjectDis = cJSON_Parse(jsonString.c_str()); in GetBundleNameFromConfigFile()
/foundation/multimedia/image_framework/plugins/manager/src/framework/
H A Djson_helper.cpp39 uint32_t JsonHelper::GetStringValue(const json &jsonString, string &value) in GetStringValue() argument
41 if (!jsonString.is_string()) { in GetStringValue()
46 value = jsonString; in GetStringValue()
53 const json &jsonString = GetJsonElement(jsonObject, key, result); in GetStringValue() local
59 return GetStringValue(jsonString, value); in GetStringValue()
H A Djson_helper.h27 static uint32_t GetStringValue(const nlohmann::json &jsonString, std::string &value);
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/sourcedevice/src/
H A Ddaudio_source_dev_test.cpp331 char *jsonString = cJSON_PrintUnformatted(jParam); in HWTEST_F() local
332 CHECK_NULL_AND_FREE_VOID(jsonString, jParam); in HWTEST_F()
333 AudioEvent event(CHANGE_PLAY_STATUS, std::string(jsonString)); in HWTEST_F()
335 cJSON_free(jsonString); in HWTEST_F()
431 char *jsonString = cJSON_PrintUnformatted(jParam); in HWTEST_F() local
432 CHECK_NULL_AND_FREE_VOID(jsonString, jParam); in HWTEST_F()
433 EXPECT_EQ(ERR_DH_AUDIO_SA_PARAM_INVALID, sourceDev_->TaskEnableDAudio(std::string(jsonString))); in HWTEST_F()
434 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, sourceDev_->TaskDisableDAudio(std::string(jsonString))); in HWTEST_F()
436 cJSON_free(jsonString); in HWTEST_F()
493 char *jsonString in HWTEST_F() local
614 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
656 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
679 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
707 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
745 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
768 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
816 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
841 char *jsonString = cJSON_PrintUnformatted(jParam); HWTEST_F() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/
H A Drender_node_graph_loader.h35 LoadResult LoadString(const BASE_NS::string_view jsonString) override;
38 LoadResult LoadString(const BASE_NS::string_view uri, const BASE_NS::string_view jsonString);
H A Drender_data_configuration_loader.h40 static IRenderDataConfigurationLoader::LoadedPostProcess LoadPostProcess(BASE_NS::string_view jsonString);
47 LoadedPostProcess LoadPostProcess(BASE_NS::string_view jsonString) override;
H A Dshader_state_loader.cpp34 ShaderStateLoaderUtil::ShaderStateResult LoadImpl(const string_view jsonString) in LoadImpl() argument
36 const auto json = json::parse(jsonString.data()); in LoadImpl()
H A Drender_data_configuration_loader.cpp179 const string_view jsonString) in LoadPostProcess()
182 auto json = json::parse(jsonString.data()); in LoadPostProcess()
220 const string_view jsonString) in LoadPostProcess()
222 return RenderDataConfigurationLoader::LoadPostProcess(jsonString); in LoadPostProcess()
178 LoadPostProcess( const string_view jsonString) LoadPostProcess() argument
219 LoadPostProcess( const string_view jsonString) LoadPostProcess() argument
H A Drender_node_graph_loader.cpp162 RenderNodeGraphLoader::LoadResult RenderNodeGraphLoader::LoadString(const string_view jsonString) in LoadString() argument
164 return LoadString("", jsonString); in LoadString()
167 RenderNodeGraphLoader::LoadResult RenderNodeGraphLoader::LoadString(const string_view uri, const string_view jsonString) in LoadString() argument
169 if (const auto json = json::parse(jsonString.data()); json) { in LoadString()
H A Dvertex_input_declaration_loader.h57 * @param jsonString A string containing valid json as content.
60 LoadResult Load(BASE_NS::string_view jsonString);
H A Dpipeline_layout_loader.h57 * @param jsonString A string containing valid json as content.
60 LoadResult Load(BASE_NS::string_view jsonString);
H A Dvertex_input_declaration_loader.cpp132 VertexInputDeclarationLoader::LoadResult VertexInputDeclarationLoader::Load(const string_view jsonString) in Load() argument
135 const auto json = json::parse(jsonString.data()); in Load()
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/
H A Ddaudio_source_manager.cpp173 char *jsonString = cJSON_PrintUnformatted(jParam); in EnableDAudio() local
174 if (jsonString == nullptr) { in EnableDAudio()
179 auto eventParam = std::make_shared<std::string>(jsonString); in EnableDAudio()
184 cJSON_free(jsonString); in EnableDAudio()
188 cJSON_free(jsonString); in EnableDAudio()
237 char *jsonString = cJSON_PrintUnformatted(jParam); in DisableDAudio() local
238 if (jsonString == nullptr) { in DisableDAudio()
243 auto eventParam = std::make_shared<std::string>(jsonString); in DisableDAudio()
248 cJSON_free(jsonString); in DisableDAudio()
252 cJSON_free(jsonString); in DisableDAudio()
628 auto jsonString = event->GetSharedObject<std::string>().get(); GetEventParam() local
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dwifi_global_func_test.cpp354 std::string jsonString = R"( in HWTEST_F() local
364 EXPECT_TRUE(ParseJson(jsonString, type, key, value) == true); in HWTEST_F()
366 jsonString = R"( in HWTEST_F()
373 EXPECT_TRUE(ParseJson(jsonString, type, key, value) == true); in HWTEST_F()
375 jsonString = R"( in HWTEST_F()
380 EXPECT_TRUE(ParseJson(jsonString, type, key, value) == false); in HWTEST_F()
383 EXPECT_TRUE(ParseJson(jsonString, type, key, value) == false); in HWTEST_F()
386 EXPECT_TRUE(ParseJson(jsonString, type, key, value) == false); in HWTEST_F()
388 jsonString = ""; in HWTEST_F()
391 EXPECT_TRUE(ParseJson(jsonString, typ in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/frameworks/native/ability/native/auto_fill_extension_ability/
H A Djs_fill_request_callback.cpp101 std::string jsonString = response.viewData.ToJsonString(); in OnFillRequestSuccess() local
102 if (jsonString.empty()) { in OnFillRequestSuccess()
103 TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "empty jsonString"); in OnFillRequestSuccess()
110 SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_SUCESS, jsonString); in OnFillRequestSuccess()
135 std::string jsonString = UnwrapStringFromJS(env, info.argv[INDEX_ZERO], ""); in OnFillRequestCanceled() local
136 if (jsonString.empty()) { in OnFillRequestCanceled()
137 TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "empty jsonString"); in OnFillRequestCanceled()
143 SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_CANCEL, jsonString); in OnFillRequestCanceled()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/
H A Dcgroup_action.cpp248 std::string jsonString; in ParseConfigFileToJsonObj() local
249 if (!ReadFileToString(realConfigFile, jsonString)) { in ParseConfigFileToJsonObj()
252 if (jsonString.empty()) { in ParseConfigFileToJsonObj()
255 nlohmann::json jsonTemp = nlohmann::json::parse(jsonString, nullptr, false); in ParseConfigFileToJsonObj()
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/
H A Ddistributed_bundle_info.h34 bool FromJsonString(const std::string &jsonString);
71 bool FromJsonString(const std::string &jsonString);
/foundation/bundlemanager/bundle_framework/test/benchmarktest/distributed_bundle_info_test/
H A Ddistributed_bundle_info_test.cpp111 const std::string jsonString = R"({"appId": "ohos.global.systemres_BNtg4JBClbl92Rgc3jm/ in BenchmarkTestForFromJsonString() local
132 info.FromJsonString(jsonString); in BenchmarkTestForFromJsonString()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_parser.cpp310 const std::string &jsonString, std::vector<RouterItem> &routerArray) const in ParseRouterArray()
312 if (jsonString.empty()) { in ParseRouterArray()
313 APP_LOGE("jsonString is empty"); in ParseRouterArray()
316 APP_LOGD("Parse RouterItem from %{private}s", jsonString.c_str()); in ParseRouterArray()
317 nlohmann::json jsonBuf = nlohmann::json::parse(jsonString, nullptr, false); in ParseRouterArray()
319 APP_LOGE("json file %{private}s discarded", jsonString.c_str()); in ParseRouterArray()
309 ParseRouterArray( const std::string &jsonString, std::vector<RouterItem> &routerArray) const ParseRouterArray() argument
/foundation/communication/dsoftbus/adapter/common/json/nlohmann/
H A Dsoftbus_adapter_json.cpp78 std::string jsonString = json->dump(); in JSON_PrintUnformatted() local
80 char *result = (char *)SoftBusCalloc(jsonString.length() + 1); /* 1 for '\0' */ in JSON_PrintUnformatted()
85 if (strcpy_s(result, jsonString.length() + 1, jsonString.c_str()) != EOK) { in JSON_PrintUnformatted()
106 std::string jsonString(str, len); in JSON_Parse()
107 nlohmann::json entity = nlohmann::json::parse(jsonString, nullptr, false); in JSON_Parse()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Ddistributed_bundle_info.cpp119 bool DistributedBundleInfo::FromJsonString(const std::string &jsonString) in FromJsonString() argument
121 nlohmann::json jsonObject = nlohmann::json::parse(jsonString, nullptr, false); in FromJsonString()
123 APP_LOGE("failed parse DistributedBundleInfo: %{public}s", jsonString.c_str()); in FromJsonString()
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dasset_manager.cpp109 const string jsonString = CORE_NS::to_formatted_string(jsonOut, 4); in SaveJsonEntityCollection() local
111 resolvedUri, { jsonString.data(), jsonString.size() }, renderContext_.GetEngine().GetFileManager())) { in SaveJsonEntityCollection()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Ddistributed_bundle_info.h46 bool FromJsonString(const std::string &jsonString);
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/loader/
H A Dintf_render_data_configuration_loader.h60 virtual LoadedPostProcess LoadPostProcess(BASE_NS::string_view jsonString) = 0;
/foundation/graphic/graphic_3d/lume/LumeEngine/src/loader/
H A Dsystem_graph_loader.h34 LoadResult LoadString(BASE_NS::string_view jsonString, IEcs& ecs) override;

Completed in 13 milliseconds

123