/ohos5.0/foundation/ability/ability_runtime/test/sample/demo_ui_extension/native/demo_ui_extension_ability/src/ |
H A D | js_demo_ui_extension.cpp | 132 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 D | js_extension_common.cpp | 43 : 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 D | js_service_extension.cpp | 156 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsServiceExtension() 195 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init() 266 … shellContextRef_ = 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 D | js_photo_editor_extension_impl.cpp | 108 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 D | js_fence_extension.cpp | 109 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 D | js_vpn_extension.cpp | 126 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 D | js_ui_service_extension.cpp | 129 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIServiceExtension() 174 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init() 207 …shellContextRef_ = 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 D | js_form_extension.cpp | 89 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsFormExtension() 138 …shellContextRef_ = 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 D | js_ability_stage.cpp | 161 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() 799 …shellContextRef_ = 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 D | js_ui_extension.cpp | 118 jsRuntime_.FreeNativeReference(std::move(shellContextRef_)); in ~JsUIExtension() 167 … JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init() 176 … shellContextRef_ = JsRuntime::LoadSystemModuleByEngine(env, "application.UIExtensionContext", in CreateJSContext() 182 …shellContextRef_ = 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 D | js_ui_extension_base.cpp | 119 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 D | js_work_scheduler_extension.cpp | 46 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 D | js_driver_extension.cpp | 161 …n(JsExtensionCommon::Create(jsRuntime_, static_cast<NativeReference&>(*jsObj_), shellContextRef_)); in Init() 173 … shellContextRef_ = 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 D | js_auto_fill_extension.cpp | 120 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 D | js_extension_common.h | 69 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/resourceschedule/work_scheduler/frameworks/extension/include/ |
H A D | js_work_scheduler_extension.h | 100 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/ |
H A D | js_ui_ability.cpp | 164 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 D | js_ability.cpp | 114 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 D | js_fence_extension.h | 106 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension/include/ |
H A D | js_driver_extension.h | 141 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/form_runtime/ |
H A D | js_form_extension.h | 83 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/app/ |
H A D | js_ability_stage.h | 96 std::shared_ptr<NativeReference> shellContextRef_; variable
|
/ohos5.0/base/inputmethod/imf/frameworks/kits/extension/include/ |
H A D | js_inputmethod_extension.h | 132 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/auto_fill_extension_ability/ |
H A D | js_auto_fill_extension.h | 139 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|
/ohos5.0/foundation/communication/netmanager_ext/interfaces/innerkits/vpnextension/include/ |
H A D | js_vpn_extension.h | 175 std::shared_ptr<NativeReference> shellContextRef_ = nullptr; variable
|