/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | js_runtime.h | 55 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 D | ark_js_runtime.h | 75 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 D | ark_js_runtime.cpp | 235 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 D | render_texture_impl.cpp | 37 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 D | render_surface_impl.cpp | 32 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 D | media_player_impl.cpp | 45 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 D | page_router_manager.cpp | 88 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 D | declarative_frontend_ng.cpp | 93 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 D | frontend_delegate_declarative_ng.h | 103 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 D | frontend_delegate_declarative_ng.cpp | 389 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 D | page_router_manager.h | 64 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 D | form_frontend_declarative.cpp | 129 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 D | form_frontend_declarative.h | 51 std::function<void(const std::string&, const std::string&)>&& errorCallback) override;
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ |
H A D | frontend_delegate_declarative.h | 55 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 D | frontend_delegate_declarative.cpp | 821 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 D | js_router.cpp | 330 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 D | camera_element.cpp | 419 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 D | camera_element.h | 90 void CreateCamera(int64_t id, ErrorCallback &&errorCallback);
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | frontend_delegate.h | 75 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 D | frontend_delegate_impl.cpp | 596 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 D | frontend_delegate_impl.h | 231 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 D | jsi_declarative_engine.h | 289 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 D | xcomponent_element.cpp | 202 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 D | js_engine.h | 124 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 D | camera_input.cpp | 254 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()
|