Home
last modified time | relevance | path

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

/ohos5.0/base/update/updateservice/foundations/model/include/
H A Dcall_result.h24 enum class CallResult { enum
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);
50 constexpr int32_t INT_PARAM_ERR = CAST_INT(CallResult::PARAM_ERR);
52 constexpr int32_t INT_TIME_OUT = CAST_INT(CallResult::TIME_OUT);
53 constexpr int32_t INT_DB_ERROR = CAST_INT(CallResult::DB_ERROR);
54 constexpr int32_t INT_IO_ERROR = CAST_INT(CallResult::IO_ERROR);
[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()
/ohos5.0/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()
205 businessError.errorNum = CallResult::SUCCESS; in GetCurrentVersionInfo()
254 businessError.errorNum = CallResult::SUCCESS; in GetTaskInfo()
276 businessError.errorNum = CallResult::SUCCESS; in SetUpgradePolicy()
304 businessError.errorNum = CallResult::SUCCESS; in Cancel()
[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()
/ohos5.0/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()
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::DB_ERROR), in DefineCallResult()
76 DECLARE_CALL_RESULT_PROPERTY(CallResult::IO_ERROR), in DefineCallResult()
[all …]
/ohos5.0/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()
/ohos5.0/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::SUCCESS, &obj); in BuildCallFuncResult()
351 bool NapiCommonUtils::IsCommonError(CallResult callResult) in IsCommonError()
353 return callResult == CallResult::UN_SUPPORT || callResult == CallResult::NOT_SYSTEM_APP || in IsCommonError()
354 callResult == CallResult::APP_NOT_GRANTED || callResult == CallResult::PARAM_ERR; in IsCommonError()
H A Dnapi_session.cpp70 businessError_.errorNum = CallResult::TIME_OUT; in ExecuteWork()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/
H A Dfunction.h141 struct CallResult { struct
162 struct CallResult<void> { argument
173 CallResult<Ret> CallMetaFunctionImpl(const IFunction::Ptr& func, IndexSequence<Index...>, Args&&...…
194 return CallResult<Ret> { context, true };
198 return CallResult<Ret> { context, true, *p };
213 CallResult<Ret> CallMetaFunction(const IFunction::Ptr& func, Args&&... args)
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/base/update/updateservice/napi/include/
H A Dnapi_base.h171 bool isSuccess = clientContext->businessError_.errorNum == CallResult::SUCCESS; in BuildResult()
/ohos5.0/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()
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Dtypescript-to-arkts-migration-guide.md59 class CallResult {
64 let res: CallResult = some_api_function('hello', 'world');
/ohos5.0/docs/en/application-dev/quick-start/
H A Dtypescript-to-arkts-migration-guide.md98 class CallResult {
103 let res: CallResult = some_api_function('hello', 'world')