Home
last modified time | relevance | path

Searched refs:systemModule (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/sendable_context_manager/
H A Djs_sendable_context_manager.cpp101 auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in CreateJsBaseContextFromSendable() local
102 if (systemModule == nullptr) { in CreateJsBaseContextFromSendable()
107 napi_value object = systemModule->GetNapiValue(); in CreateJsBaseContextFromSendable()
150 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.ApplicationContext", &va… in CreateJsApplicationContextFromSendable() local
151 if (systemModule == nullptr) { in CreateJsApplicationContextFromSendable()
156 napi_value object = systemModule->GetNapiValue(); in CreateJsApplicationContextFromSendable()
200 if (systemModule == nullptr) { in CreateJsAbilityStageContextFromSendable()
205 napi_value object = systemModule->GetNapiValue(); in CreateJsAbilityStageContextFromSendable()
248 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.AbilityContext", &value,… in CreateJsUIAbilityContextFromSendable() local
249 if (systemModule == nullptr) { in CreateJsUIAbilityContextFromSendable()
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/application/
H A Djs_application.cpp51 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.ApplicationContext", &va… in OnGetApplicationContext() local
52 if (systemModule == nullptr) { in OnGetApplicationContext()
57 napi_value object = systemModule->GetNapiValue(); in OnGetApplicationContext()
266 … auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in SetCreateCompleteCallback() local
267 if (systemModule == nullptr) { in SetCreateCompleteCallback()
274 napi_value object = systemModule->GetNapiValue(); in SetCreateCompleteCallback()
302 auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in CreateJsContext() local
303 if (systemModule == nullptr) { in CreateJsContext()
308 napi_value object = systemModule->GetNapiValue(); in CreateJsContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Djs_context_utils.cpp203 auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in CreateJsModuleContext() local
204 if (systemModule == nullptr) { in CreateJsModuleContext()
209 napi_value object = systemModule->GetNapiValue(); in CreateJsModuleContext()
556 if (systemModule == nullptr) { in CreateJsBundleContext()
561 napi_value object = systemModule->GetNapiValue(); in CreateJsBundleContext()
615 if (systemModule == nullptr) { in CreateJSApplicationContext()
620 napi_value object = systemModule->GetNapiValue(); in CreateJSApplicationContext()
673 if (systemModule == nullptr) { in AttachBaseContext()
678 napi_value contextObj = systemModule->GetNapiValue(); in AttachBaseContext()
713 if (systemModule == nullptr) { in AttachApplicationContext()
[all …]
H A Djs_application_context_utils.cpp92 auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in OnCreateBundleContext() local
93 if (systemModule == nullptr) { in OnCreateBundleContext()
98 napi_value contextObj = systemModule->GetNapiValue(); in OnCreateBundleContext()
217 auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.Context", &value, 1); in CreateJsModuleContext() local
218 if (systemModule == nullptr) { in CreateJsModuleContext()
223 napi_value contextObj = systemModule->GetNapiValue(); in CreateJsModuleContext()
1512 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.ApplicationContext", &va… in OnGetApplicationContext() local
1513 if (systemModule == nullptr) { in OnGetApplicationContext()
1518 napi_value contextObj = systemModule->GetNapiValue(); in OnGetApplicationContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Djs_application_context_utils.cpp297 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.ApplicationContext", &va… in OnGetApplicationContext() local
298 if (systemModule == nullptr) { in OnGetApplicationContext()
302 return systemModule->GetNapiValue(); in OnGetApplicationContext()
H A Djs_context_utils.cpp302 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.ApplicationContext", &va… in OnGetApplicationContext() local
303 if (systemModule == nullptr) { in OnGetApplicationContext()
306 auto contextObj = systemModule->GetNapiValue(); in OnGetApplicationContext()
H A Dsimulator.cpp574 auto systemModule = std::shared_ptr<NativeReference>( in InitJsAbilityContext() local
576 if (systemModule == nullptr) { in InitJsAbilityContext()
580 contextObj = systemModule->GetNapiValue(); in InitJsAbilityContext()
591 jsContexts_.emplace(currentId_, systemModule); in InitJsAbilityContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/auto_fill_extension_ability/
H A Djs_auto_fill_extension.cpp71 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.AutoFillExtensionContext… in AttachAutoFillExtensionContext() local
72 if (systemModule == nullptr) { in AttachAutoFillExtensionContext()
76 auto contextObj = systemModule->GetNapiValue(); in AttachAutoFillExtensionContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/
H A Djs_ability_stage.cpp66 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.AbilityStageContext", &o… in AttachAbilityStageContext() local
67 if (systemModule == nullptr) { in AttachAbilityStageContext()
71 auto contextObj = systemModule->GetNapiValue(); in AttachAbilityStageContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/ability_runtime/
H A Djs_ui_ability.cpp107 std::shared_ptr<NativeReference> systemModule = nullptr; in AttachJsAbilityContext() local
116 systemModule = std::shared_ptr<NativeReference>(JsRuntime::LoadSystemModuleByEngine(env, in AttachJsAbilityContext()
122 systemModule = std::shared_ptr<NativeReference>(JsRuntime::LoadSystemModuleByEngine(env, in AttachJsAbilityContext()
125 CHECK_POINTER_AND_RETURN(systemModule, nullptr); in AttachJsAbilityContext()
126 auto contextObj = systemModule->GetNapiValue(); in AttachJsAbilityContext()
H A Djs_ability.cpp75 …auto systemModule = JsRuntime::LoadSystemModuleByEngine(env, "application.AbilityContext", &object… in AttachJsAbilityContext() local
76 if (systemModule == nullptr) { in AttachJsAbilityContext()
80 auto contextObj = systemModule->GetNapiValue(); in AttachJsAbilityContext()
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp1370 std::string systemModule = path.substr(1); in GetOhmurl() local
1371 if (NATIVE_MODULE.count(systemModule)) { in GetOhmurl()
1372 return NATIVE_MODULE_PREFIX + systemModule; in GetOhmurl()
1375 std::string systemKey = path.substr(pos + 1, systemModule.size()); in GetOhmurl()