/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_declarative_group_js_bridge.cpp | 49 runtime_ = runtime; in InitializeGroupJsBridge() 65 shared_ptr<JsValue> group = runtime_->NewObject(); in LoadJsBridgeFunction() 66 bool succ = group->SetProperty(runtime_, "sendGroupMessage", runtime_->NewFunction(ProcessJsRequest)); in LoadJsBridgeFunction() 71 succ = group->SetProperty(runtime_, "sendGroupMessageSync", runtime_->NewFunction(ProcessJsRequestSync)); in LoadJsBridgeFunction() 76 succ = runtime_->GetGlobal()->SetProperty(runtime_, "group", group); in LoadJsBridgeFunction() 289 if (argv[resolveCallbackIndex]->IsNull(runtime_) || !argv[resolveCallbackIndex]->IsFunction(runtime_) || in SetModuleGroupCallbackFuncs() [all...] |
H A D | jsi_declarative_engine.cpp | 414 if (runtime_) { in ~JsiDeclarativeEngineInstance() 415 runtime_->RegisterUncaughtExceptionHandler(nullptr); in ~JsiDeclarativeEngineInstance() 416 runtime_->Reset(); in ~JsiDeclarativeEngineInstance() 418 runtime_.reset(); in ~JsiDeclarativeEngineInstance() 419 runtime_ = nullptr; in ~JsiDeclarativeEngineInstance() 428 runtime_ = runtime; in InitJsEnv() 431 runtime_.reset(new ArkJSRuntime()); in InitJsEnv() 434 if (runtime_ == nullptr) { in InitJsEnv() 440 auto arkRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime_); in InitJsEnv() 446 runtime_ in InitJsEnv() [all...] |
H A D | jsi_declarative_engine.h | 137 return runtime_; in GetJsRuntime() 198 if (!runtime_) { in InitAceModule() 201 bool result = runtime_->EvaluateJsCode(start, length); in InitAceModule() 254 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::final 274 JsiDeclarativeEngine(int32_t instanceId, void* runtime) : instanceId_(instanceId), runtime_(runtime) {} in JsiDeclarativeEngine() 503 void* runtime_ = nullptr; member in OHOS::Ace::Framework::JsiDeclarativeEngine
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_group_js_bridge.cpp | 50 runtime_ = runtime; in InitializeGroupJsBridge() 67 shared_ptr<JsValue> group = runtime_->NewObject(); in LoadJsBridgeFunction() 68 bool succ = group->SetProperty(runtime_, "sendGroupMessage", runtime_->NewFunction(ProcessJsRequest)); in LoadJsBridgeFunction() 74 succ = group->SetProperty(runtime_, "sendGroupMessageSync", runtime_->NewFunction(ProcessJsRequestSync)); in LoadJsBridgeFunction() 80 succ = runtime_->GetGlobal()->SetProperty(runtime_, "group", group); in LoadJsBridgeFunction() 410 if (argv[resolveCallbackIndex]->IsNull(runtime_) || !argv[resolveCallbackIndex]->IsFunction(runtime_) || in SetModuleGroupCallbackFuncs() [all...] |
H A D | jsi_engine.cpp | 2616 if (runtime_) { in ~JsiEngineInstance() 2617 runtime_->RegisterUncaughtExceptionHandler(nullptr); in ~JsiEngineInstance() 2618 runtime_->Reset(); in ~JsiEngineInstance() 2620 runtime_.reset(); in ~JsiEngineInstance() 2621 runtime_ = nullptr; in ~JsiEngineInstance() 2632 return runtime_; in GetJsRuntime() 2684 shared_ptr<JsValue> aceObj = runtime_->NewObject(); in RegisterAceModule() 2689 if (!aceObj->SetProperty(runtime_, "domCreateBody", runtime_->NewFunction(JsDomCreateBody))) { in RegisterAceModule() 2692 if (!aceObj->SetProperty(runtime_, "domAddElemen in RegisterAceModule() [all...] |
H A D | jsi_animator_bridge.h | 72 return runtime_; in GetRuntime() 79 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::JsiAnimatorBridge 94 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::JsiAnimatorTaskCreate 113 : runtime_(runtime), params_(params) {}; in JsiAnimatorTaskUpdate() 122 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::JsiAnimatorTaskUpdate
|
H A D | jsi_animation_bridge.h | 77 return runtime_; in GetRuntime() 85 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::JsiAnimationBridge 102 shared_ptr<JsRuntime> runtime_; member in OHOS::Ace::Framework::JsiAnimationBridgeTaskCreate
|
H A D | jsi_animator_bridge.cpp | 470 runtime_ = runtime; in JsiAnimatorBridge() 516 if (!runtime_) { in JsCreateAnimation() 537 AddListenerForEventCallback(AceType::WeakClaim(this), animator_, runtime_); in JsCreateAnimation() local 559 AddFrameListener(AceType::WeakClaim(this), keyframeAnimation, runtime_); in CreateDoubleAnimation() local 565 : bridge_(bridge), runtime_(runtime), param_(std::move(param)) in JsiAnimatorTaskCreate() 581 auto delegate = GetFrontendDelegate(runtime_); in AnimatorBridgeTaskFunc() 660 if (!runtime_) { in AnimatorBridgeTaskFunc() 666 UpdateAnimator(animator, animatorBridge, runtime_, params_); in AnimatorBridgeTaskFunc()
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | unified_data_test.cpp | 81 unifiedData.runtime_ = std::make_shared<Runtime>(); in HWTEST_F() 83 EXPECT_EQ(ret, unifiedData.runtime_->key.groupId); in HWTEST_F() 96 unifiedData.runtime_ = std::make_shared<Runtime>(); in HWTEST_F() 98 EXPECT_EQ(ret, unifiedData.runtime_); in HWTEST_F() 113 EXPECT_NE(unifiedData.runtime_, nullptr); in HWTEST_F()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/insight_intent_executor/ |
H A D | js_insight_intent_executor.cpp | 48 JsInsightIntentExecutor::JsInsightIntentExecutor(JsRuntime& runtime) : runtime_(runtime) in JsInsightIntentExecutor() 64 HandleScope handleScope(runtime_); in Init() 65 jsObj_ = JsInsightIntentExecutor::LoadJsCode(insightIntentInfo, runtime_); in Init() 71 auto env = runtime_.GetNapiEnv(); in Init() 223 auto* env = runtime_.GetNapiEnv(); in CallJsFunctionWithResultInner() 326 auto* env = runtime_.GetNapiEnv(); in HandleResultReturnedFromJsFunc() 382 HandleScope handleScope(runtime_); in ExecuteInsightIntentUIAbilityForeground() 388 auto* env = runtime_.GetNapiEnv(); in ExecuteInsightIntentUIAbilityForeground() 412 HandleScope handleScope(runtime_); in ExecuteInsightIntentUIAbilityBackground() 418 auto* env = runtime_ in ExecuteInsightIntentUIAbilityBackground() [all...] |
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/ |
H A D | bindable.h | 28 BindingObject(Runtime& runtime, T* ptr) : runtime_(runtime), object_(ptr, SimpleRelease<T>) {} in BindingObject() 51 return runtime_; in GetRuntime() 66 Runtime& runtime_; member in OHOS::AbilityRuntime::final
|
/foundation/ability/ability_runtime/test/unittest/appkit/ohos_application_test/ |
H A D | ohos_application_test.cpp | 70 * @tc.desc: Verify function OnForeground pointer runtime_ empty 76 EXPECT_TRUE(ohosApplication_->runtime_ == nullptr); in HWTEST_F() 83 * @tc.desc: Verify function OnForeground pointer runtime_ not empty 88 ohosApplication_->runtime_ = std::make_unique<AbilityRuntime::MockRuntime>(); in HWTEST_F() 90 EXPECT_TRUE(ohosApplication_->runtime_ != nullptr); in HWTEST_F() 97 * @tc.desc: Verify function OnBackground pointer runtime_ empty 103 EXPECT_TRUE(ohosApplication_->runtime_ == nullptr); in HWTEST_F() 110 * @tc.desc: Verify function OnBackground pointer runtime_ not empty 115 ohosApplication_->runtime_ = std::make_unique<AbilityRuntime::MockRuntime>(); in HWTEST_F() 117 EXPECT_TRUE(ohosApplication_->runtime_ ! in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | ohos_application.cpp | 76 if (runtime_ == nullptr) { in OnForeground() 77 TAG_LOGD(AAFwkTag::APPKIT, "NotifyApplicationState, runtime_ is nullptr"); in OnForeground() 80 runtime_->NotifyApplicationState(false); in OnForeground() 96 if (runtime_ == nullptr) { in OnBackground() 97 TAG_LOGD(AAFwkTag::APPKIT, "runtime_ is nullptr"); in OnBackground() 100 runtime_->NotifyApplicationState(true); in OnBackground() 159 runtime_ = std::move(runtime); in SetRuntime() 384 if (runtime_) { in AddAbilityStage() 385 runtime_->UpdatePkgContextInfoJson( in AddAbilityStage() 396 abilityStage = AbilityRuntime::AbilityStage::Create(runtime_, *hapModuleInf in AddAbilityStage() [all...] |
H A D | child_main_thread.cpp | 205 runtime_ = childProcessManager.CreateRuntime(bundleInfoCopy, hapModuleInfo, true, processInfo_->jitEnabled); in HandleLoadJs() 206 if (!runtime_) { in HandleLoadJs() 215 runtime_->StartDebugMode(debugOption); in HandleLoadJs() 218 childProcessManager.LoadJsFile(srcPath, hapModuleInfo, runtime_); in HandleLoadJs() 246 runtime_ = childProcessManager.CreateRuntime(*bundleInfo_, hapModuleInfo, true, processInfo_->jitEnabled); in HandleLoadArkTs() 247 if (!runtime_) { in HandleLoadArkTs() 256 runtime_->StartDebugMode(debugOption); in HandleLoadArkTs() 258 childProcessManager.LoadJsFile(srcEntry, hapModuleInfo, runtime_, processArgs_); in HandleLoadArkTs()
|
/foundation/ability/ability_runtime/test/unittest/cj_test_runner_test/ |
H A D | cj_test_runner_test.cpp | 77 std::unique_ptr<CJRuntime> runtime_; member in CjTestRunnerTest 103 runtime_ = runtime->Create(options_); in SetUp() 130 std::unique_ptr<Runtime> runtime = static_cast<std::unique_ptr<Runtime>>(std::move(runtime_)); in HWTEST_F()
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/ |
H A D | unified_data.cpp | 46 return this->runtime_->key.groupId; in GetGroupId() 51 return this->runtime_; in GetRuntime() 56 this->runtime_ = std::make_shared<Runtime>(runtime); in SetRuntime()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/ |
H A D | jsi_pa_engine.cpp | 204 shared_ptr<JsValue> aceObj = runtime_->NewObject(); in RegisterPaModule() 209 if (!aceObj->SetProperty(runtime_, "onCreateFinish", runtime_->NewFunction(JsOnCreateFinish))) { in RegisterPaModule() 212 if (!aceObj->SetProperty(runtime_, "handleCallback", runtime_->NewFunction(JsHandleCallback))) { in RegisterPaModule() 215 if (!aceObj->SetProperty(runtime_, "runLoopOnce", runtime_->NewFunction(JsRunLoopOnce))) { in RegisterPaModule() 218 if (!aceObj->SetProperty(runtime_, "runMicrotasks", runtime_->NewFunction(JsRunMicrotasks))) { in RegisterPaModule() 222 shared_ptr<JsValue> global = runtime_ in RegisterPaModule() [all...] |
/foundation/ability/form_fwk/services/form_render_service/src/ |
H A D | form_render_record.cpp | 447 if (runtime_) {
in CreateRuntime() 471 runtime_ = AbilityRuntime::Runtime::Create(options);
in CreateRuntime() 472 if (runtime_ == nullptr) {
in CreateRuntime() 489 if (!runtime_) {
in UpdateRuntime() 505 runtime_->UpdatePkgContextInfoJson(moduleName, contextInfo->second, packageName);
in UpdateRuntime() 506 if (runtime_->GetLanguage() == AbilityRuntime::Runtime::Language::JS) {
in UpdateRuntime() 509 (static_cast<AbilityRuntime::JsRuntime&>(*runtime_)).ReloadFormComponent();
in UpdateRuntime() 662 if (runtime_ == nullptr) {
in BeforeHandleUpdateForm() 749 auto formRendererGroup = GetFormRendererGroup(formJsInfo, context, runtime_);
in AddRenderer() 1015 if (runtime_) {
in HandleReleaseInJsThread() [all...] |
/foundation/ability/form_fwk/services/form_render_service/include/ |
H A D | form_render_service_extension.h | 138 Runtime& runtime_; member in OHOS::AbilityRuntime::FormRenderServiceExtension
|
/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/ |
H A D | form_renderer_group.cpp | 39 : context_(context), runtime_(runtime), eventHandler_(eventHandler) {} in FormRendererGroup() 85 formRenderer_ = std::make_shared<FormRenderer>(context_, runtime_, eventHandler_); in PreInitAddForm() 123 formRenderer_ = std::make_shared<FormRenderer>(context_, runtime_, eventHandler_); in InnerAddForm()
|
H A D | form_renderer.cpp | 37 : context_(context), runtime_(runtime), eventHandler_(eventHandler) in FormRenderer() 40 if (!context_ || !runtime_) { in FormRenderer() 43 auto& nativeEngine = (static_cast<AbilityRuntime::JsRuntime&>(*runtime_.get())).GetNativeEngine(); in FormRenderer() 253 runtime_ = nullptr; in Destroy()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/dynamic_component/ |
H A D | dynamic_component_renderer_impl.cpp | 74 runtime_ = reinterpret_cast<NativeEngine*>(runtime); in DynamicComponentRendererImpl() 93 CHECK_NULL_VOID(runtime_); in CreateContent() 94 if (!runtime_->IsRestrictedWorkerThread()) { in CreateContent() 102 auto napiEnv = reinterpret_cast<napi_env>(runtime_); in CreateContent() 116 uiContent_ = UIContent::Create(nullptr, runtime_, true); in InitUiContent()
|
/foundation/ability/ability_runtime/test/unittest/appkit/child_main_thread_test/ |
H A D | child_main_thread_test.cpp | 152 ASSERT_NE(thread->runtime_, nullptr); in HWTEST_F() 187 ASSERT_NE(thread->runtime_, nullptr); in HWTEST_F()
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | child_main_thread.h | 65 std::unique_ptr<AbilityRuntime::Runtime> runtime_ = nullptr; member in OHOS::AppExecFwk::ChildMainThread
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/ui_extension/mock/ |
H A D | mock_dynamic_component_renderer_impl.cpp | 31 runtime_ = reinterpret_cast<NativeEngine*>(runtime);
in DynamicComponentRendererImpl()
|