Home
last modified time | relevance | path

Searched refs:GetGlobal (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-about-primitive.md406 // GetGlobal注册回调
408 {.data = nullptr, .callback = GetGlobal},
411 // GetGlobal方法别名,供JS调用
416 static JSVM_Value GetGlobal(JSVM_Env env, JSVM_CallbackInfo info)
442 hilog.info(0x0000, 'JSVM', 'GetGlobal: %{public}s', result);
444 hilog.error(0x0000, 'JSVM', 'GetGlobal: %{public}s', error.message);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
H A Drs_surface_darwin.cpp123 GlfwRenderContext::GetGlobal()->SwapBuffers(); in FlushFrame()
170 GlfwRenderContext::GetGlobal()->MakeCurrent(); in SetupGrContext()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/
H A Drs_surface_windows.cpp125 GlfwRenderContext::GetGlobal()->SwapBuffers(); in FlushFrame()
172 GlfwRenderContext::GetGlobal()->MakeCurrent(); in SetupGrContext()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_group_js_bridge.cpp76 succ = runtime_->GetGlobal()->SetProperty(runtime_, "group", group); in LoadJsBridgeFunction()
306 shared_ptr<JsValue> global = runtime->GetGlobal(); in SerializationObjectToString()
398 shared_ptr<JsValue> global = runtime_->GetGlobal(); in CallModuleJsCallback()
421 shared_ptr<JsValue> global = runtime_->GetGlobal(); in TriggerModulePluginGetErrorCallback()
445 shared_ptr<JsValue> global = runtime_->GetGlobal(); in CallEventJsCallback()
H A Djsi_declarative_engine.cpp168 shared_ptr<JsValue> global = runtime->GetGlobal(); in RequireNativeModule()
470 auto global = runtime_->GetGlobal(); in InitJsEnv()
601 shared_ptr<JsValue> global = arkRuntime->GetGlobal(); in PreloadAceModuleWorker()
701 shared_ptr<JsValue> global = runtime_->GetGlobal(); in InitConsoleModule()
754 shared_ptr<JsValue> global = runtime_->GetGlobal(); in InitPerfUtilModule()
760 shared_ptr<JsValue> global = runtime_->GetGlobal(); in InitJsExportsUtilObject()
766 shared_ptr<JsValue> global = runtime_->GetGlobal(); in InitJsNativeModuleObject()
988 shared_ptr<JsValue> global = runtime->GetGlobal(); in CallGetUIContextFunc()
1005 shared_ptr<JsValue> global = runtime->GetGlobal(); in CallGetFrameNodeByNodeIdFunc()
1079 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterFaPlugin()
[all …]
/ohos5.0/foundation/communication/netstack/utils/napi_utils/src/
H A Dmodule_template.cpp408 auto global = NapiUtils::GetGlobal(env); in DefineClass()
419 auto global = NapiUtils::GetGlobal(env); in NewInstanceWithManagerWrapper()
448 auto global = NapiUtils::GetGlobal(env); in NewInstanceWithSharedManager()
479 auto global = NapiUtils::GetGlobal(env); in NewInstance()
505 auto global = NapiUtils::GetGlobal(env); in NewInstanceNoManager()
H A Dnapi_utils.cpp87 auto global = GetGlobal(env); in IsInstanceOf()
717 napi_value GetGlobal(napi_env env) in GetGlobal() function
737 auto global = GetGlobal(env); in CreateUvHandlerQueue()
757 auto global = NapiUtils::GetGlobal(env); in GetValueFromGlobal()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_animator_bridge.cpp133 jsFunc->Call(runtime, runtime->GetGlobal(), {}, 0); in CallAnimationStartJs()
158 jsFunc->Call(runtime, runtime->GetGlobal(), {}, 0); in CallAnimationFinishJs()
183 jsFunc->Call(runtime, runtime->GetGlobal(), {}, 0); in CallAnimationCancelJs()
208 jsFunc->Call(runtime, runtime->GetGlobal(), {}, 0); in CallAnimationRepeatJs()
234 jsFunc->Call(runtime, runtime->GetGlobal(), argv, argv.size()); in CallAnimationFrameJs()
H A Djsi_group_js_bridge.cpp80 succ = runtime_->GetGlobal()->SetProperty(runtime_, "group", group); in LoadJsBridgeFunction()
432 shared_ptr<JsValue> global = runtime->GetGlobal(); in SerializationObjectToString()
528 shared_ptr<JsValue> global = runtime_->GetGlobal(); in CallModuleJsCallback()
554 shared_ptr<JsValue> global = runtime_->GetGlobal(); in TriggerModulePluginGetErrorCallback()
587 shared_ptr<JsValue> global = runtime_->GetGlobal(); in CallEventJsCallback()
H A Djsi_engine.cpp2717 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterAceModule()
2745 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterConsoleModule()
2820 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterSyscapModule()
2828 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterDocumentModule()
2843 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterPerfUtilModule()
2853 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterHiViewModule()
2863 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterI18nPluralRulesModule()
3389 shared_ptr<JsValue> global = runtime->GetGlobal(); in LoadJs()
3492 shared_ptr<JsValue> global = runtime->GetGlobal(); in DestroyPageInstance()
3510 shared_ptr<JsValue> global = runtime->GetGlobal(); in DestroyApplication()
[all …]
H A Djs_runtime.h67 virtual shared_ptr<JsValue> GetGlobal() = 0;
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-primitive.md406 // Register the GetGlobal callback.
408 {.data = nullptr, .callback = GetGlobal},
411 …iptor named getGlobal and associate it with a callback. This allows the GetGlobal callback to be c…
416 static JSVM_Value GetGlobal(JSVM_Env env, JSVM_CallbackInfo info)
442 hilog.info(0x0000, 'JSVM', 'GetGlobal: %{public}s', result);
444 hilog.error(0x0000, 'JSVM', 'GetGlobal: %{public}s', error.message);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_theme_utils.h45 auto global = runtime->GetGlobal(); in GetWithThemeId()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/
H A Djsi_pa_engine.cpp236 shared_ptr<JsValue> global = runtime_->GetGlobal(); in RegisterPaModule()
310 runtime_->GetGlobal()->SetProperty(runtime_, key, nativeValue); in InitJsEnv()
475 … shared_ptr<JsValue> mainEntryFunc = runtime->GetGlobal()->GetProperty(runtime, "___mainEntry___"); in LoadJs()
478 runtime->GetGlobal()->SetProperty(runtime, "___mainEntry___", runtime->NewUndefined()); in LoadJs()
479 const std::vector<shared_ptr<JsValue>>& argv = { runtime->GetGlobal() }; in LoadJs()
580 shared_ptr<JsValue> global = runtime->GetGlobal(); in GetPaFunc()
672 shared_ptr<JsValue> global = runtime->GetGlobal(); in CallFuncWithDefaultThis()
743 shared_ptr<JsValue> global = runtime->GetGlobal(); in CallFunc()
804 shared_ptr<JsValue> global = runtime->GetGlobal(); in CallAsyncFunc()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/export/
H A Dglfw_render_context.h34 static std::shared_ptr<GlfwRenderContext> GetGlobal();
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/samples/
H A Dace_tv_test.cpp83 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
H A Dace_wearable_test.cpp82 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
H A Dace_car_test.cpp105 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
H A Dace_card_test.cpp108 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
H A Dace_phone_test.cpp107 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
H A Dace_tablet_test.cpp107 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_mock.cpp100 shared_ptr<JsValue> global = runtime->GetGlobal(); in MockRequireNativeModule()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/src/
H A Dglfw_render_context.cpp29 std::shared_ptr<GlfwRenderContext> GlfwRenderContext::GetGlobal() in GetGlobal() function in OHOS::Rosen::GlfwRenderContext
/ohos5.0/foundation/communication/netstack/utils/napi_utils/include/
H A Dnapi_utils.h159 napi_value GetGlobal(napi_env env);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/
H A Djsi_router_module.cpp182 shared_ptr<JsValue> global = runtime->GetGlobal(); in InitRouterModule()

12