/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/ |
H A D | js_ability.cpp | 28 Context::Context(std::shared_ptr<AbilityRuntime::Context> stageContext) in Context() argument 30 this->stageContext_ = stageContext; in Context() 32 databaseDir_ = stageContext->GetDatabaseDir(); in Context() 33 bundleName_ = stageContext->GetBundleName(); in Context() 34 area_ = stageContext->GetArea(); in Context() 35 auto hapInfo = stageContext->GetHapModuleInfo(); in Context() 43 auto extensionContext = AbilityRuntime::Context::ConvertTo<AbilityRuntime::ExtensionContext>(stageContext); in Context() 57 auto appInfo = stageContext->GetApplicationInfo(); in Context() 147 auto stageContext = AbilityRuntime::GetStageModeContext(env, value); in GetStageModeContext() local 148 if (stageContext in GetStageModeContext() 173 auto stageContext = AbilityRuntime::GetStageModeContext(env, value); GetHapVersion() local [all...] |
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/common/ |
H A D | js_ability.cpp | 23 Context::Context(std::shared_ptr<AbilityRuntime::Context> stageContext) in Context() argument 25 bundleName_ = stageContext->GetBundleName(); in Context() 46 auto stageContext = AbilityRuntime::GetStageModeContext(env, value); in GetContext() local 47 if (stageContext == nullptr) { in GetContext() 51 return std::make_shared<Context>(stageContext); in GetContext()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/mock/src/ |
H A D | js_ability.cpp | 51 Context::Context(std::shared_ptr<AbilityRuntime::Platform::Context> stageContext) in Context() argument 53 if (stageContext != nullptr) { in Context() 54 databaseDir_ = stageContext->GetDatabaseDir(); in Context() 114 auto stageContext = AbilityRuntime::Platform::GetStageModeContext(env, value); in GetStageModeContext() local 115 if (stageContext == nullptr) { in GetStageModeContext() 119 return std::make_shared<Context>(stageContext); in GetStageModeContext()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/mock/cross_platform/src/ |
H A D | js_ability.cpp | 34 auto stageContext = AbilityRuntime::Platform::GetStageModeContext(env, value); in GetContextInfo() local 35 if (stageContext == nullptr) { in GetContextInfo() 39 contextInfo.preferencesDir = stageContext->GetPreferencesDir(); in GetContextInfo()
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_scanner_test/src/ |
H A D | ringtone_default_settings_test.cpp | 50 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in HWTEST_F() local 52 abilityContextImpl->SetStageContext(stageContext); in HWTEST_F() 84 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in HWTEST_F() local 86 abilityContextImpl->SetStageContext(stageContext); in HWTEST_F() 116 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in HWTEST_F() local 118 abilityContextImpl->SetStageContext(stageContext); in HWTEST_F() 150 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in HWTEST_F() local 152 abilityContextImpl->SetStageContext(stageContext); in HWTEST_F() 178 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in HWTEST_F() local 180 abilityContextImpl->SetStageContext(stageContext); in HWTEST_F() [all...] |
H A D | ringtone_scanner_db_test.cpp | 66 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUp() local 68 abilityContextImpl->SetStageContext(stageContext); in SetUp()
|
H A D | ringtone_metadata_extractor_test.cpp | 37 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUpTestCase() local 39 abilityContextImpl->SetStageContext(stageContext); in SetUpTestCase()
|
H A D | ringtone_scanner_test.cpp | 41 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUpTestCase() local 43 abilityContextImpl->SetStageContext(stageContext); in SetUpTestCase()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | js_ability.cpp | 40 if (auto stageContext = AbilityRuntime::GetStageModeContext(env, value)) { in GetContextInfo() 41 int errcode = stageContext->GetSystemPreferencesDir(dataGroupId, false, contextInfo.preferencesDir); in GetContextInfo() 46 contextInfo.bundleName = stageContext->GetBundleName(); in GetContextInfo()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | ohos_application.cpp | 375 auto stageContext = std::make_shared<AbilityRuntime::AbilityStageContext>(); in AddAbilityStage() local 376 stageContext->SetParentContext(abilityRuntimeContext_); in AddAbilityStage() 377 stageContext->InitHapModuleInfo(abilityInfo); in AddAbilityStage() 378 stageContext->SetConfiguration(GetConfiguration()); in AddAbilityStage() 379 std::shared_ptr<AppExecFwk::HapModuleInfo> hapModuleInfo = stageContext->GetHapModuleInfo(); in AddAbilityStage() 391 auto moduleContext = stageContext->CreateModuleContext(hapModuleInfo->moduleName); in AddAbilityStage() 393 stageContext->SetResourceManager(rm); in AddAbilityStage() 403 abilityStage->Init(stageContext, weak); in AddAbilityStage() 406 abilityStage->RunAutoStartupTask(autoStartupCallback, isAsyncCallback, stageContext); in AddAbilityStage() 577 auto stageContext in AddAbilityStage() local [all...] |
/foundation/multimedia/ringtone_library/test/unittest/ringtone_unittest_utils/src/ |
H A D | ringtone_unittest_utils.cpp | 38 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in Init() local 40 abilityContextImpl->SetStageContext(stageContext); in Init()
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_dfx_test/src/ |
H A D | ringtone_dfx_test.cpp | 41 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUpTestCase() local 43 abilityContextImpl->SetStageContext(stageContext); in SetUpTestCase()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_callback_test/src/ |
H A D | medialibrary_rdb_callback_test.cpp | 95 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUpTestCase() local 97 abilityContextImpl->SetStageContext(stageContext); in SetUpTestCase()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | ability_thread.cpp | 28 const std::shared_ptr<AbilityRuntime::Context> &stageContext) in AbilityThreadMain() 54 thread->Attach(application, abilityRecord, mainRunner, stageContext); in AbilityThreadMain() 60 const std::shared_ptr<AbilityRuntime::Context> &stageContext) in AbilityThreadMain() 87 thread->Attach(application, abilityRecord, stageContext); in AbilityThreadMain() 26 AbilityThreadMain(const std::shared_ptr<OHOSApplication> &application, const std::shared_ptr<AbilityLocalRecord> &abilityRecord, const std::shared_ptr<EventRunner> &mainRunner, const std::shared_ptr<AbilityRuntime::Context> &stageContext) AbilityThreadMain() argument 58 AbilityThreadMain(const std::shared_ptr<OHOSApplication> &application, const std::shared_ptr<AbilityLocalRecord> &abilityRecord, const std::shared_ptr<AbilityRuntime::Context> &stageContext) AbilityThreadMain() argument
|
H A D | ui_ability_thread.cpp | 113 const std::shared_ptr<Context> &stageContext) in Attach() 151 application, token_, stageContext, abilityRecord->GetAbilityRecordId())); in Attach() 153 AttachInner(application, abilityRecord, stageContext); in Attach() 158 const std::shared_ptr<Context> &stageContext) in AttachInner() 186 const std::shared_ptr<Context> &stageContext) in Attach() 224 application, token_, stageContext, abilityRecord->GetAbilityRecordId())); in Attach() 226 AttachInner(application, abilityRecord, stageContext); in Attach() 483 const std::shared_ptr<Context> &stageContext, int32_t abilityRecordId) in BuildAbilityContext() 490 abilityContextImpl->SetStageContext(stageContext); in BuildAbilityContext() 110 Attach(const std::shared_ptr<AppExecFwk::OHOSApplication> &application, const std::shared_ptr<AppExecFwk::AbilityLocalRecord> &abilityRecord, const std::shared_ptr<AppExecFwk::EventRunner> &mainRunner, const std::shared_ptr<Context> &stageContext) Attach() argument 156 AttachInner(const std::shared_ptr<AppExecFwk::OHOSApplication> &application, const std::shared_ptr<AppExecFwk::AbilityLocalRecord> &abilityRecord, const std::shared_ptr<Context> &stageContext) AttachInner() argument 184 Attach(const std::shared_ptr<AppExecFwk::OHOSApplication> &application, const std::shared_ptr<AppExecFwk::AbilityLocalRecord> &abilityRecord, const std::shared_ptr<Context> &stageContext) Attach() argument 480 BuildAbilityContext( const std::shared_ptr<AppExecFwk::AbilityInfo> &abilityInfo, const std::shared_ptr<AppExecFwk::OHOSApplication> &application, const sptr<IRemoteObject> &token, const std::shared_ptr<Context> &stageContext, int32_t abilityRecordId) BuildAbilityContext() argument
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_unittest_utils/src/ |
H A D | medialibrary_unittest_utils.cpp | 46 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in Init() local 48 abilityContextImpl->SetStageContext(stageContext); in Init() 59 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in InitUnistore() local 61 abilityContextImpl -> SetStageContext(stageContext); in InitUnistore()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/common/ |
H A D | js_ability.h | 31 explicit Context(std::shared_ptr<AbilityRuntime::Context> stageContext);
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | ui_ability_thread.h | 160 const std::shared_ptr<Context> &stageContext); 169 const std::shared_ptr<AbilityRuntime::Context> &stageContext, int32_t abilityRecordId);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibrarymediaphotoassetproxy_fuzzer/ |
H A D | medialibrarymediaphotoassetproxy_fuzzer.cpp | 147 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in RdbStoreInit() local 149 abilityContextImpl->SetStageContext(stageContext); in RdbStoreInit()
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/ |
H A D | ability_context.cpp | 166 void AbilityContext::SetAbilityStageContext(const std::shared_ptr<AbilityStageContext> &stageContext) in SetAbilityStageContext() argument 168 stageContext_ = stageContext; in SetAbilityStageContext()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibraryuripermissionoperations_fuzzer/ |
H A D | medialibraryuripermissionoperations_fuzzer.cpp | 162 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in Init() local 164 abilityContextImpl->SetStageContext(stageContext); in Init()
|
/foundation/multimedia/ringtone_library/test/unittest/ringtone_dualfwk_restore_test/src/ |
H A D | ringtone_dualfwk_restore_test.cpp | 51 auto stageContext = std::make_shared<AbilityRuntime::ContextImpl>(); in SetUpTestCase() local 53 abilityContextImpl->SetStageContext(stageContext); in SetUpTestCase()
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/ |
H A D | ability_context.h | 56 void SetAbilityStageContext(const std::shared_ptr<AbilityStageContext> &stageContext);
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/ |
H A D | ability_stage.cpp | 114 const std::shared_ptr<Context> &stageContext) in RunAutoStartupTask() 113 RunAutoStartupTask(const std::function<void()> &callback, bool &isAsyncCallback, const std::shared_ptr<Context> &stageContext) RunAutoStartupTask() argument
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/app/ |
H A D | ability_stage.h | 63 const std::shared_ptr<Context> &stageContext);
|