/foundation/ability/ability_runtime/test/unittest/ui_ability_lifecycle_manager_test/ |
D | ui_ability_lifecycle_manager_test.cpp | 106 sptr<SessionInfo> sessionInfo(new SessionInfo()); 107 sessionInfo->sessionToken = new Rosen::Session(info); 108 EXPECT_EQ(mgr->StartUIAbility(abilityRequest, sessionInfo), ERR_OK); 121 sptr<SessionInfo> sessionInfo(new SessionInfo()); 122 sessionInfo->sessionToken = new Rosen::Session(info); 123 sessionInfo->persistentId = 1; 124 abilityRequest.sessionInfo = sessionInfo; 126 mgr->sessionAbilityMap_.emplace(sessionInfo->persistentId, abilityRecord); 127 EXPECT_EQ(mgr->StartUIAbility(abilityRequest, sessionInfo), ERR_OK); 140 sptr<SessionInfo> sessionInfo(new SessionInfo()); [all …]
|
/foundation/multimedia/av_session/services/session/server/test/ |
D | remote_utils_test.cpp | 54 std::string sessionInfo; variable 64 EXPECT_EQ(JsonUtils::SetSessionBasicInfo(sessionInfo, basicInfo), AVSESSION_SUCCESS); 65 EXPECT_EQ(JsonUtils::SetSessionDescriptor(sessionInfo, descriptor), AVSESSION_SUCCESS); 66 EXPECT_EQ(JsonUtils::GetSessionDescriptor(sessionInfo, descriptorOut), AVSESSION_SUCCESS); 79 std::string sessionInfo; variable 89 EXPECT_EQ(JsonUtils::SetSessionBasicInfo(sessionInfo, basicInfo), AVSESSION_SUCCESS); 90 EXPECT_EQ(JsonUtils::SetSessionDescriptor(sessionInfo, descriptor), AVSESSION_SUCCESS); 91 EXPECT_EQ(JsonUtils::GetSessionDescriptor(sessionInfo, descriptorOut), AVSESSION_SUCCESS); 104 std::string sessionInfo; variable 114 EXPECT_EQ(JsonUtils::SetSessionBasicInfo(sessionInfo, basicInfo), AVSESSION_SUCCESS); [all …]
|
/foundation/multimedia/av_session/services/session/server/remote/ |
D | json_utils.h | 35 static int32_t GetAllCapability(const std::string& sessionInfo, std::string& jsonCapability); 37 … static int32_t SetSessionBasicInfo(std::string& sessionInfo, const AVSessionBasicInfo& basicInfo); 38 … static int32_t GetSessionBasicInfo(const std::string& sessionInfo, AVSessionBasicInfo& basicInfo); 40 …static int32_t SetSessionDescriptors(std::string& sessionInfo, const std::vector<AVSessionDescript… 41 …static int32_t GetSessionDescriptors(const std::string& sessionInfo, std::vector<AVSessionDescript… 43 …static int32_t SetSessionDescriptor(std::string& sessionInfo, const AVSessionDescriptor& descripto… 44 …static int32_t GetSessionDescriptor(const std::string& sessionInfo, AVSessionDescriptor& descripto…
|
D | json_utils.cpp | 117 int32_t JsonUtils::GetAllCapability(const std::string& sessionInfo, std::string& jsonCapability) in GetAllCapability() argument 119 CHECK_AND_RETURN_RET_LOG(!sessionInfo.empty(), AVSESSION_ERROR, "sessionInfo is empty"); in GetAllCapability() 120 json jsonSessionInfo = json::parse(sessionInfo, nullptr, false); in GetAllCapability() 135 int32_t JsonUtils::SetSessionBasicInfo(std::string& sessionInfo, const AVSessionBasicInfo& basicInf… in SetSessionBasicInfo() argument 138 if (sessionInfo.empty()) { in SetSessionBasicInfo() 142 jsonObj = json::parse(sessionInfo, nullptr, false); in SetSessionBasicInfo() 159 sessionInfo = jsonObj.dump(); in SetSessionBasicInfo() 163 int32_t JsonUtils::GetSessionBasicInfo(const std::string& sessionInfo, AVSessionBasicInfo& basicInf… in GetSessionBasicInfo() argument 165 CHECK_AND_RETURN_RET_LOG(!sessionInfo.empty(), AVSESSION_ERROR, "sessionInfo is empty"); in GetSessionBasicInfo() 166 json jsonObj = json::parse(sessionInfo, nullptr, false); in GetSessionBasicInfo() [all …]
|
/foundation/ability/ability_runtime/services/abilitymgr/src/scene_board/ |
D | ui_ability_lifecycle_manager.cpp | 47 …lityLifecycleManager::StartUIAbility(AbilityRequest &abilityRequest, sptr<SessionInfo> sessionInfo) in StartUIAbility() argument 52 if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) { in StartUIAbility() 56 auto sessionToken = iface_cast<Rosen::ISession>(sessionInfo->sessionToken); in StartUIAbility() 62 abilityRequest.sessionInfo = sessionInfo; in StartUIAbility() 64 HILOG_INFO("session id: %{public}d.", sessionInfo->persistentId); in StartUIAbility() 66 auto iter = sessionAbilityMap_.find(sessionInfo->persistentId); in StartUIAbility() 68 HILOG_DEBUG("isNewWant: %{public}d.", sessionInfo->isNewWant); in StartUIAbility() 70 uiAbilityRecord->SetIsNewWant(sessionInfo->isNewWant); in StartUIAbility() 71 if (sessionInfo->isNewWant) { in StartUIAbility() 75 if (sessionInfo->startSetting != nullptr) { in StartUIAbility() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/ |
D | js_ui_extension_base.cpp | 205 … const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd) in OnCommandWindow() argument 208 if (sessionInfo == nullptr) { in OnCommandWindow() 214 ForegroundWindow(want, sessionInfo); in OnCommandWindow() 217 BackgroundWindow(sessionInfo); in OnCommandWindow() 220 DestroyWindow(sessionInfo); in OnCommandWindow() 239 context_->GetToken(), sessionInfo, winCmd, abilityCmd); in OnCommandWindow() 282 …onBase::CallJsOnSessionCreate(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, in CallJsOnSessionCreate() argument 298 …JsUIExtensionContentSession::CreateJsUIExtensionContentSession(*nativeEngine, sessionInfo, uiWindo… in CallJsOnSessionCreate() 310 …tensionBase::ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo) in ForegroundWindow() argument 313 if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) { in ForegroundWindow() [all …]
|
D | js_ui_extension.cpp | 355 …sUIExtension::OnCommandWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, in OnCommandWindow() argument 358 if (sessionInfo == nullptr) { in OnCommandWindow() 362 …HILOG_DEBUG("begin. persistentId: %{private}d, winCmd: %{public}d", sessionInfo->persistentId, win… in OnCommandWindow() 363 Extension::OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow() 366 ForegroundWindow(want, sessionInfo); in OnCommandWindow() 369 BackgroundWindow(sessionInfo); in OnCommandWindow() 372 DestroyWindow(sessionInfo); in OnCommandWindow() 392 context->GetToken(), sessionInfo, winCmd, abilityCmd); in OnCommandWindow() 436 …UIExtension::ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo) in ForegroundWindow() argument 439 if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) { in ForegroundWindow() [all …]
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/window_scene/ |
D | window_scene_test.cpp | 126 Rosen::SessionInfo sessionInfo = { .bundleName_ = BUNDLE_NAME, .abilityName_ = ABILITY_NAME }; variable 127 auto session = Rosen::SceneSessionManager::GetInstance().RequestSceneSession(sessionInfo); 154 Rosen::SessionInfo sessionInfo = { .bundleName_ = BUNDLE_NAME, .abilityName_ = ABILITY_NAME }; variable 155 auto session = Rosen::SceneSessionManager::GetInstance().RequestSceneSession(sessionInfo); 186 Rosen::SessionInfo sessionInfo = { .bundleName_ = BUNDLE_NAME, .abilityName_ = ABILITY_NAME }; variable 187 auto session = Rosen::SceneSessionManager::GetInstance().RequestSceneSession(sessionInfo); 237 Rosen::SessionInfo sessionInfo = { .bundleName_ = BUNDLE_NAME, .abilityName_ = ABILITY_NAME }; variable 238 auto session = Rosen::SceneSessionManager::GetInstance().RequestSceneSession(sessionInfo); 255 …Rosen::SessionInfo sessionInfo = { .bundleName_ = BUNDLE_NAME, .abilityName_ = ABILITY_NAME, .isSy… variable 256 auto session = Rosen::SceneSessionManager::GetInstance().RequestSceneSession(sessionInfo);
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | extension_session_manager.cpp | 53 auto sessionInfo = extSession->GetSessionInfo(); in SetAbilitySessionInfo() local 56 abilitySessionInfo->callerToken = sessionInfo.callerToken_; in SetAbilitySessionInfo() 58 if (sessionInfo.want != nullptr) { in SetAbilitySessionInfo() 59 abilitySessionInfo->want = *sessionInfo.want; in SetAbilitySessionInfo() 64 …<ExtensionSession> ExtensionSessionManager::RequestExtensionSession(const SessionInfo& sessionInfo) in RequestExtensionSession() argument 66 auto task = [this, sessionInfo]() { in RequestExtensionSession() 67 sptr<ExtensionSession> extensionSession = new (std::nothrow) ExtensionSession(sessionInfo); in RequestExtensionSession() 74 persistentId, sessionInfo.bundleName_.c_str(), sessionInfo.abilityName_.c_str()); in RequestExtensionSession()
|
/foundation/multimedia/av_session/services/session/server/ |
D | focus_session_strategy.cpp | 80 FocusSessionChangeInfo& sessionInfo) in SelectFocusSession() argument 95 sessionInfo.uid = info->clientUID; in SelectFocusSession() 96 if (selector_ != nullptr && !selector_(sessionInfo)) { in SelectFocusSession() 99 SLOGI("uid=%{public}d is focus session", sessionInfo.uid); in SelectFocusSession() 100 …HISYSEVENT_BEHAVIOR("FOCUS_CHANGE", "FOCUS_SESSION_UID", sessionInfo.uid, "AUDIO_INFO_CONTENT_TYPE… in SelectFocusSession()
|
/foundation/window/window_manager/wm/test/unittest/ |
D | window_session_impl_test.cpp | 85 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 86 sptr<SessionMocker> session = new(std::nothrow) SessionMocker(sessionInfo); 114 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 115 sptr<SessionMocker> session = new(std::nothrow) SessionMocker(sessionInfo); 140 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 141 sptr<SessionMocker> session = new(std::nothrow) SessionMocker(sessionInfo); 168 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 169 sptr<SessionMocker> session = new(std::nothrow) SessionMocker(sessionInfo); 197 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 198 sptr<SessionMocker> session = new(std::nothrow) SessionMocker(sessionInfo); [all …]
|
D | window_scene_session_impl_test.cpp | 97 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 98 sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo); 128 SessionInfo sessionInfo = {"CreateTestBundle", "CreateTestModule", "CreateTestAbility"}; variable 129 sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo); 233 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 234 sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo); 262 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 263 sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo); 298 SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" }; variable 299 sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo); [all …]
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
D | js_scene_utils.cpp | 29 …ol ConvertSessionInfoFromJs(NativeEngine& engine, NativeObject* jsObject, SessionInfo& sessionInfo) in ConvertSessionInfoFromJs() argument 45 sessionInfo.bundleName_ = bundleName; in ConvertSessionInfoFromJs() 53 sessionInfo.moduleName_ = moduleName; in ConvertSessionInfoFromJs() 61 sessionInfo.abilityName_ = abilityName; in ConvertSessionInfoFromJs() 69 sessionInfo.isSystem_ = isSystem; in ConvertSessionInfoFromJs() 77 sessionInfo.persistentId_ = persistentId; in ConvertSessionInfoFromJs() 85 sessionInfo.callState_ = static_cast<uint32_t>(callState); in ConvertSessionInfoFromJs() 94 sessionInfo.windowType_ = static_cast<uint32_t>( in ConvertSessionInfoFromJs() 101 NativeValue* CreateJsSessionInfo(NativeEngine& engine, const SessionInfo& sessionInfo) in CreateJsSessionInfo() argument 109 object->SetProperty("bundleName", CreateJsValue(engine, sessionInfo.bundleName_)); in CreateJsSessionInfo() [all …]
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
D | lifecycle_deal.cpp | 55 sptr<SessionInfo> sessionInfo) in Inactivate() argument 61 abilityScheduler->ScheduleAbilityTransaction(want, stateInfo, sessionInfo); in Inactivate() 106 void LifecycleDeal::CommandAbilityWindow(const Want &want, const sptr<SessionInfo> &sessionInfo, Wi… in CommandAbilityWindow() argument 111 abilityScheduler->ScheduleCommandAbilityWindow(want, sessionInfo, winCmd); in CommandAbilityWindow() 131 sptr<SessionInfo> sessionInfo) in ForegroundNew() argument 140 abilityScheduler->ScheduleAbilityTransaction(want, stateInfo, sessionInfo); in ForegroundNew() 144 sptr<SessionInfo> sessionInfo) in BackgroundNew() argument 153 abilityScheduler->ScheduleAbilityTransaction(want, stateInfo, sessionInfo); in BackgroundNew()
|
D | ability_manager_collaborator_proxy.cpp | 104 int32_t AbilityManagerCollaboratorProxy::NotifyMissionCreated(const sptr<SessionInfo> &sessionInfo) in NotifyMissionCreated() argument 114 if (sessionInfo) { in NotifyMissionCreated() 115 if (!data.WriteBool(true) || !data.WriteParcelable(sessionInfo)) { in NotifyMissionCreated() 175 const AppExecFwk::AbilityInfo &abilityInfo, const sptr<SessionInfo> &sessionInfo) in NotifyLoadAbility() argument 189 if (sessionInfo) { in NotifyLoadAbility() 190 if (!data.WriteBool(true) || !data.WriteParcelable(sessionInfo)) { in NotifyLoadAbility() 397 void AbilityManagerCollaboratorProxy::UpdateMissionInfo(sptr<SessionInfo> &sessionInfo) in UpdateMissionInfo() argument 408 if (sessionInfo) { in UpdateMissionInfo() 409 if (!data.WriteBool(true) || !data.WriteParcelable(sessionInfo)) { in UpdateMissionInfo() 431 sessionInfo = reply.ReadParcelable<SessionInfo>(); in UpdateMissionInfo()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
D | lifecycle_deal.h | 49 …void Inactivate(const Want &want, LifeCycleStateInfo &stateInfo, sptr<SessionInfo> sessionInfo = n… 55 …void CommandAbilityWindow(const Want &want, const sptr<SessionInfo> &sessionInfo, WindowCommand wi… 59 sptr<SessionInfo> sessionInfo = nullptr); 61 sptr<SessionInfo> sessionInfo = nullptr);
|
/foundation/ability/ability_runtime/test/unittest/ability_manager_client_branch_test/ |
D | ability_manager_client_branch_test.cpp | 56 sptr<SessionInfo> sessionInfo = new (std::nothrow) SessionInfo(); in MockSessionInfo() local 57 if (!sessionInfo) { in MockSessionInfo() 61 sessionInfo->persistentId = persistentId; in MockSessionInfo() 62 return sessionInfo; in MockSessionInfo() 527 sptr<SessionInfo> sessionInfo(new SessionInfo()); 529 token, sessionInfo, WIN_CMD_FOREGROUND, ABILITY_CMD_FOREGROUND); 1150 sptr<SessionInfo> sessionInfo(new SessionInfo()); 1151 …EXPECT_EQ(AbilityManagerClient::GetInstance()->StartUIAbilityBySCB(sessionInfo), ERR_INVALID_VALUE… 1162 sptr<SessionInfo> sessionInfo(new SessionInfo()); 1163 sessionInfo->sessionToken = new Rosen::Session(info); [all …]
|
/foundation/multimedia/av_session/mediaControlExtension/ModuleLoader/ |
D | js_media_control_extension.cpp | 214 …rolExtension::OnCommandWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, in OnCommandWindow() argument 217 if (sessionInfo == nullptr) { in OnCommandWindow() 221 …HILOG_DEBUG("begin. persistentId: %{private}d, winCmd: %{public}d", sessionInfo->persistentId, win… in OnCommandWindow() 222 Extension::OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow() 225 ForegroundWindow(want, sessionInfo); in OnCommandWindow() 228 BackgroundWindow(sessionInfo); in OnCommandWindow() 231 DestroyWindow(sessionInfo); in OnCommandWindow() 251 context->GetToken(), sessionInfo, winCmd, abilityCmd); in OnCommandWindow() 295 …olExtension::ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo) in ForegroundWindow() argument 298 if (sessionInfo == nullptr) { in ForegroundWindow() [all …]
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ui_extension_ability/ |
D | js_ui_extension_base.h | 87 …const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd); 155 void ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo); 156 void BackgroundWindow(const sptr<AAFwk::SessionInfo> &sessionInfo); 157 void DestroyWindow(const sptr<AAFwk::SessionInfo> &sessionInfo); 158 bool CallJsOnSessionCreate(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo,
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/share_extension_ability/ |
D | js_share_extension.cpp | 85 … const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd) in OnCommandWindow() argument 87 …HILOG_DEBUG("begin. persistentId: %{private}d, winCmd: %{public}d", sessionInfo->persistentId, win… in OnCommandWindow() 88 if (sessionInfo == nullptr) { in OnCommandWindow() 92 Extension::OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow() 98 jsUIExtensionBase_->OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/action_extension_ability/ |
D | js_action_extension.cpp | 85 … const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd) in OnCommandWindow() argument 87 …HILOG_DEBUG("begin. persistentId: %{private}d, winCmd: %{public}d", sessionInfo->persistentId, win… in OnCommandWindow() 88 if (sessionInfo == nullptr) { in OnCommandWindow() 92 Extension::OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow() 98 jsUIExtensionBase_->OnCommandWindow(want, sessionInfo, winCmd); in OnCommandWindow()
|
/foundation/ability/ability_runtime/service_router_framework/interfaces/inner_api/src/ |
D | service_router_mgr_proxy.cpp | 82 int32_t ServiceRouterMgrProxy::StartUIExtensionAbility(const sptr<SessionInfo> &sessionInfo, int32_… in StartUIExtensionAbility() argument 92 if (sessionInfo) { in StartUIExtensionAbility() 93 if (!data.WriteBool(true) || !data.WriteParcelable(sessionInfo)) { in StartUIExtensionAbility() 128 const sptr<SessionInfo> &sessionInfo, int32_t userId) in ConnectUIExtensionAbility() argument 155 if (sessionInfo) { in ConnectUIExtensionAbility() 156 if (!data.WriteBool(true) || !data.WriteParcelable(sessionInfo)) { in ConnectUIExtensionAbility()
|
/foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/include/ |
D | iability_manager_collaborator.h | 58 virtual int32_t NotifyMissionCreated(const sptr<SessionInfo> &sessionInfo) = 0; 77 const AppExecFwk::AbilityInfo &abilityInfo, const sptr<SessionInfo> &sessionInfo) = 0; 126 virtual void UpdateMissionInfo(sptr<SessionInfo> &sessionInfo) = 0;
|
/foundation/multimedia/av_session/mediaControlExtension/Interface/ |
D | js_media_control_extension.h | 106 … virtual void OnCommandWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, 160 void ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo); 161 void BackgroundWindow(const sptr<AAFwk::SessionInfo> &sessionInfo); 162 void DestroyWindow(const sptr<AAFwk::SessionInfo> &sessionInfo);
|
/foundation/ability/ability_runtime/service_router_framework/services/srms/src/ |
D | service_router_mgr_stub.cpp | 129 sptr<SessionInfo> sessionInfo = nullptr; in HandleStartUIExtensionAbility() local 131 sessionInfo = data.ReadParcelable<SessionInfo>(); in HandleStartUIExtensionAbility() 134 int32_t result = StartUIExtensionAbility(sessionInfo, userId); in HandleStartUIExtensionAbility() 154 sptr<SessionInfo> sessionInfo = nullptr; in HandleConnectUIExtensionAbility() local 156 sessionInfo = data.ReadParcelable<SessionInfo>(); in HandleConnectUIExtensionAbility() 159 int32_t result = ConnectUIExtensionAbility(*want, callback, sessionInfo, userId); in HandleConnectUIExtensionAbility()
|