Home
last modified time | relevance | path

Searched refs:CreateModuleContext (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dbms_context_impl_test.cpp145 auto moduleContext = contextImpl->CreateModuleContext("test_contextImpl", "");
149 moduleContext = contextImpl->CreateModuleContext("invalid_bundleName", "invalid_moduleName");
153 moduleContext = contextImpl->CreateModuleContext("test_contextImpl", "invalid_moduleName");
156 moduleContext = contextImpl->CreateModuleContext("test_contextImpl", "test_moduleName");
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Dability_stage_context.cpp141 std::shared_ptr<Context> AbilityStageContext::CreateModuleContext(const std::string &moduleName) in CreateModuleContext() function in OHOS::AbilityRuntime::AbilityStageContext
148 return contextImpl_->CreateModuleContext(moduleName); in CreateModuleContext()
151 std::shared_ptr<Context> AbilityStageContext::CreateModuleContext(const std::string &bundleName, in CreateModuleContext() function in OHOS::AbilityRuntime::AbilityStageContext
159 return contextImpl_->CreateModuleContext(bundleName, moduleName); in CreateModuleContext()
H A Dapplication_context.cpp492 std::shared_ptr<Context> ApplicationContext::CreateModuleContext(const std::string &moduleName) in CreateModuleContext() function in OHOS::AbilityRuntime::ApplicationContext
494 return contextImpl_ ? contextImpl_->CreateModuleContext(moduleName) : nullptr; in CreateModuleContext()
497 std::shared_ptr<Context> ApplicationContext::CreateModuleContext(const std::string &bundleName, in CreateModuleContext() function in OHOS::AbilityRuntime::ApplicationContext
500 return contextImpl_ ? contextImpl_->CreateModuleContext(bundleName, moduleName) : nullptr; in CreateModuleContext()
H A Djs_context_utils.cpp49 static napi_value CreateModuleContext(napi_env env, napi_callback_info info);
151 napi_value JsBaseContext::CreateModuleContext(napi_env env, napi_callback_info info) in CreateModuleContext() function in OHOS::AbilityRuntime::__anonbc4235f80110::JsBaseContext
175 moduleContext = context->CreateModuleContext(moduleName); in OnCreateModuleContext()
189 moduleContext = context->CreateModuleContext(bundleName, moduleName); in OnCreateModuleContext()
757 …NativeFunction(env, object, "createModuleContext", moduleName, JsBaseContext::CreateModuleContext); in BindPropertyAndFunction()
H A Dcontext_impl.cpp393 std::shared_ptr<Context> ContextImpl::CreateModuleContext(const std::string &moduleName, in CreateModuleContext() function in OHOS::AbilityRuntime::ContextImpl
396 return CreateModuleContext(GetBundleNameWithContext(inputContext), moduleName, inputContext); in CreateModuleContext()
399 std::shared_ptr<Context> ContextImpl::CreateModuleContext(const std::string &bundleName, const std:… in CreateModuleContext() function in OHOS::AbilityRuntime::ContextImpl
456 std::shared_ptr<Context> ContextImpl::CreateModuleContext(const std::string &moduleName) in CreateModuleContext() function in OHOS::AbilityRuntime::ContextImpl
458 return CreateModuleContext(GetBundleName(), moduleName, nullptr); in CreateModuleContext()
461 std::shared_ptr<Context> ContextImpl::CreateModuleContext(const std::string &bundleName, const std:… in CreateModuleContext() function in OHOS::AbilityRuntime::ContextImpl
463 return CreateModuleContext(bundleName, moduleName, nullptr); in CreateModuleContext()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/application_context_test/
H A Dmock_context_impl.h57 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
59 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
H A Dmock_context_impl.cpp98 std::shared_ptr<Context> MockContextImpl::CreateModuleContext(const std::string &moduleName) in CreateModuleContext() function in OHOS::AbilityRuntime::MockContextImpl
104 std::shared_ptr<Context> MockContextImpl::CreateModuleContext(const std::string &bundleName, in CreateModuleContext() function in OHOS::AbilityRuntime::MockContextImpl
H A Dapplication_context_test.cpp158 auto ret = context_->CreateModuleContext(moduleName);
173 auto ret = context_->CreateModuleContext(moduleName);
190 auto ret = context_->CreateModuleContext(bundleName, moduleName);
206 auto ret = context_->CreateModuleContext(bundleName, moduleName);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dmock_ability_runtime_context.cpp126 std::shared_ptr<Context> MockAbilityRuntimeContext::CreateModuleContext(const std::string &moduleNa… in CreateModuleContext() function in OHOS::AbilityRuntime::MockAbilityRuntimeContext
131 std::shared_ptr<Context> MockAbilityRuntimeContext::CreateModuleContext( in CreateModuleContext() function in OHOS::AbilityRuntime::MockAbilityRuntimeContext
H A Dmock_ability_runtime_context.h56 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
59 std::shared_ptr<Context> CreateModuleContext(
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_ability_runtime_test/
H A Dmock_context.h62 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
64 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
H A Dmock_context.cpp84 std::shared_ptr<Context> MockContext::CreateModuleContext(const std::string &moduleName) in CreateModuleContext() function in OHOS::AbilityRuntime::MockContext
89 std::shared_ptr<Context> MockContext::CreateModuleContext(const std::string &bundleName, const std:… in CreateModuleContext() function in OHOS::AbilityRuntime::MockContext
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/
H A Dability_stage_context.h45 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
46 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
H A Dcontext_impl.h190 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
201 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
203 …std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName, std::shared_ptr<Contex…
205 std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName,
H A Dcontext.h215 virtual std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) = 0;
226 virtual std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName,
H A Dapplication_context.h81 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
82 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/application/
H A Djs_application.cpp66 napi_value JsApplication::CreateModuleContext(napi_env env, napi_callback_info info) in CreateModuleContext() function in OHOS::AbilityRuntime::JsApplication
149 *moduleContext = contextImpl->CreateModuleContext(moduleName, inputContextPtr); in OnCreateModuleContext()
151 … *moduleContext = contextImpl->CreateModuleContext(bundleName, moduleName, inputContextPtr); in OnCreateModuleContext()
349 JsApplication::CreateModuleContext); in ApplicationInit()
H A Djs_application.h34 static napi_value CreateModuleContext(napi_env env, napi_callback_info info);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_stage_context_test/
H A Dability_stage_context_test.cpp105 auto moduleContext1 = abilityStageContext->CreateModuleContext("moudleName");
108 …auto moduleContext2 = abilityStageContext->CreateModuleContext("com.test.bundleName", "moudleName"…
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Djs_context_utils.cpp39 static napi_value CreateModuleContext(napi_env env, napi_callback_info info);
128 napi_value JsBaseContext::CreateModuleContext(napi_env env, napi_callback_info info) in CreateModuleContext() function in OHOS::AbilityRuntime::__anond0ba61380110::JsBaseContext
347 …NativeFunction(env, object, "createModuleContext", moduleName, JsBaseContext::CreateModuleContext); in CreateJsBaseContext()
H A Djs_application_context_utils.cpp67 napi_value JsApplicationContextUtils::CreateModuleContext(napi_env env, napi_callback_info info) in CreateModuleContext() function in OHOS::AbilityRuntime::JsApplicationContextUtils
351 …ction(env, object, "createModuleContext", MD_NAME, JsApplicationContextUtils::CreateModuleContext); in BindNativeApplicationContext()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/photo_editor_extension_ability/
H A Djs_photo_editor_extension.cpp62 … std::shared_ptr<Context> moduleContext = context->CreateModuleContext(abilityInfo->moduleName); in Init()
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/ability_runtime/
H A Dability_context_impl.h56 std::shared_ptr<Context> CreateModuleContext(const std::string &moduleName) override;
57 …std::shared_ptr<Context> CreateModuleContext(const std::string &bundleName, const std::string &mod…
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/
H A Djs_application_context_utils.h41 static napi_value CreateModuleContext(napi_env env, napi_callback_info info);
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
H A Dextension_base.inl61 … std::shared_ptr<Context> moduleContext = context->CreateModuleContext(abilityInfo->moduleName);

12