Home
last modified time | relevance | path

Searched refs:bundleContext (Results 1 - 4 of 4) sorted by relevance

/foundation/ability/ability_runtime/test/unittest/ability_stage_context_test/
H A Dability_stage_context_test.cpp102 auto bundleContext = abilityStageContext->CreateBundleContext("com.test.bundleName"); in HWTEST_F() local
103 EXPECT_EQ(bundleContext, nullptr); in HWTEST_F()
/foundation/ability/ability_runtime/frameworks/js/napi/application/
H A Djs_application.cpp235 auto bundleContext = std::make_shared<std::shared_ptr<Context>>(); in OnCreateBundleContext() local
239 bundleContext, inputContextPtr]() { in OnCreateBundleContext()
240 contextImpl->CreateBundleContext(*bundleContext, bundleName, inputContextPtr); in OnCreateBundleContext()
244 SetCreateCompleteCallback(bundleContext, complete); in OnCreateBundleContext()
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Djs_context_utils.cpp83 napi_value CreateJsBundleContext(napi_env env, const std::shared_ptr<Context>& bundleContext);
547 auto bundleContext = context->CreateBundleContext(bundleName); in OnCreateBundleContext() local
548 if (!bundleContext) { in OnCreateBundleContext()
549 TAG_LOGE(AAFwkTag::APPKIT, "bundleContext is nullptr"); in OnCreateBundleContext()
553 return CreateJsBundleContext(env, bundleContext); in OnCreateBundleContext()
556 napi_value JsBaseContext::CreateJsBundleContext(napi_env env, const std::shared_ptr<Context>& bundleContext) in CreateJsBundleContext() argument
558 napi_value value = CreateJsBaseContext(env, bundleContext, true); in CreateJsBundleContext()
571 auto workContext = new (std::nothrow) std::weak_ptr<Context>(bundleContext); in CreateJsBundleContext()
H A Djs_application_context_utils.cpp90 auto bundleContext = applicationContext->CreateBundleContext(bundleName); in OnCreateBundleContext() local
91 if (!bundleContext) { in OnCreateBundleContext()
92 TAG_LOGE(AAFwkTag::APPKIT, "bundleContext is nullptr"); in OnCreateBundleContext()
97 napi_value value = CreateJsBaseContext(env, bundleContext, true); in OnCreateBundleContext()
110 auto workContext = new (std::nothrow) std::weak_ptr<Context>(bundleContext); in OnCreateBundleContext()

Completed in 6 milliseconds