Searched refs:bundleContext (Results 1 – 9 of 9) sorted by relevance
/ohos5.0/base/global/resource_management/interfaces/js/kits/src/ |
H A D | resource_manager_napi.cpp | 96 std::shared_ptr<Context> bundleContext = ability->CreateBundleContext(bundleName, 0); in InitAsyncContext() local 97 if (bundleContext != nullptr) { in InitAsyncContext() 98 resMgr = bundleContext->GetResourceManager(); in InitAsyncContext() 105 …std::shared_ptr<OHOS::AbilityRuntime::Context> bundleContext = context->CreateBundleContext(bundle… in InitAsyncContext() local 106 if (bundleContext != nullptr) { in InitAsyncContext() 107 resMgr = bundleContext->GetResourceManager(); in InitAsyncContext()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.37/ |
H A D | changelogs-ability.md | 189 let bundleContext: common.Context; 191 bundleContext = this.context.createBundleContext('bundlename'); 207 let bundleContext: common.Context; 210 bundleContext = data;
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.37/ |
H A D | changelogs-ability.md | 189 let bundleContext: common.Context; 191 bundleContext = this.context.createBundleContext('bundlename'); 207 let bundleContext: common.Context; 210 bundleContext = data;
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/application/ |
H A D | js_application.cpp | 235 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()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_stage_context_test/ |
H A D | ability_stage_context_test.cpp | 102 auto bundleContext = abilityStageContext->CreateBundleContext("com.test.bundleName"); variable 103 EXPECT_EQ(bundleContext, nullptr);
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | js_context_utils.cpp | 80 napi_value CreateJsBundleContext(napi_env env, const std::shared_ptr<Context>& bundleContext); 543 auto bundleContext = context->CreateBundleContext(bundleName); in OnCreateBundleContext() local 544 if (!bundleContext) { in OnCreateBundleContext() 549 return CreateJsBundleContext(env, bundleContext); in OnCreateBundleContext() 552 …e JsBaseContext::CreateJsBundleContext(napi_env env, const std::shared_ptr<Context>& bundleContext) in CreateJsBundleContext() argument 554 napi_value value = CreateJsBaseContext(env, bundleContext, true); in CreateJsBundleContext() 567 auto workContext = new (std::nothrow) std::weak_ptr<Context>(bundleContext); in CreateJsBundleContext()
|
H A D | js_application_context_utils.cpp | 85 auto bundleContext = applicationContext->CreateBundleContext(bundleName); in OnCreateBundleContext() local 86 if (!bundleContext) { in OnCreateBundleContext() 91 napi_value value = CreateJsBaseContext(env, bundleContext, true); in OnCreateBundleContext() 104 auto workContext = new (std::nothrow) std::weak_ptr<Context>(bundleContext); in OnCreateBundleContext()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-inner-application-context-sys.md | 64 let bundleContext: common.Context; 66 bundleContext = this.context.createBundleContext('com.example.test');
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-inner-application-context-sys.md | 64 let bundleContext: common.Context; 66 bundleContext = this.context.createBundleContext('com.example.test');
|