Home
last modified time | relevance | path

Searched refs:errs (Results 1 - 11 of 11) sorted by relevance

/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()
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_system_layers_manager.cpp100 JSONCPP_STRING errs; in GetDefaultJsonConfig() local
102 DEFAULT_JSON_CONFIG.c_str() + static_cast<int>(DEFAULT_JSON_CONFIG.length()), &configData, &errs); in GetDefaultJsonConfig()
104 WLOGE("default json config parse error: %{private}s", errs.c_str()); in GetDefaultJsonConfig()
129 JSONCPP_STRING errs; in GetJsonConfig() local
130 bool readSuccess = Json::parseFromStream(builder, configFile, &configData, &errs); in GetJsonConfig()
132 WLOGE("Failed to parse system json config file, error: %{private}s", errs.c_str()); in GetJsonConfig()
/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()
/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()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dcloud_server_impl.cpp355 OhCloudExtVector *errs = nullptr; in DoSubscribe() local
356 auto 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()
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, [](aut in DoUnsubscribe()
[all...]
/foundation/CastEngine/castengine_wifi_display/services/configuration/src/
H A Djson_parser.cpp40 JSONCPP_STRING errs; in GetConfig() local
42 if (!parseFromStream(builder, ifs, &root, &errs)) { in GetConfig()
43 SHARING_LOGE("parse file error: %{public}s.", errs.c_str()); in GetConfig()
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Dintell_voice_sensibility.cpp69 std::string errs; in ParseWakeupConfigDspSensibility() local
70 if (!parseFromStream(reader, jsonStrm, &wakeupJson, &errs)) { in ParseWakeupConfigDspSensibility()
/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()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
H A Daudio_adapter_manager.cpp695 int32_t errs[2]{SUCCESS, SUCCESS}; in SetDeviceActive()
698 errs[0] = audioServiceAdapter_->SetDefaultSource(name); in SetDeviceActive()
699 if (errs[0] != SUCCESS) { in SetDeviceActive()
700 AUDIO_ERR_LOG("SetDefaultSource err: %{public}d", errs[0]); in SetDeviceActive()
701 ret = errs[0]; in SetDeviceActive()
706 errs[1] = audioServiceAdapter_->SetDefaultSink(name); in SetDeviceActive()
707 if (errs[1] != SUCCESS) { in SetDeviceActive()
708 AUDIO_ERR_LOG("SetDefaultSink err: %{public}d", errs[1]); in SetDeviceActive()
709 ret = errs[1]; in SetDeviceActive()
713 if (errs[ in SetDeviceActive()
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_scheduler_service.cpp311 JSONCPP_STRING errs; in GetJsonFromFile() local
314 bool res = jsonReader->parse(data.c_str(), data.c_str() + data.length(), &root, &errs); in GetJsonFromFile()
316 if (!res || !errs.empty()) { in GetJsonFromFile()
1055 JSONCPP_STRING errs; in RefreshPersistedWorks() local
1059 bool res = jsonReader->parse(data.c_str(), data.c_str() + data.length(), &workJson, &errs); in RefreshPersistedWorks()
1060 if (res && errs.empty()) { in RefreshPersistedWorks()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dconnect.rs711 let mut errs = Errors::default(); variables
712 errs.0.push(Error::ReadMsgParcelFailed);
713 if receive.read::<i32>().map_err(|_| errs)? == 0 {
719 let mut errs = Errors::default(); variables
720 errs.0.push(Error::ReadMsgParcelFailed);
721 Err(errs)
743 if let Ok(errs) = receive.read::<Errors>() {
744 return Err(errs);

Completed in 11 milliseconds