Home
last modified time | relevance | path

Searched refs:CallResult (Results 1 – 15 of 15) sorted by relevance

/base/update/updateservice/services/firmware/upgrade/mode/src/
Dfirmware_install_apply_mode.cpp62 businessError_.Build(CallResult::FAIL, "no task!"); in GetStepAfterInit()
77 businessError_.Build(CallResult::FAIL, "upgradeOptions error"); in GetStepAfterInit()
84 businessError_.Build(CallResult::FAIL, "status error!"); in GetStepForInstallAndApplyOrder()
104 businessError_.Build(CallResult::FAIL, "install condition fail!"); in IsAllowInstall()
111 businessError_.Build(CallResult::FAIL, "install condition fail!"); in IsAllowInstall()
126 businessError_.Build(CallResult::FAIL, "check component failed"); in IsUpgradeFilesReady()
Dfirmware_download_mode.cpp55 businessError_.Build(CallResult::FAIL, "no task!"); in GetStepAfterInit()
64 businessError_.Build(CallResult::FAIL, "status error!"); in GetStepAfterInit()
70 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
78 businessError_.Build(CallResult::FAIL, "download no network!"); in GetStepAfterInit()
87 businessError_.Build(CallResult::FAIL, "download condition fail!"); in GetStepAfterInit()
Dfirmware_manual_check_mode.cpp54 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
60 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
67 businessError_.Build(CallResult::FAIL, "CheckNewVersionService no network!"); in GetStepAfterInit()
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h43 enum class CallResult { enum
62 constexpr int32_t INT_CALL_SUCCESS = CAST_INT(CallResult::SUCCESS);
63 constexpr int32_t INT_CALL_FAIL = CAST_INT(CallResult::FAIL);
64 constexpr int32_t INT_UN_SUPPORT = CAST_INT(CallResult::UN_SUPPORT);
65 constexpr int32_t INT_FORBIDDEN = CAST_INT(CallResult::FORBIDDEN);
66 constexpr int32_t INT_CALL_IPC_ERR = CAST_INT(CallResult::IPC_ERR);
67 constexpr int32_t INT_APP_NOT_GRANTED = CAST_INT(CallResult::APP_NOT_GRANTED);
68 constexpr int32_t INT_NOT_SYSTEM_APP = CAST_INT(CallResult::NOT_SYSTEM_APP);
69 constexpr int32_t INT_PARAM_ERR = CAST_INT(CallResult::PARAM_ERR);
70 constexpr int32_t INT_DEV_UPG_INFO_ERR = CAST_INT(CallResult::DEV_UPG_INFO_ERR);
[all …]
/base/update/updateservice/frameworks/js/napi/base/src/
Ddefine_property.cpp58 DECLARE_CALL_RESULT_PROPERTY(CallResult::APP_NOT_GRANTED), in DefineCallResult()
59 DECLARE_CALL_RESULT_PROPERTY(CallResult::PARAM_ERR), in DefineCallResult()
60 DECLARE_CALL_RESULT_PROPERTY(CallResult::UN_SUPPORT), in DefineCallResult()
61 DECLARE_CALL_RESULT_PROPERTY(CallResult::SUCCESS), in DefineCallResult()
62 DECLARE_CALL_RESULT_PROPERTY(CallResult::FAIL), in DefineCallResult()
63 DECLARE_CALL_RESULT_PROPERTY(CallResult::DEV_UPG_INFO_ERR), in DefineCallResult()
64 DECLARE_CALL_RESULT_PROPERTY(CallResult::FORBIDDEN), in DefineCallResult()
65 DECLARE_CALL_RESULT_PROPERTY(CallResult::IPC_ERR), in DefineCallResult()
66 DECLARE_CALL_RESULT_PROPERTY(CallResult::TIME_OUT), in DefineCallResult()
67 DECLARE_CALL_RESULT_PROPERTY(CallResult::DB_ERROR), in DefineCallResult()
[all …]
Dclient_helper.cpp595 bool ClientHelper::IsCommonError(CallResult callResult) in IsCommonError()
597 return callResult == CallResult::UN_SUPPORT || callResult == CallResult::NOT_SYSTEM_APP || in IsCommonError()
598 callResult == CallResult::APP_NOT_GRANTED || callResult == CallResult::PARAM_ERR; in IsCommonError()
601 int32_t ClientHelper::ConvertToErrorCode(CallResult callResult) in ConvertToErrorCode()
603 if (IsCommonError(callResult) || callResult == CallResult::SUCCESS) { in ConvertToErrorCode()
676 CallResult errCode = CallResult::PARAM_ERR; in NapiThrowParamError()
734 return businessError.errorNum != CallResult::SUCCESS; in IsErrorExist()
/base/update/updateservice/services/engine/src/
Dupdate_service_impl_firmware.cpp62 businessError.Build(CallResult::FAIL, "download error"); in Download()
78 businessError.Build(CallResult::UN_SUPPORT, "pause download not support"); in PauseDownload()
87 businessError.Build(CallResult::UN_SUPPORT, "resume download not support"); in ResumeDownload()
144 businessError.Build(CallResult::SUCCESS, "start GetNewVersionDescription"); in GetNewVersionDescription()
149 businessError.Build(CallResult::FAIL, "GetNewVersionDescription failed"); in GetNewVersionDescription()
159 businessError.Build(CallResult::FAIL, "GetNewVersionDescription failed"); in GetNewVersionDescription()
177 businessError.errorNum = CallResult::SUCCESS; in GetCurrentVersionInfo()
194 businessError.Build(CallResult::FAIL, "GetCurrentVersionDescription failed"); in GetCurrentVersionDescription()
202 businessError.Build(CallResult::FAIL, "GetCurrentVersionDescription failed"); in GetCurrentVersionDescription()
212 businessError.Build(CallResult::SUCCESS, "GetCurrentVersionDescription ok"); in GetCurrentVersionDescription()
[all …]
Dupdate_service_local_updater.cpp32 businessError.errorNum = CallResult::SUCCESS; in ApplyNewVersion()
48 businessError.errorNum = CallResult::SUCCESS; in VerifyUpgradePackage()
Dupdate_service_restorer.cpp34 businessError.errorNum = CallResult::SUCCESS; in FactoryReset()
Dupdate_service.cpp255 businessError.errorNum = CallResult::SUCCESS; in PauseDownload()
256 businessError.Build(CallResult::UN_SUPPORT, "PauseDownload unsupport"); in PauseDownload()
264 businessError.Build(CallResult::UN_SUPPORT, "ResumeDownload unsupport"); in ResumeDownload()
Dmessage_parcel_helper.cpp117 businessError.errorNum = static_cast<CallResult>(reply.ReadInt32()); in ReadBusinessError()
/base/update/updateservice/frameworks/js/napi/base/include/
Dclient_helper.h219 static int32_t ConvertToErrorCode(CallResult callResult);
228 static bool IsCommonError(CallResult callResult);
/base/update/updateservice/services/firmware/upgrade/flow/src/
Dfirmware_manager.cpp160 businessError.Build(CallResult::FAIL, "no download task to cancel!"); in DoCancelDownload()
274 businessError.Build(CallResult::FAIL, "please check status before clear error"); in DoClearError()
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.h181 businessError.Build(static_cast<CallResult>(workResult_), msg); in BuildWorkBusinessErr()
Dupdate_session.cpp73 businessError_.errorNum = CallResult::TIME_OUT; in ExecuteWork()