Home
last modified time | relevance | path

Searched refs:errorCallback (Results 1 – 25 of 41) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
Dpage_router_manager.cpp179 if (target.errorCallback != nullptr) { in PushNamedRoute()
180 … target.errorCallback("The pages are pushed too much.", Framework::ERROR_CODE_PAGE_STACK_FULL); in PushNamedRoute()
626 if (target.errorCallback != nullptr) { in PushOhmUrl()
627 … target.errorCallback("The pages are pushed too much.", Framework::ERROR_CODE_PAGE_STACK_FULL); in PushOhmUrl()
680 …auto silentInstallErrorCallBack = [errorCallback = target.errorCallback, taskExecutor, instanceId]( in StartPush()
683 …taskExecutor->PostTask([errorCallback, errorCode, errorMsg]() { errorCallback(errorMsg, errorCode)… in StartPush()
697 if (target.errorCallback != nullptr) { in StartPush()
698 … target.errorCallback("The pages are pushed too much.", Framework::ERROR_CODE_PAGE_STACK_FULL); in StartPush()
707 if (info.errorCallback != nullptr) { in StartPush()
708 info.errorCallback("The uri of router is not exist.", Framework::ERROR_CODE_URI_ERROR); in StartPush()
[all …]
Dfrontend_delegate_declarative_ng.cpp389 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback() argument
393 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushWithCallback()
398 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushNamedRoute() argument
402 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushNamedRoute()
421 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceWithCallback() argument
425 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceWithCallback()
430 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceNamedRoute() argument
434 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceNamedRoute()
Dfrontend_delegate_declarative_ng.h98 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
100 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
104 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
106 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
Dpage_router_manager.h48 std::function<void(const std::string&, int32_t)> errorCallback; member
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
Djs_runtime.h53 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr)
77 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) = 0;
82 std::function<void(const std::string&, const std::string&)>&& errorCallback) {} in SetErrorEventHandler() argument
Dark_js_runtime.h73 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
92 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
128 void SetErrorEventHandler(ErrorEventHandler&& errorCallback) override in SetErrorEventHandler() argument
130 errorCallback_ = std::move(errorCallback); in SetErrorEventHandler()
Dark_js_runtime.cpp155 const std::function<void(const std::string&, int32_t)>& errorCallback) in ExecuteJsBin() argument
160 HandleUncaughtException(errorCallback); in ExecuteJsBin()
275 const std::function<void(const std::string&, int32_t)>& errorCallback) in HandleUncaughtException() argument
283 if (!exception.IsEmpty() && !exception->IsHole() && errorCallback != nullptr) { in HandleUncaughtException()
284errorCallback("loading js file has crash or the uri of router is not exist.", Framework::ERROR_COD… in HandleUncaughtException()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
Drender_surface_impl.cpp39 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor](const std::string& errorId, in InitSurface() local
41 extSurface_ = AceType::MakeRefPtr<ExtSurface>(container->GetPipelineContext(), errorCallback); in InitSurface()
43 extSurface_->Create([weak = WeakClaim(this), errorCallback](int64_t id) mutable { in InitSurface()
Dmedia_player_impl.cpp49 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreateMediaPlayer() local
61 player_ = AceType::MakeRefPtr<Player>(context, std::move(errorCallback)); in CreateMediaPlayer()
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/
Dform_frontend_declarative.cpp117 std::function<void(const std::string&, const std::string&)>&& errorCallback) in SetErrorEventHandler() argument
124 return jsEngine->SetErrorEventHandler(std::move(errorCallback)); in SetErrorEventHandler()
Dform_frontend_declarative.h49 std::function<void(const std::string&, const std::string&)>&& errorCallback) override;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
Dfrontend_delegate_declarative.h53 std::function<void(const std::string&, int32_t)> errorCallback; member
143 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
145 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
151 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
153 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
157 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
159 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
387 const std::function<void(const std::string&, int32_t)>& errorCallback);
389 const std::function<void(const std::string&, int32_t)>& errorCallback);
Dfrontend_delegate_declarative.cpp828 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback() argument
833 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushWithCallback()
837 Push(PageTarget(uri, static_cast<RouterMode>(routerMode)), params, errorCallback); in PushWithCallback()
841 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushNamedRoute() argument
845 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushNamedRoute()
873 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceWithCallback() argument
878 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceWithCallback()
882 Replace(PageTarget(uri, static_cast<RouterMode>(routerMode)), params, errorCallback); in ReplaceWithCallback()
886 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceNamedRoute() argument
890 … NG::RouterPageInfo({ uri, params, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceNamedRoute()
[all …]
/foundation/arkui/ace_engine/interfaces/napi/kits/router/
Djs_router.cpp313 auto errorCallback = [asyncContext](const std::string& message, int32_t errCode) mutable { in CommonRouterWithCallbackProcess() local
322 callback(asyncContext, errorCallback); in CommonRouterWithCallbackProcess()
329 …to callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSRouterPushWithCallback() argument
335 …delegate->PushWithCallback(context->uriString, context->paramsString, errorCallback, context->mode… in JSRouterPushWithCallback()
343 …to callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSRouterReplaceWithCallback() argument
349 …delegate->ReplaceWithCallback(context->uriString, context->paramsString, errorCallback, context->m… in JSRouterReplaceWithCallback()
357 …to callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSPushNamedRoute() argument
363 … delegate->PushNamedRoute(context->uriString, context->paramsString, errorCallback, context->mode); in JSPushNamedRoute()
371 …to callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSReplaceNamedRoute() argument
377 …delegate->ReplaceNamedRoute(context->uriString, context->paramsString, errorCallback, context->mod… in JSReplaceNamedRoute()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
Dcamera_input.cpp151 void CameraInput::SetErrorCallback(std::shared_ptr<ErrorCallback> errorCallback) in SetErrorCallback() argument
153 if (errorCallback == nullptr) { in SetErrorCallback()
156 errorCallback_ = errorCallback; in SetErrorCallback()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
Dfrontend_delegate.h63 … const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0)
66 … const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0)
72 … const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0)
75 … const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0)
Dfrontend_delegate_impl.cpp571 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback() argument
573 Push(uri, params, errorCallback); in PushWithCallback()
577 const std::function<void(const std::string&, int32_t)>& errorCallback) in Push() argument
586 if (errorCallback != nullptr) { in Push()
587 errorCallback("The pages are pushed too much.", ERROR_CODE_PAGE_STACK_FULL); in Push()
596 if (errorCallback != nullptr) { in Push()
597 errorCallback("", ERROR_CODE_NO_ERROR); in Push()
602 if (errorCallback != nullptr) { in Push()
603 errorCallback("The uri of router is not exist.", ERROR_CODE_URI_ERROR); in Push()
624 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceWithCallback() argument
[all …]
Dfrontend_delegate_impl.h231 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
234 …const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ov…
360 const std::function<void(const std::string&, int32_t)>& errorCallback);
362 const std::function<void(const std::string&, int32_t)>& errorCallback);
/foundation/arkui/ace_engine/frameworks/core/components/camera/
Dcamera_element.cpp422 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreateTexture() local
431 texture_ = AceType::MakeRefPtr<Texture>(context_, errorCallback); in CreateTexture()
433 texture_->Create([weak = WeakClaim(this), errorCallback](int64_t id) mutable { in CreateTexture()
436 cameraElement->CreateCamera(id, std::move(errorCallback)); in CreateTexture()
441 void CameraElement::CreateCamera(int64_t id, ErrorCallback&& errorCallback) in CreateCamera() argument
443 camera_ = AceType::MakeRefPtr<Camera>(id, context_, std::move(errorCallback), devicePosition_); in CreateCamera()
Dcamera_element.h90 void CreateCamera(int64_t id, ErrorCallback &&errorCallback);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
Djsi_declarative_engine.h253 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
263 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
336 std::function<void(const std::string&, const std::string&)>&& errorCallback) override;
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
Dxcomponent_element.cpp205 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreatePlatformResource() local
215 texture_ = AceType::MakeRefPtr<NativeTexture>(context_, errorCallback); in CreatePlatformResource()
220 [weak = WeakClaim(this), errorCallback](int64_t id) mutable { in CreatePlatformResource()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/common/
Djs_engine.h118 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr)
224 std::function<void(const std::string&, const std::string&)>&& errorCallback) {} in SetErrorEventHandler() argument
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/input/
Dcamera_input.h229 void SetErrorCallback(std::shared_ptr<ErrorCallback> errorCallback);
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/
DOHAudioRenderer.cpp359 std::shared_ptr<AudioRendererErrorCallback> errorCallback = in SetRendererCallback() local
361 audioRenderer_->SetAudioRendererErrorCallback(errorCallback); in SetRendererCallback()

12