Home
last modified time | relevance | path

Searched refs:CallResult (Results 1 - 21 of 21) sorted by relevance

/base/update/updateservice/foundations/model/include/
H A Dcall_result.h24 enum class CallResult { class
43 constexpr int32_t INT_CALL_SUCCESS = CAST_INT(CallResult::SUCCESS);
44 constexpr int32_t INT_CALL_FAIL = CAST_INT(CallResult::FAIL);
45 constexpr int32_t INT_UN_SUPPORT = CAST_INT(CallResult::UN_SUPPORT);
46 constexpr int32_t INT_FORBIDDEN = CAST_INT(CallResult::FORBIDDEN);
47 constexpr int32_t INT_CALL_IPC_ERR = CAST_INT(CallResult::IPC_ERR);
48 constexpr int32_t INT_APP_NOT_GRANTED = CAST_INT(CallResult::APP_NOT_GRANTED);
49 constexpr int32_t INT_NOT_SYSTEM_APP = CAST_INT(CallResult::NOT_SYSTEM_APP);
50 constexpr int32_t INT_PARAM_ERR = CAST_INT(CallResult::PARAM_ERR);
51 constexpr int32_t INT_DEV_UPG_INFO_ERR = CAST_INT(CallResult
[all...]
H A Dbusiness_error.h32 CallResult errorNum = CallResult::SUCCESS;
35 BusinessError &Build(CallResult callResult, const std::string &msg) in Build()
62 int32_t errorNumber = static_cast<int32_t>(CallResult::SUCCESS); in from_json()
64 businessError.errorNum = static_cast<CallResult>(errorNumber); in from_json()
/base/update/updateservice/services/firmware/upgrade/mode/src/
H A Dfirmware_install_apply_mode.cpp61 businessError_.Build(CallResult::FAIL, "no task!"); in GetStepAfterInit()
76 businessError_.Build(CallResult::FAIL, "upgradeOptions error"); in GetStepAfterInit()
83 businessError_.Build(CallResult::FAIL, "status error!"); in GetStepForInstallAndApplyOrder()
103 businessError_.Build(CallResult::FAIL, "install condition fail!"); in IsAllowInstall()
110 businessError_.Build(CallResult::FAIL, "install condition fail!"); in IsAllowInstall()
125 businessError_.Build(CallResult::FAIL, "check component failed"); in IsUpgradeFilesReady()
H A Dfirmware_download_mode.cpp54 businessError_.Build(CallResult::FAIL, "no task!"); in GetStepAfterInit()
63 businessError_.Build(CallResult::FAIL, "status error!"); in GetStepAfterInit()
69 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
77 businessError_.Build(CallResult::FAIL, "download no network!"); in GetStepAfterInit()
86 businessError_.Build(CallResult::FAIL, "download condition fail!"); in GetStepAfterInit()
H A Dfirmware_manual_check_mode.cpp55 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
61 businessError_.Build(CallResult::FAIL, "system busy!"); in GetStepAfterInit()
68 businessError_.Build(CallResult::FAIL, "CheckNewVersionService no network!"); in GetStepAfterInit()
H A Dfirmware_install_apply_mode_empty.cpp62 businessError_.Build(CallResult::FAIL, "no task!"); in GetTask()
H A Dfirmware_download_mode_empty.cpp63 businessError_.Build(CallResult::FAIL, "no task!"); in GetTask()
/base/update/updateservice/services/engine/src/
H A Dupdate_service_impl_firmware.cpp60 businessError.errorNum = CallResult::TIME_OUT; in CheckNewVersion()
75 businessError.Build(CallResult::FAIL, "repeat download error"); in Download()
84 businessError.Build(CallResult::FAIL, "download error"); in Download()
100 businessError.Build(CallResult::UN_SUPPORT, "pause download not support"); in PauseDownload()
109 businessError.Build(CallResult::UN_SUPPORT, "resume download not support"); in ResumeDownload()
166 businessError.Build(CallResult::SUCCESS, "start GetNewVersionDescription"); in GetNewVersionDescription()
171 businessError.Build(CallResult::FAIL, "GetNewVersionDescription failed"); in GetNewVersionDescription()
181 businessError.Build(CallResult::FAIL, "GetNewVersionDescription failed"); in GetNewVersionDescription()
188 businessError.Build(CallResult::FAIL, "GetNewVersionDescription failed"); in GetNewVersionDescription()
205 businessError.errorNum = CallResult in GetCurrentVersionInfo()
[all...]
H A Dupdate_service_local_updater.cpp32 businessError.errorNum = CallResult::SUCCESS; in ApplyNewVersion()
46 businessError.errorNum = CallResult::SUCCESS; in VerifyUpgradePackage()
H A Dupdate_service_restorer.cpp36 businessError.errorNum = CallResult::SUCCESS; in FactoryReset()
H A Dupdate_service.cpp260 businessError.errorNum = CallResult::SUCCESS; in PauseDownload()
261 businessError.Build(CallResult::UN_SUPPORT, "PauseDownload unsupport"); in PauseDownload()
269 businessError.Build(CallResult::UN_SUPPORT, "ResumeDownload unsupport"); in ResumeDownload()
/base/update/updateservice/frameworks/js/napi/update/src/
H A Ddefine_property.cpp66 DECLARE_CALL_RESULT_PROPERTY(CallResult::APP_NOT_GRANTED), in DefineCallResult()
67 DECLARE_CALL_RESULT_PROPERTY(CallResult::PARAM_ERR), in DefineCallResult()
68 DECLARE_CALL_RESULT_PROPERTY(CallResult::UN_SUPPORT), in DefineCallResult()
69 DECLARE_CALL_RESULT_PROPERTY(CallResult::SUCCESS), in DefineCallResult()
70 DECLARE_CALL_RESULT_PROPERTY(CallResult::FAIL), in DefineCallResult()
71 DECLARE_CALL_RESULT_PROPERTY(CallResult::DEV_UPG_INFO_ERR), in DefineCallResult()
72 DECLARE_CALL_RESULT_PROPERTY(CallResult::FORBIDDEN), in DefineCallResult()
73 DECLARE_CALL_RESULT_PROPERTY(CallResult::IPC_ERR), in DefineCallResult()
74 DECLARE_CALL_RESULT_PROPERTY(CallResult::TIME_OUT), in DefineCallResult()
75 DECLARE_CALL_RESULT_PROPERTY(CallResult in DefineCallResult()
[all...]
/base/update/updateservice/frameworks/js/napi/session/src/
H A Dnapi_common_utils.cpp214 CallResult errCode = CallResult::PARAM_ERR; in NapiThrowParamError()
227 CallResult errCode = CallResult::NOT_SYSTEM_APP; in NapiThrowNotSystemAppError()
239 CallResult errCode = CallResult::APP_NOT_GRANTED; in NapiThrowPermissionError()
319 if (businessError.errorNum == CallResult::SUCCESS) { in BuildBusinessError()
333 int32_t NapiCommonUtils::ConvertToErrorCode(CallResult callResult) in ConvertToErrorCode()
335 if (IsCommonError(callResult) || callResult == CallResult::SUCCESS) { in ConvertToErrorCode()
347 napi_get_boolean(env, businessError.errorNum == CallResult in BuildCallFuncResult()
[all...]
H A Dnapi_session.cpp70 businessError_.errorNum = CallResult::TIME_OUT; in ExecuteWork()
/base/update/updateservice/frameworks/js/napi/session/include/
H A Dnapi_common_utils.h60 static int32_t ConvertToErrorCode(CallResult callResult);
70 static bool IsCommonError(CallResult callResult);
H A Dbase_promise_session.h63 if (businessError.errorNum == CallResult::SUCCESS) { in NotifyJS()
H A Dnapi_session.h145 businessError.Build(static_cast<CallResult>(workResult_), msg); in BuildWorkBusinessErr()
H A Dbase_async_session.h90 if (businessError.errorNum != CallResult::SUCCESS) { in NotifyJS()
/base/update/updateservice/napi/include/
H A Dnapi_base.h171 bool isSuccess = clientContext->businessError_.errorNum == CallResult::SUCCESS; in BuildResult()
/base/update/updateservice/services/firmware/upgrade/flow/src/
H A Dfirmware_manager.cpp160 businessError.Build(CallResult::FAIL, "no download task to cancel!"); in DoCancelDownload()
275 businessError.Build(CallResult::FAIL, "please check status before clear error"); in DoClearError()
/base/update/updateservice/interfaces/inner_api/feature/update/model/message_parcel/src/
H A Dmessage_parcel_helper.cpp125 businessError.errorNum = static_cast<CallResult>(reply.ReadInt32()); in ReadBusinessError()

Completed in 15 milliseconds