Home
last modified time | relevance | path

Searched refs:errorCallback (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djs_runtime.h55 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) in ExecuteJsBin()
61 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) in ExecuteJsBinForAOT()
85 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) = 0;
87 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) = 0;
96 std::function<void(const std::string&, const std::string&)>&& errorCallback) {} in SetErrorEventHandler()
95 SetErrorEventHandler( std::function<void(const std::string&, const std::string&)>&& errorCallback) SetErrorEventHandler() argument
H A Dark_js_runtime.h75 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
77 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
96 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
98 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
151 void SetErrorEventHandler(ErrorEventHandler&& errorCallback) override
153 errorCallback_ = std::move(errorCallback);
H A Dark_js_runtime.cpp235 const std::function<void(const std::string&, int32_t)>& errorCallback) in ExecuteJsBin()
241 HandleUncaughtException(trycatch, errorCallback); in ExecuteJsBin()
246 const std::function<void(const std::string&, int32_t)>& errorCallback) in ExecuteJsBinForAOT()
252 HandleUncaughtException(trycatch, errorCallback); in ExecuteJsBinForAOT()
377 const std::function<void(const std::string&, int32_t)>& errorCallback) in HandleUncaughtException()
379 if (errorCallback != nullptr) { in HandleUncaughtException()
382 errorCallback("loading js file has crash or the uri of router is not exist.", in HandleUncaughtException()
395 HandleUncaughtExceptionWithoutNativeEngine(trycatch, errorCallback); in HandleUncaughtException()
399 const std::function<void(const std::string&, int32_t)>& errorCallback) in HandleUncaughtExceptionWithoutNativeEngine()
234 ExecuteJsBin(const std::string& fileName, const std::function<void(const std::string&, int32_t)>& errorCallback) ExecuteJsBin() argument
245 ExecuteJsBinForAOT(const std::string& fileName, const std::function<void(const std::string&, int32_t)>& errorCallback) ExecuteJsBinForAOT() argument
376 HandleUncaughtException(panda::TryCatch& trycatch, const std::function<void(const std::string&, int32_t)>& errorCallback) HandleUncaughtException() argument
398 HandleUncaughtExceptionWithoutNativeEngine(panda::TryCatch& trycatch, const std::function<void(const std::string&, int32_t)>& errorCallback) HandleUncaughtExceptionWithoutNativeEngine() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drender_texture_impl.cpp37 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in InitSurface() local
41 extTexture_ = AceType::MakeRefPtr<ExtTexture>(container->GetPipelineContext(), errorCallback); in InitSurface()
43 extTexture_->Create([weak = WeakClaim(this), errorCallback](int64_t id) mutable { in InitSurface()
H A Drender_surface_impl.cpp32 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in InitSurface() local
36 extSurface_ = AceType::MakeRefPtr<ExtSurface>(container->GetPipelineContext(), errorCallback); in InitSurface()
38 extSurface_->Create([weak = WeakClaim(this), errorCallback](int64_t id) mutable { in InitSurface()
H A Dmedia_player_impl.cpp45 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreateMediaPlayer() local
59 player_ = AceType::MakeRefPtr<Player>(context, std::move(errorCallback)); in CreateMediaPlayer()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
H A Dpage_router_manager.cpp88 auto errorCallback = [](const std::string& errorMsg, int32_t errorCode) { in RunPage() local
92 LoadOhmUrlPage(info.url, std::move(loadTask), errorCallback, in RunPage()
271 if (target.errorCallback != nullptr) { in PushNamedRouteInner()
272 target.errorCallback("The pages are pushed too much.", ERROR_CODE_PAGE_STACK_FULL); in PushNamedRouteInner()
1108 if (target.errorCallback != nullptr) { in PushOhmUrl()
1109 target.errorCallback("The pages are pushed too much.", ERROR_CODE_PAGE_STACK_FULL); in PushOhmUrl()
1157 LoadOhmUrlPage(target.url, std::move(loadTask), target.errorCallback, in StartPush()
1169 if (target.errorCallback != nullptr) { in StartPush()
1170 target.errorCallback("The pages are pushed too much.", ERROR_CODE_PAGE_STACK_FULL); in StartPush()
1178 if (info.errorCallback ! in StartPush()
2222 LoadOhmUrlPage(const std::string& url, std::function<void()>&& finishCallback, const std::function<void(const std::string& errorMsg, int32_t errorCode)>& errorCallback, const std::string& finishCallbackTaskName, const std::string& errorCallbackTaskName) LoadOhmUrlPage() argument
[all...]
H A Ddeclarative_frontend_ng.cpp93 const std::function<void(const std::string&, int32_t)>& errorCallback) { in InitializeDelegate()
98 return jsEngine->LoadPageSource(url, errorCallback); in InitializeDelegate()
103 const std::function<void(const std::string&, int32_t)>& errorCallback) { in InitializeDelegate()
108 return jsEngine->LoadPageSource(content, errorCallback); in InitializeDelegate()
H A Dfrontend_delegate_declarative_ng.h103 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
105 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
109 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
111 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
H A Dfrontend_delegate_declarative_ng.cpp389 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback()
393 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushWithCallback()
398 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushNamedRoute()
402 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushNamedRoute()
422 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceWithCallback()
426 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceWithCallback()
431 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceNamedRoute()
435 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceNamedRoute()
388 PushWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) PushWithCallback() argument
397 PushNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) PushNamedRoute() argument
421 ReplaceWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) ReplaceWithCallback() argument
430 ReplaceNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) ReplaceNamedRoute() argument
H A Dpage_router_manager.h64 std::function<void(const std::string&, int32_t)> errorCallback; member
299 const std::function<void(const std::string& errorMsg, int32_t errorCode)>& errorCallback,
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/
H A Dform_frontend_declarative.cpp129 std::function<void(const std::string&, const std::string&)>&& errorCallback) in SetErrorEventHandler()
136 return jsEngine->SetErrorEventHandler(std::move(errorCallback)); in SetErrorEventHandler()
128 SetErrorEventHandler( std::function<void(const std::string&, const std::string&)>&& errorCallback) SetErrorEventHandler() argument
H A Dform_frontend_declarative.h51 std::function<void(const std::string&, const std::string&)>&& errorCallback) override;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
H A Dfrontend_delegate_declarative.h55 std::function<void(const std::string&, int32_t)> errorCallback; member
149 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
151 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
157 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
159 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
163 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
165 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
433 const std::function<void(const std::string&, int32_t)>& errorCallback);
435 const std::function<void(const std::string&, int32_t)>& errorCallback);
H A Dfrontend_delegate_declarative.cpp821 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback()
829 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushWithCallback()
833 Push(PageTarget(uri, static_cast<RouterMode>(routerMode)), params, errorCallback); in PushWithCallback() local
837 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushNamedRoute()
844 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in PushNamedRoute()
879 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceWithCallback()
887 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceWithCallback()
891 Replace(PageTarget(uri, static_cast<RouterMode>(routerMode)), params, errorCallback); in ReplaceWithCallback() local
895 bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in ReplaceNamedRoute()
902 NG::RouterPageInfo({ uri, params, recoverable, static_cast<NG::RouterMode>(routerMode), errorCallback })); in ReplaceNamedRoute()
820 PushWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) PushWithCallback() argument
836 PushNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) PushNamedRoute() argument
878 ReplaceWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) ReplaceWithCallback() argument
894 ReplaceNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) ReplaceNamedRoute() argument
1213 Push(const PageTarget& target, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) Push() argument
1231 StartPush(const PageTarget& target, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) StartPush() argument
1264 Replace(const PageTarget& target, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) Replace() argument
1282 StartReplace(const PageTarget& target, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) StartReplace() argument
[all...]
/foundation/arkui/ace_engine/interfaces/napi/kits/router/
H A Djs_router.cpp330 auto errorCallback = [asyncContext](const std::string& message, int32_t errCode) mutable { in CommonRouterWithCallbackProcess() local
339 callback(asyncContext, errorCallback); in CommonRouterWithCallbackProcess()
345 auto callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSRouterPushWithCallback()
354 context->recoverable, errorCallback, context->mode); in JSRouterPushWithCallback()
357 context->recoverable, errorCallback, context->mode); in JSRouterPushWithCallback()
365 auto callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSRouterReplaceWithCallback()
374 context->recoverable, errorCallback, context->mode); in JSRouterReplaceWithCallback()
377 context->recoverable, errorCallback, context->mode); in JSRouterReplaceWithCallback()
385 auto callback = [](std::shared_ptr<RouterAsyncContext> context, const ErrorCallback& errorCallback) { in JSPushNamedRoute()
392 context->recoverable, errorCallback, contex in JSPushNamedRoute()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/camera/
H A Dcamera_element.cpp419 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreateTexture() local
428 texture_ = AceType::MakeRefPtr<Texture>(context_, errorCallback); in CreateTexture()
430 texture_->Create([weak = WeakClaim(this), errorCallback](int64_t id) mutable { in CreateTexture()
433 cameraElement->CreateCamera(id, std::move(errorCallback)); in CreateTexture()
438 void CameraElement::CreateCamera(int64_t id, ErrorCallback&& errorCallback) in CreateCamera() argument
440 camera_ = AceType::MakeRefPtr<Camera>(id, context_, std::move(errorCallback), devicePosition_); in CreateCamera()
H A Dcamera_element.h90 void CreateCamera(int64_t id, ErrorCallback &&errorCallback);
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Dfrontend_delegate.h75 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) in PushWithCallback()
78 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) in PushNamedRoute()
84 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) in ReplaceWithCallback()
87 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) in ReplaceNamedRoute()
74 PushWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) PushWithCallback() argument
77 PushNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) PushNamedRoute() argument
83 ReplaceWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ReplaceWithCallback() argument
86 ReplaceNamedRoute(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) ReplaceNamedRoute() argument
H A Dfrontend_delegate_impl.cpp596 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) in PushWithCallback()
598 Push(uri, params, errorCallback); in PushWithCallback()
602 const std::function<void(const std::string&, int32_t)>& errorCallback) in Push()
611 if (errorCallback != nullptr) { in Push()
612 errorCallback("The pages are pushed too much.", ERROR_CODE_PAGE_STACK_FULL); in Push()
620 if (errorCallback != nullptr) { in Push()
621 errorCallback("", ERROR_CODE_NO_ERROR); in Push()
626 if (errorCallback != nullptr) { in Push()
627 errorCallback("The uri of router is not exist.", ERROR_CODE_URI_ERROR); in Push()
648 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_ in ReplaceWithCallback()
595 PushWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) PushWithCallback() argument
601 Push(const std::string& uri, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) Push() argument
647 ReplaceWithCallback(const std::string& uri, const std::string& params, bool recoverable, const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode) ReplaceWithCallback() argument
653 Replace(const std::string& uri, const std::string& params, const std::function<void(const std::string&, int32_t)>& errorCallback) Replace() argument
[all...]
H A Dfrontend_delegate_impl.h231 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
234 const std::function<void(const std::string&, int32_t)>& errorCallback, uint32_t routerMode = 0) override;
358 const std::function<void(const std::string&, int32_t)>& errorCallback);
360 const std::function<void(const std::string&, int32_t)>& errorCallback);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_engine.h289 std::string& urlName, const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr);
299 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
301 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) override;
381 void SetErrorEventHandler(std::function<void(const std::string&, const std::string&)>&& errorCallback) override;
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
H A Dxcomponent_element.cpp202 auto errorCallback = [weak = WeakClaim(this), uiTaskExecutor]( in CreatePlatformResource() local
207 LOGE("XComponentElement errorCallback"); in CreatePlatformResource()
212 texture_ = AceType::MakeRefPtr<NativeTexture>(context_, errorCallback); in CreatePlatformResource()
217 [weak = WeakClaim(this), errorCallback](int64_t id) mutable { in CreatePlatformResource()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/common/
H A Djs_engine.h124 const std::string& /* url */, const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) in LoadPageSource()
131 const std::function<void(const std::string&, int32_t)>& errorCallback = nullptr) in LoadPageSource()
288 virtual void SetErrorEventHandler(std::function<void(const std::string&, const std::string&)>&& errorCallback) {} in SetErrorEventHandler() argument
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
H A Dcamera_input.cpp254 void CameraInput::SetErrorCallback(std::shared_ptr<ErrorCallback> errorCallback) in SetErrorCallback() argument
256 CHECK_ERROR_PRINT_LOG(errorCallback == nullptr, "SetErrorCallback: Unregistering error callback"); in SetErrorCallback()
258 errorCallback_ = errorCallback; in SetErrorCallback()

Completed in 29 milliseconds

12