Home
last modified time | relevance | path

Searched refs:shellContextRef_ (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/foundation/ability/ability_runtime/test/sample/demo_ui_extension/native/demo_ui_extension_ability/src/
H A Djs_demo_ui_extension.cpp132 shellContextRef_ = JsRuntime::LoadSystemModuleByEngine( in BindContext()
134 if (shellContextRef_ == nullptr) { in BindContext()
138 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
146 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Djs_extension_common.cpp43 : jsRuntime_(jsRuntime), jsObj_(jsObj), shellContextRef_(shellContextRef) {} in JsExtensionCommon()
47 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsExtensionCommon()
60 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
H A Djs_service_extension.cpp156 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsServiceExtension()
195 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
266shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.ServiceExtensionContext", in BindContext()
268 if (shellContextRef_ == nullptr) { in BindContext()
272 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
281 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
317 … JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, context->GetConfiguration()); in OnStart()
790 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in ConfigurationUpdated()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/photo_editor_extension_ability/
H A Djs_photo_editor_extension_impl.cpp108 shellContextRef_ = in BindContext()
110 if (shellContextRef_ == nullptr) { in BindContext()
114 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
123 context_->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
/ohos5.0/base/location/frameworks/native/fence_extension_ability/src/
H A Djs_fence_extension.cpp109 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsFenceExtension()
162 auto shellContextRef_ = in BindContext() local
164 if (shellContextRef_ == nullptr) { in BindContext()
168 napi_value nativeObj = shellContextRef_->GetNapiValue(); in BindContext()
181 context->Bind(jsRuntime_, shellContextRef_.release()); in BindContext()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/vpnextension/src/
H A Djs_vpn_extension.cpp126 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsVpnExtension()
164 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
227 shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.VpnExtensionContext", in BindContext()
229 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
238 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
272 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, context->GetConfiguration()); in OnStart()
611 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in ConfigurationUpdated()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_service_extension_ability/
H A Djs_ui_service_extension.cpp129 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIServiceExtension()
174 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
207shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.UIServiceExtensionContext… in BindContext()
209 if (shellContextRef_ == nullptr) { in BindContext()
213 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
222 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
253 … JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, context->GetConfiguration()); in OnStart()
606 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in ConfigurationUpdated()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/
H A Djs_form_extension.cpp89 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsFormExtension()
138shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.FormExtensionContext", &c… in BindContext()
139 if (shellContextRef_ == nullptr) { in BindContext()
143 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
151 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
383 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/
H A Djs_ability_stage.cpp161 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsAbilityStage()
326 JsAbilityStageContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
377 if (!shellContextRef_) { in RunAutoStartupTask()
610 module.at(NAME).get<std::string>(), jsRuntime_, startupJsRef, shellContextRef_); in AnalyzeProfileInfoAndRegisterStartupTask()
799shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.AbilityStageContext", &co… in SetJsAbilityStage()
800 if (shellContextRef_ == nullptr) { in SetJsAbilityStage()
804 contextObj = shellContextRef_->GetNapiValue(); in SetJsAbilityStage()
812 context->Bind(jsRuntime_, shellContextRef_.get()); in SetJsAbilityStage()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/
H A Djs_ui_extension.cpp118 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIExtension()
167 … JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
176shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.UIExtensionContext", in CreateJSContext()
182shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.EmbeddableUIAbilityContex… in CreateJSContext()
202 if (shellContextRef_ == nullptr) { in BindContext()
206 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
222 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
256 … JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, context->GetConfiguration()); in OnStart()
947 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
H A Djs_ui_extension_base.cpp119 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIExtensionBase()
162 …rn JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_); in Init()
188 shellContextRef_ = JsRuntime::LoadSystemModuleByEngine( in BindContext()
190 if (shellContextRef_ == nullptr) { in BindContext()
194 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
202 context_->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
787 JsExtensionContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/extension/src/
H A Djs_work_scheduler_extension.cpp46 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsWorkSchedulerExtension()
133 shellContextRef_ = jsRuntime_.LoadSystemModule("application.WorkSchedulerExtensionContext", in BindContext()
135 if (shellContextRef_ == nullptr) { in BindContext()
139 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
149 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension/src/
H A Djs_driver_extension.cpp161 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
173shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.DriverExtensionContext", in BindContext()
176 napi_value nativeObj = shellContextRef_->GetNapiValue(); in BindContext()
183 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/auto_fill_extension_ability/
H A Djs_auto_fill_extension.cpp120 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsAutoFillExtension()
170 … JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init()
189 shellContextRef_ = JsRuntime::LoadSystemModuleByEngine( in BindContext()
191 if (shellContextRef_ == nullptr) { in BindContext()
195 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
207 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
H A Djs_extension_common.h69 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/extension/include/
H A Djs_work_scheduler_extension.h100 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Djs_ui_ability.cpp164 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIAbility()
246 CHECK_POINTER(shellContextRef_); in SetAbilityContext()
247 contextObj = shellContextRef_->GetNapiValue(); in SetAbilityContext()
263 abilityContext_->Bind(jsRuntime_, shellContextRef_.get()); in SetAbilityContext()
289 shellContextRef_ = std::shared_ptr<NativeReference>(JsRuntime::LoadSystemModuleByEngine( in CreateJSContext()
295 shellContextRef_ = std::shared_ptr<NativeReference>(JsRuntime::LoadSystemModuleByEngine( in CreateJSContext()
1198 JsAbilityContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
1232 …JsAbilityContext::ConfigurationUpdated(env, shellContextRef_, abilityContext_->GetConfiguration()); in UpdateContextConfiguration()
1598 if (shellContextRef_ == nullptr) { in UpdateJsWindowStage()
1602 napi_value contextObj = shellContextRef_->GetNapiValue(); in UpdateJsWindowStage()
H A Djs_ability.cpp114 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsAbility()
191 shellContextRef_ = std::shared_ptr<NativeReference>(JsRuntime::LoadSystemModuleByEngine( in BindContext()
193 if (shellContextRef_ == nullptr) { in BindContext()
197 contextObj = shellContextRef_->GetNapiValue(); in BindContext()
205 context->Bind(jsRuntime_, shellContextRef_.get()); in BindContext()
856 JsAbilityContext::ConfigurationUpdated(env, shellContextRef_, fullConfig); in OnConfigurationUpdated()
888 …JsAbilityContext::ConfigurationUpdated(env, shellContextRef_, GetAbilityContext()->GetConfiguratio… in UpdateContextConfiguration()
/ohos5.0/base/location/frameworks/native/fence_extension_ability/include/
H A Djs_fence_extension.h106 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/drivers/external_device_manager/services/native/driver_extension/include/
H A Djs_driver_extension.h141 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/form_runtime/
H A Djs_form_extension.h83 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/app/
H A Djs_ability_stage.h96 std::shared_ptr<NativeReference> shellContextRef_; variable
/ohos5.0/base/inputmethod/imf/frameworks/kits/extension/include/
H A Djs_inputmethod_extension.h132 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/auto_fill_extension_ability/
H A Djs_auto_fill_extension.h139 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/vpnextension/include/
H A Djs_vpn_extension.h175 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable

12