Home
last modified time | relevance | path

Searched refs:errs (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/filemanagement/app_file_service/utils/include/b_json/
H A Db_json_cached_entity.h76 std::string errs; in ReloadFromFile() local
85 bool res = jsonReader->parse(sv.data(), sv.data() + sv.length(), &jValue, &errs); in ReloadFromFile()
86 if (!res || !errs.empty()) { in ReloadFromFile()
87 return BError(BError::Codes::UTILS_INVAL_JSON_ENTITY, errs).GetCode(); in ReloadFromFile()
104 std::string errs; in ReloadFromString() local
106 bool res = jsonReader->parse(sv.data(), sv.data() + sv.length(), &jValue, &errs); in ReloadFromString()
107 if (!res || !errs.empty()) { in ReloadFromString()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_system_layers_manager.cpp101 JSONCPP_STRING errs; in GetDefaultJsonConfig() local
103 … DEFAULT_JSON_CONFIG.c_str() + static_cast<int>(DEFAULT_JSON_CONFIG.length()), &configData, &errs); in GetDefaultJsonConfig()
105 WLOGE("default json config parse error: %{private}s", errs.c_str()); in GetDefaultJsonConfig()
136 JSONCPP_STRING errs; in GetJsonConfig() local
137 bool readSuccess = Json::parseFromStream(builder, configFile, &configData, &errs); in GetJsonConfig()
139 WLOGE("Failed to parse system json config file, error: %{private}s", errs.c_str()); in GetJsonConfig()
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/rule/
H A Dcompose_rule.cpp36 JSONCPP_STRING errs; in ParseComposeRule() local
43 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseComposeRule()
44 if (!ret || !errs.empty() || !root.isMember(type)) { in ParseComposeRule()
46 errs.c_str(), type.c_str(), config.c_str()); in ParseComposeRule()
H A Dextract_rule.cpp35 JSONCPP_STRING errs; in ParseExtractRule() local
42 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseExtractRule()
43 if (!ret || !errs.empty()) { in ParseExtractRule()
44 … HIVIEW_LOGE("Json parse fail, err is %{public}s in %{public}s.", errs.c_str(), config.c_str()); in ParseExtractRule()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_config_reader.cpp110 JSONCPP_STRING errs; in GetJsonFromFile() local
113 bool res = jsonReader->parse(data.c_str(), data.c_str() + data.length(), &root, &errs); in GetJsonFromFile()
115 if (!res || !errs.empty()) { in GetJsonFromFile()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dcloud_server_impl.cpp355 OhCloudExtVector *errs = nullptr; in DoSubscribe() local
356 …to status = OhCloudExtCloudSyncSubscribe(server.get(), databases.get(), expire, &relations, &errs); in DoSubscribe()
363 if (errs != nullptr) { in DoSubscribe()
364 …auto pErrs = std::shared_ptr<OhCloudExtVector>(errs, [](auto *errs) { OhCloudExtVectorFree(errs); … in DoSubscribe() argument
570 OhCloudExtVector *errs = nullptr; in DoUnsubscribe() local
571 auto status = OhCloudExtCloudSyncUnsubscribe(server.get(), relations.get(), &errs); in DoUnsubscribe()
575 if (errs != nullptr) { in DoUnsubscribe()
576 …auto pErrs = std::shared_ptr<OhCloudExtVector>(errs, [](auto *errs) { OhCloudExtVectorFree(errs); … in DoUnsubscribe() argument
/ohos5.0/foundation/resourceschedule/qos_manager/services/src/
H A Dconcurrent_task_service_stub.cpp147 JSONCPP_STRING errs; in StringToJson() local
155 res = jsonReader->parse(payload.c_str(), payload.c_str() + payload.length(), &root, &errs); in StringToJson()
160 if (!res || !errs.empty()) { in StringToJson()
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/update/controller/strategy/
H A Dclone_update_strategy.cpp67 std::string errs; in GetBundleOrAbilityName() local
70 if (!parseFromStream(reader, jsonStrm, &root, &errs)) { in GetBundleOrAbilityName()
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/
H A Dhisysevent_json_decorator.cpp59 JSONCPP_STRING errs; in HiSysEventJsonDecorator() local
60 if (!parseFromStream(jsonRBuilder, fin, &jsonRoot_, &errs)) { in HiSysEventJsonDecorator()
174 JSONCPP_STRING errs; in HiSysEventJsonDecorator() local
175 if (!reader->parse(origin.data(), origin.data() + origin.size(), &eventJson, &errs)) { in HiSysEventJsonDecorator()
/ohos5.0/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_log_config_manager.cpp38 JSONCPP_STRING errs; in ParseJsonFile() local
39 if (!parseFromStream(builder, fin, &jsonRoot, &errs)) { in ParseJsonFile()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/config/src/
H A Devent_store_config.cpp51 JSONCPP_STRING errs; in Init() local
52 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in Init()
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_config.cpp74 JSONCPP_STRING errs; in ParseConfig() local
79 if (parseFromStream(readerBuilder, ifsConf, &config, &errs) && !config.empty()) { in ParseConfig()
87 if (parseFromStream(readerBuilder, ifsConf, &config, &errs) && !config.empty()) { in ParseConfig()
94 if (parseFromStream(readerBuilder, ifsConf, &config, &errs) && !config.empty()) { in ParseConfig()
/ohos5.0/base/hiviewdfx/hiview/base/
H A Ddispatch_rule_parser.cpp38 JSONCPP_STRING errs; in DispatchRuleParser() local
39 if (!parseFromStream(jsonRBuilder, fin, &root, &errs)) { in DispatchRuleParser()
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dpower_config.cpp77 JSONCPP_STRING errs; in ParseConfig() local
79 if (parseFromStream(readerBuilder, ifsConf, &config, &errs) && !config.empty()) { in ParseConfig()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Djson_object.cpp126 JSONCPP_STRING errs; in Parse() local
135 if (!jsonReader->parse(begin, end, &value_, &errs)) { in Parse()
137 LOGE("[Json][Parse] Parse string to JsonValue fail, reason=%s.", errs.c_str()); in Parse()
187 JSONCPP_STRING errs; in Parse() local
194 if (!jsonReader->parse(begin, end, &value_, &errs)) { in Parse()
196 LOGE("[Json][Parse] Parse dataRange to JsonValue fail, reason=%s.", errs.c_str()); in Parse()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
H A Daudio_adapter_manager.cpp684 int32_t errs[2]{SUCCESS, SUCCESS}; in SetDeviceActive() local
687 errs[0] = audioServiceAdapter_->SetDefaultSource(name); in SetDeviceActive()
688 if (errs[0] != SUCCESS) { in SetDeviceActive()
689 AUDIO_ERR_LOG("SetDefaultSource err: %{public}d", errs[0]); in SetDeviceActive()
690 ret = errs[0]; in SetDeviceActive()
695 errs[1] = audioServiceAdapter_->SetDefaultSink(name); in SetDeviceActive()
696 if (errs[1] != SUCCESS) { in SetDeviceActive()
697 AUDIO_ERR_LOG("SetDefaultSink err: %{public}d", errs[1]); in SetDeviceActive()
698 ret = errs[1]; in SetDeviceActive()
702 if (errs[0] == SUCCESS || errs[1] == SUCCESS) { in SetDeviceActive()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Devent_json_parser.cpp45 JSONCPP_STRING errs; in ReadSysEventDefFromFile() local
46 return parseFromStream(jsonRBuilder, fin, &hiSysEventDef, &errs); in ReadSysEventDefFromFile()
/ohos5.0/base/powermgr/battery_manager/charger/src/
H A Dbattery_config.cpp72 JSONCPP_STRING errs; in ParseConfig() local
74 if (parseFromStream(readerBuilder, ifsConf, &config_, &errs) && !config_.empty()) { in ParseConfig()
/ohos5.0/base/powermgr/battery_manager/services/native/src/
H A Dbattery_config.cpp73 JSONCPP_STRING errs; in ParseConfig() local
75 if (parseFromStream(readerBuilder, ifsConf, &config_, &errs) && !config_.empty()) { in ParseConfig()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dconnect.rs711 let mut errs = Errors::default(); in subscribe() localVariable
712 errs.0.push(Error::ReadMsgParcelFailed); in subscribe()
713 if receive.read::<i32>().map_err(|_| errs)? == 0 { in subscribe()
719 let mut errs = Errors::default(); in subscribe() localVariable
720 errs.0.push(Error::ReadMsgParcelFailed); in subscribe()
721 Err(errs) in subscribe()
743 if let Ok(errs) = receive.read::<Errors>() { in unsubscribe()
744 return Err(errs); in unsubscribe()
/ohos5.0/build/tools/component_tools/static_check/bundle_check/
H A Dbundle_json_check.py373 errs = list(set(err)) # 去重告警
374 if errs:
375 bundle_error["description"] = str(errs)
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_scheduler_service.cpp372 JSONCPP_STRING errs; in GetJsonFromFile() local
375 bool res = jsonReader->parse(data.c_str(), data.c_str() + data.length(), &root, &errs); in GetJsonFromFile()
377 if (!res || !errs.empty()) { in GetJsonFromFile()
1132 JSONCPP_STRING errs; in RefreshPersistedWorks() local
1136 bool res = jsonReader->parse(data.c_str(), data.c_str() + data.length(), &workJson, &errs); in RefreshPersistedWorks()
1137 if (res && errs.empty()) { in RefreshPersistedWorks()
/ohos5.0/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
H A Dhisysevent_record.cpp348 JSONCPP_STRING errs; in ParseJsonStr() local
349 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &jsonVal_, &errs)) { in ParseJsonStr()
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Devent_query_wrapper_builder.cpp160 JSONCPP_STRING errs; in ParseQueryCondition() local
161 if (!reader->parse(condStr.data(), condStr.data() + condStr.size(), &root, &errs)) { in ParseQueryCondition()
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/sa/
H A Dintell_voice_service_manager.cpp710 std::string errs; in GetWakeupCapability() local
711 if (!parseFromStream(reader, jsonStrm, &wakeupJson, &errs)) { in GetWakeupCapability()

12