Home
last modified time | relevance | path

Searched refs:abilityContext_ (Results 1 – 20 of 20) sorted by relevance

/foundation/aafwk/standard/test/resource/amssystemtestability/abilitySrc/serviceAbilityA/src/
Dverify_act_first_ability.cpp149 if (abilityContext_ == nullptr) { in OnReceiveEvent()
160 auto ret = abilityContext_->ConnectAbility(want_service, conne_); in OnReceiveEvent()
165 abilityContext_->DisconnectAbility(conne_); in OnReceiveEvent()
169 abilityContext_->StartAbility(want_service, 0); in OnReceiveEvent()
173 auto ret = abilityContext_->StopAbility(want_service); in OnReceiveEvent()
/foundation/windowmanager/wm/test/unittest/
Dwindow_test.h31 static inline std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_; variable
Dwindow_scene_test.h32 static inline std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_; variable
Dwindow_impl_test.h37 static inline std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_; variable
Dwindow_scene_test.cpp32 abilityContext_ = std::make_shared<AbilityRuntime::AbilityContextImpl>(); in SetUpTestCase()
36 ASSERT_EQ(WMError::WM_OK, scene_->Init(displayId, abilityContext_, listener)); in SetUpTestCase()
99 ASSERT_EQ(WMError::WM_OK, scene->Init(displayId, abilityContext_, listener));
Dwindow_test.cpp28 abilityContext_ = std::make_shared<AbilityRuntime::AbilityContextImpl>(); in SetUpTestCase()
92 ASSERT_NE(nullptr, Window::Create("WindowTest04", option, abilityContext_));
Dwindow_impl_test.cpp28 abilityContext_ = std::make_shared<AbilityRuntime::AbilityContextImpl>(); in SetUpTestCase()
171 ASSERT_EQ(WMError::WM_OK, window->Create("", abilityContext_));
187 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, window->Create("", abilityContext_));
/foundation/aafwk/standard/test/resource/amssystemtestability/abilitySrc/serviceAbilityA/include/
Dverify_act_first_ability.h67 abilityContext_ = abilityContext; in ConnectServiceAbilityTest()
73 std::shared_ptr<Context> abilityContext_ = nullptr; variable
/foundation/aafwk/standard/frameworks/kits/ability/native/src/ability_runtime/
Djs_ability.cpp74 if (abilityContext_) { in ~JsAbility()
75 cb->abilityContext_ = std::move(abilityContext_); in ~JsAbility()
539 if ((abilityContext_ == nullptr) || (sceneListener_ == nullptr)) { in DoOnForeground()
563 Rosen::WMError ret = scene_->Init(displayId, abilityContext_, sceneListener_, option); in DoOnForeground()
576 if (abilityContext_->GetContentStorage()) { in DoOnForeground()
578 abilityContext_->GetContentStorage()->Get(), true); in DoOnForeground()
/foundation/multimedia/audio_standard/frameworks/js/napi/ringtone_manager/src/
Dsystem_sound_manager_napi.cpp297 asyncContext->abilityContext_ = GetAbilityContext(env, argv[i]); in SetSystemRingtoneUri()
327 context->abilityContext_, context->uri, in SetSystemRingtoneUri()
403 asyncContext->abilityContext_ = GetAbilityContext(env, argv[i]); in GetSystemRingtoneUri()
424 context->abilityContext_, static_cast<RingtoneType>(context->ringtoneType)); in GetSystemRingtoneUri()
510 asyncContext->abilityContext_ = GetAbilityContext(env, argv[i]); in GetSystemRingtonePlayer()
532 GetRingtonePlayer(context->abilityContext_, in GetSystemRingtonePlayer()
619 asyncContext->abilityContext_ = GetAbilityContext(env, argv[i]); in SetSystemNotificationUri()
647 context->abilityContext_, context->uri); in SetSystemNotificationUri()
719 asyncContext->abilityContext_ = GetAbilityContext(env, argv[PARAM0]); in GetSystemNotificationUri()
738 context->abilityContext_); in GetSystemNotificationUri()
[all …]
/foundation/multimedia/audio_standard/interfaces/kits/js/ringtone_manager/include/
Dsystem_sound_manager_napi.h73 std::shared_ptr<AbilityRuntime::Context> abilityContext_; member
/foundation/windowmanager/wm/src/
Dwindow_impl.cpp622 abilityContext_ = AbilityRuntime::Context::ConvertTo<AbilityRuntime::AbilityContext>(context); in Create()
623 if (abilityContext_ != nullptr) { in Create()
624 …ret = SingletonContainer::Get<WindowAdapter>().SaveAbilityToken(abilityContext_->GetToken(), windo… in Create()
1024 if (abilityContext_ != nullptr) { in Minimize()
1025 … AAFwk::AbilityManagerClient::GetInstance()->MinimizeAbility(abilityContext_->GetToken(), true); in Minimize()
1052 if (abilityContext_ != nullptr) { in Close()
1053 abilityContext_->CloseAbility(); in Close()
1299 if (abilityContext_ != nullptr) { in ConsumeKeyEvent()
1301 abilityContext_->TerminateSelf(); in ConsumeKeyEvent()
1599 if (abilityContext_ != nullptr && windowTag_ == WindowTag::MAIN_WINDOW) { in UpdateWindowState()
[all …]
/foundation/aafwk/standard/frameworks/kits/ability/native/include/ability_runtime/
Djs_ability.h40 std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_ = nullptr; member
/foundation/multimedia/medialibrary_standard/frameworks/innerkitsimpl/media_scanner/include/
Dmedia_scanner.h115 std::shared_ptr<OHOS::AppExecFwk::Context> abilityContext_; variable
/foundation/multimedia/medialibrary_standard/frameworks/innerkitsimpl/media_scanner/src/
Dmedia_scanner.cpp55 if (scanner->InitScanner(scanner->abilityContext_)) { in ScanQueueCB()
667 abilityContext_ = context; in SetAbilityContext()
679 abilityContext_ = nullptr; in ReleaseAbilityHelper()
/foundation/aafwk/standard/frameworks/kits/ability/native/src/
Dability.cpp166 if (abilityContext_ != nullptr) { in Init()
167 abilityContext_->RegisterAbilityCallback(weak_from_this()); in Init()
174 abilityContext_ = abilityContext; in AttachAbilityContext()
499 if (abilityContext_ == nullptr) { in IsRestoredInContinuation()
505 && abilityContext_->GetContentStorage() != nullptr) { in IsRestoredInContinuation()
847 abilityWindow_->InitWindow(winType, abilityContext_, sceneListener_, displayId, option); in InitWindow()
1082 if (abilityContext_ != nullptr && application_ != nullptr) { in OnConfigurationUpdatedNotify()
1083 abilityContext_->SetConfiguration(application_->GetConfiguration()); in OnConfigurationUpdatedNotify()
/foundation/aafwk/standard/frameworks/kits/ability/native/include/
Dability.h121 return abilityContext_; in GetAbilityContext()
1656 std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_ = nullptr;
/foundation/aafwk/standard/frameworks/kits/appkit/native/app/include/
Dcontext_deal.h749 std::shared_ptr<Context> abilityContext_ = nullptr; variable
/foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/
Dcontext_deal.cpp206 return abilityContext_; in GetContext()
221 abilityContext_ = context; in SetContext()
/foundation/windowmanager/wm/include/
Dwindow_impl.h288 …std::shared_ptr<AbilityRuntime::AbilityContext> abilityContext_; // give up when context offer get… variable