/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-jsvm-about-primitive.md | 406 // 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 D | rs_surface_darwin.cpp | 123 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 D | rs_surface_windows.cpp | 125 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 D | jsi_declarative_group_js_bridge.cpp | 76 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 D | jsi_declarative_engine.cpp | 168 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 D | module_template.cpp | 408 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 D | napi_utils.cpp | 87 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 D | jsi_animator_bridge.cpp | 133 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 D | jsi_group_js_bridge.cpp | 80 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 D | jsi_engine.cpp | 2717 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 D | js_runtime.h | 67 virtual shared_ptr<JsValue> GetGlobal() = 0;
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-jsvm-about-primitive.md | 406 // 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 D | js_theme_utils.h | 45 auto global = runtime->GetGlobal(); in GetWithThemeId()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/ |
H A D | jsi_pa_engine.cpp | 236 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 D | glfw_render_context.h | 34 static std::shared_ptr<GlfwRenderContext> GetGlobal();
|
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/samples/ |
H A D | ace_tv_test.cpp | 83 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
H A D | ace_wearable_test.cpp | 82 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
H A D | ace_car_test.cpp | 105 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
H A D | ace_card_test.cpp | 108 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
H A D | ace_phone_test.cpp | 107 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
H A D | ace_tablet_test.cpp | 107 auto ctx = OHOS::Rosen::GlfwRenderContext::GetGlobal(); in main()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_mock.cpp | 100 shared_ptr<JsValue> global = runtime->GetGlobal(); in MockRequireNativeModule()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/src/ |
H A D | glfw_render_context.cpp | 29 std::shared_ptr<GlfwRenderContext> GlfwRenderContext::GetGlobal() in GetGlobal() function in OHOS::Rosen::GlfwRenderContext
|
/ohos5.0/foundation/communication/netstack/utils/napi_utils/include/ |
H A D | napi_utils.h | 159 napi_value GetGlobal(napi_env env);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_router_module.cpp | 182 shared_ptr<JsValue> global = runtime->GetGlobal(); in InitRouterModule()
|