Home
last modified time | relevance | path

Searched refs:session_ (Results 1 - 25 of 115) sorted by relevance

12345

/foundation/window/window_manager/window_scene/test/unittest/
H A Dsession_test2.cpp57 sptr<Session> session_ = nullptr; member in OHOS::Rosen::WindowSessionTest2
94 session_ = new (std::nothrow) Session(info); in SetUp()
95 session_->surfaceNode_ = CreateRSSurfaceNode(); in SetUp()
96 EXPECT_NE(nullptr, session_); in SetUp()
98 session_->SetEventHandler(ssm_->taskScheduler_->GetEventHandler(), ssm_->eventHandler_); in SetUp()
102 session_->RegisterIsScreenLockedCallback(isScreenLockedCallback); in SetUp()
113 session_ = nullptr; in TearDown()
130 std::string dumpInfo = session_->handler_->GetEventRunner()->GetEventQueue()->DumpCurrentQueueSize(); in GetTaskCount()
149 ASSERT_NE(session_, nullptr); in HWTEST_F()
155 session_ in HWTEST_F()
[all...]
H A Dsession_lifecycle_test.cpp56 sptr <Session> session_ = nullptr; member in OHOS::Rosen::WindowSessionLifecycleTest
91 session_ = new (std::nothrow) Session(info); in SetUp()
92 session_->surfaceNode_ = CreateRSSurfaceNode(); in SetUp()
93 EXPECT_NE(nullptr, session_); in SetUp()
95 session_->SetEventHandler(ssm_->taskScheduler_->GetEventHandler(), ssm_->eventHandler_); in SetUp()
99 session_->RegisterIsScreenLockedCallback(isScreenLockedCallback); in SetUp()
104 session_ = nullptr; in TearDown()
121 std::string dumpInfo = session_->handler_->GetEventRunner()->GetEventQueue()->DumpCurrentQueueSize(); in GetTaskCount()
142 session_->state_ = SessionState::STATE_CONNECT; in HWTEST_F()
146 auto result = session_ in HWTEST_F()
[all...]
H A Dsession_test3.cpp57 sptr<Session> session_ = nullptr; member in OHOS::Rosen::WindowSessionTest3
75 session_ = sptr<Session>::MakeSptr(info); in SetUp()
76 EXPECT_NE(nullptr, session_); in SetUp()
77 session_->surfaceNode_ = CreateRSSurfaceNode(); in SetUp()
79 session_->SetEventHandler(ssm_->taskScheduler_->GetEventHandler(), ssm_->eventHandler_); in SetUp()
83 session_->RegisterIsScreenLockedCallback(isScreenLockedCallback); in SetUp()
88 session_ = nullptr; in TearDown()
105 std::string dumpInfo = session_->handler_->GetEventRunner()->GetEventQueue()->DumpCurrentQueueSize(); in GetTaskCount()
124 ASSERT_NE(session_, nullptr); in HWTEST_F()
125 NotifyContextTransparentFunc contextTransparentFunc = session_ in HWTEST_F()
[all...]
H A Dsession_test.cpp55 sptr<Session> session_ = nullptr; member in OHOS::Rosen::WindowSessionTest
92 session_ = new (std::nothrow) Session(info); in SetUp()
93 session_->surfaceNode_ = CreateRSSurfaceNode(); in SetUp()
94 EXPECT_NE(nullptr, session_); in SetUp()
96 session_->SetEventHandler(ssm_->taskScheduler_->GetEventHandler(), ssm_->eventHandler_); in SetUp()
100 session_->RegisterIsScreenLockedCallback(isScreenLockedCallback); in SetUp()
111 session_ = nullptr; in TearDown()
128 std::string dumpInfo = session_->handler_->GetEventRunner()->GetEventQueue()->DumpCurrentQueueSize(); in GetTaskCount()
147 ASSERT_NE(session_, nullptr); in HWTEST_F()
149 session_ in HWTEST_F()
[all...]
H A Dsession_stub_test.cpp48 sptr<SessionStub> session_ = nullptr; member in OHOS::Rosen::OHOS::SessionStubTest
61 session_ = new (std::nothrow) SessionStubMocker(); in SetUp()
62 EXPECT_NE(nullptr, session_); in SetUp()
67 session_ = nullptr; in TearDown()
83 auto res = session_->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
86 res = session_->OnRemoteRequest(code, data, reply, option); in HWTEST_F()
102 auto res = session_->ProcessRemoteRequest( in HWTEST_F()
109 res = session_->ProcessRemoteRequest( in HWTEST_F()
115 res = session_->ProcessRemoteRequest( in HWTEST_F()
121 res = session_ in HWTEST_F()
[all...]
H A Dsession_stub_lifecycle_test.cpp41 sptr <SessionStub> session_ = nullptr; member in OHOS::Rosen::SessionStubLifecycleTest
54 session_ = new (std::nothrow) SessionStubMocker(); in SetUp()
55 EXPECT_NE(nullptr, session_); in SetUp()
60 session_ = nullptr; in TearDown()
76 auto res = session_->HandleShow(data, reply); in HWTEST_F()
91 auto res = session_->HandleHide(data, reply); in HWTEST_F()
104 ASSERT_NE(session_, nullptr); in HWTEST_F()
105 auto res = session_->HandleDrawingCompleted(data, reply); in HWTEST_F()
125 auto res = session_->HandlePendingSessionActivation(data, reply); in HWTEST_F()
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/session/
H A Dwfd_sink_session_test.cpp28 session_ = std::make_shared<MockWfdSinkSession>(); in SetUpTestCase()
30 session_->InitSession(); in SetUpTestCase()
31 session_->SetSessionListener(listener_); in SetUpTestCase()
38 session_ = nullptr; in TearDownTestCase()
44 session_->SetClient(client_); in SetUp()
53 ASSERT_TRUE(session_ != nullptr); in HWTEST_F()
62 session_->SetInterruptState(true); in HWTEST_F()
63 session_->SetRunningState(SESSION_INTERRUPT); in HWTEST_F()
64 int32_t ret = session_->HandleEvent(event); in HWTEST_F()
70 ASSERT_TRUE(session_ ! in HWTEST_F()
[all...]
H A Dwfd_source_session_test.cpp29 session_ = std::make_shared<MockWfdSourceSession>(); in SetUpTestCase()
32 networkSessionCb_ = std::make_shared<WfdSourceSession::WfdSourceNetworkSession>(networkSession_, session_); in SetUpTestCase()
33 session_->InitSession(); in SetUpTestCase()
34 session_->SetServer(server_); in SetUpTestCase()
35 session_->SetSessionListener(listener_); in SetUpTestCase()
44 session_ = nullptr; in TearDownTestCase()
108 ASSERT_TRUE(session_ != nullptr); in HWTEST_F()
113 session_->NotifyServiceError(); in HWTEST_F()
118 ASSERT_TRUE(session_ != nullptr); in HWTEST_F()
127 session_ in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_scene.cpp40 session_ = session; in WindowScene()
47 CHECK_NULL_VOID(session_); in WindowScene()
48 initWindowMode_ = session_->GetWindowMode(); in WindowScene()
49 session_->SetNeedSnapshot(true); in WindowScene()
51 callback_ = [weakThis = WeakClaim(this), weakSession = wptr(session_)]() { in WindowScene()
66 CHECK_EQUAL_VOID(self->session_->IsAnco(), true); in WindowScene()
76 CHECK_NULL_VOID(session_); in ~WindowScene()
77 session_->SetShowRecent(false); in ~WindowScene()
78 session_->SetNeedSnapshot(false); in ~WindowScene()
84 auto name = session_ in CreateLeashWindowNode()
[all...]
H A Dsystem_window_scene.cpp31 SystemWindowScene::SystemWindowScene(const sptr<Rosen::Session>& session) : session_(session) in SystemWindowScene()
42 return session_; in GetSession()
54 CHECK_NULL_VOID(session_); in OnBoundsChanged()
61 session_->SetBounds(originBounds); in OnBoundsChanged()
62 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged()
63 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged()
64 auto ret = session_->UpdateRect(windowRect, Rosen::SizeChangeReason::UNDEFINED, "OnBoundsChanged"); in OnBoundsChanged()
72 CHECK_NULL_VOID(session_); in OnVisibleChange()
74 session_->GetSessionInfo().bundleName_.c_str(), session_ in OnVisibleChange()
[all...]
H A Dwindow_pattern.cpp123 CHECK_NULL_VOID(session_); in RegisterLifecycleListener()
125 session_->RegisterLifecycleListener(lifecycleListener_); in RegisterLifecycleListener()
130 CHECK_NULL_VOID(session_); in UnregisterLifecycleListener()
131 session_->UnregisterLifecycleListener(lifecycleListener_); in UnregisterLifecycleListener()
136 CHECK_NULL_RETURN(session_, false); in IsMainWindow()
137 return session_->GetWindowType() == Rosen::WindowType::WINDOW_TYPE_APP_MAIN_WINDOW; in IsMainWindow()
145 auto state = session_->GetSessionState(); in OnAttachToFrameNode()
147 "name: %{public}s, state: %{public}u, in recents: %{public}d", session_->GetPersistentId(), host->GetId(), in OnAttachToFrameNode()
148 session_->GetSessionInfo().bundleName_.c_str(), state, session_ in OnAttachToFrameNode()
[all...]
/foundation/multimedia/av_session/services/session/server/remote/
H A Dremote_session_sink_impl.cpp46 session_ = session; in CastSessionFromRemote()
52 session_->GetSessionId().c_str()); in CastSessionFromRemote()
54 "BUNDLE_NAME", session_->GetDescriptor().elementName_.GetBundleName(), in CastSessionFromRemote()
55 "SESSION_TYPE", session_->GetDescriptor().sessionType_, in CastSessionFromRemote()
56 "AUDIO_STATUS", HISYSEVENT_GET_AUDIO_STATUS(session_->GetUid()), in CastSessionFromRemote()
66 CHECK_AND_RETURN_RET_LOG(session_ != nullptr && syncer_ != nullptr, AVSESSION_ERROR, "session_ is nullptr"); in CastSessionFromRemote()
81 CHECK_AND_RETURN_RET_LOG(session_->SetAVMetaData(metaData) == AVSESSION_SUCCESS, AVSESSION_ERROR, in HandleSessionDataCategory()
88 CHECK_AND_RETURN_RET_LOG(session_->SetAVPlaybackState(playbackState) == AVSESSION_SUCCESS, AVSESSION_ERROR, in HandleSessionDataCategory()
96 CHECK_AND_RETURN_RET_LOG(session_ in HandleSessionDataCategory()
[all...]
H A Dremote_session_source_impl.cpp41 session_ = session; in CastSessionToRemote()
59 if (session_ != nullptr) { in CastSessionToRemote()
61 "BUNDLE_NAME", session_->GetDescriptor().elementName_.GetBundleName(), in CastSessionToRemote()
62 "SESSION_TYPE", session_->GetDescriptor().sessionType_, in CastSessionToRemote()
63 "AUDIO_STATUS", HISYSEVENT_GET_AUDIO_STATUS(session_->GetUid()), in CastSessionToRemote()
75 CHECK_AND_RETURN_RET_LOG(session_ != nullptr, AVSESSION_ERROR, "session_ is nullptr"); in CastSessionToRemote()
94 session_->ExecuteControllerCommand(command); in HandleSourceSessionDataCategory()
101 session_->ExecueCommonCommand(commonCommand, commandArgs); in HandleSourceSessionDataCategory()
113 RemoteSessionCapabilitySet::GetInstance().RemoveRemoteCapability(session_ in CancelCastAudio()
[all...]
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/
H A Dservice.cpp120 session_->Active( in OnStart()
153 if (session_ != nullptr) { in OnStop()
154 oldMemoryParaSize = session_->GetMemParaCurSize(); in OnStop()
169 if (session_ == nullptr || isOccupyingSession_.load()) { in GetLocalCapabilities()
173 session_->IncreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilities()
180 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilities()
192 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilities()
196 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilities()
200 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilities()
204 session_ in GetLocalCapabilities()
525 OnBundleStarted(BError(BError::Codes::SA_FORBID_BACKUP_RESTORE), session_, bundleNameIndexInfo); SetCurrentSessProperties() local
607 OnBundleStarted(BError(BError::Codes::SA_FORBID_BACKUP_RESTORE), session_, bundleNameIndexInfo); SetCurrentSessProperties() local
[all...]
H A Dservice_incremental.cpp84 VerifyCaller(session_->GetScenario()); in Release()
122 if (session_ == nullptr || isOccupyingSession_.load()) { in GetLocalCapabilitiesIncremental()
126 session_->IncreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
133 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
145 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
149 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
153 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
157 session_->DecreaseSessionCnt(__PRETTY_FUNCTION__); in GetLocalCapabilitiesIncremental()
170 auto session = thisPtr->session_; in StartGetFdTask()
183 if (BundleMgrAdapter::IsUser0BundleName(bundleName, session_ in StartGetFdTask()
[all...]
H A Dsub_service.cpp81 VerifyCaller(session_->GetScenario()); in Finish()
82 session_->Finish(); in Finish()
101 auto backUpConnection = session_->GetExtConnection(fileInfo.owner); in PublishFile()
136 fd = session_->OnBundleExtManageInfo(callerName, move(fd)); in AppFileReady()
138 session_->GetServiceReverseProxy()->BackupOnFileReady(callerName, fileName, move(fd), errCode); in AppFileReady()
142 if (session_->OnBundleFileReady(callerName, fileName)) { in AppFileReady()
143 auto backUpConnection = session_->GetExtConnection(callerName); in AppFileReady()
156 session_->StopFwkTimer(callerName); in AppFileReady()
157 session_->StopExtTimer(callerName); in AppFileReady()
159 session_ in AppFileReady()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ui_extension/
H A Dsecurity_session_wrapper_impl.cpp129 CHECK_NULL_VOID(session_); in InitAllCallback()
130 auto sessionCallbacks = session_->GetExtensionSessionEventCallback(); in InitAllCallback()
332 session_ = Rosen::ExtensionSessionManager::GetInstance().RequestExtensionSession(extensionSessionInfo); in CreateSession()
333 CHECK_NULL_VOID(session_); in CreateSession()
336 session_->RegisterLifecycleListener(lifecycleListener_); in CreateSession()
342 CHECK_NULL_VOID(session_); in DestroySession()
343 session_->UnregisterLifecycleListener(lifecycleListener_); in DestroySession()
344 session_ = nullptr; in DestroySession()
349 return session_ != nullptr; in IsSessionValid()
354 return session_ in GetSessionId()
[all...]
H A Dsession_wrapper_impl.cpp136 CHECK_NULL_VOID(session_); in InitAllCallback()
137 auto sessionCallbacks = session_->GetExtensionSessionEventCallback(); in InitAllCallback()
418 session_ = Rosen::ExtensionSessionManager::GetInstance().RequestExtensionSession(extensionSessionInfo); in CreateSession()
419 CHECK_NULL_VOID(session_); in CreateSession()
422 session_->RegisterLifecycleListener(lifecycleListener_); in CreateSession()
428 auto extConfig = session_->GetSystemConfig(); in UpdateSessionConfig()
436 session_->SetSystemConfig(extConfig); in UpdateSessionConfig()
441 CHECK_NULL_VOID(session_); in DestroySession()
442 UIEXT_LOGI("DestroySession, persistentid = %{public}d.", session_->GetPersistentId()); in DestroySession()
443 session_ in DestroySession()
[all...]
/foundation/multimedia/av_session/services/session/server/
H A Davcontroller_item.cpp33 : pid_(pid), session_(session), userId_(userId) in AVControllerItem()
36 if (session_ != nullptr) { in AVControllerItem()
37 sessionId_ = session_->GetSessionId(); in AVControllerItem()
70 CHECK_AND_RETURN_RET_LOG(session_ != nullptr, ERR_SESSION_NOT_EXIST, "session not exist"); in GetAVCallMetaData()
71 avCallMetaData = session_->GetAVCallMetaData(); in GetAVCallMetaData()
78 CHECK_AND_RETURN_RET_LOG(session_ != nullptr, ERR_SESSION_NOT_EXIST, "session not exist"); in GetAVCallState()
79 avCallState = session_->GetAVCallState(); in GetAVCallState()
87 CHECK_AND_RETURN_RET_LOG(session_ != nullptr, ERR_SESSION_NOT_EXIST, "session not exist"); in GetAVPlaybackState()
88 state = session_->GetPlaybackState(); in GetAVPlaybackState()
96 CHECK_AND_RETURN_RET_LOG(session_ ! in GetAVMetaData()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/
H A Droute_head_handler_impl.cpp67 session_ = SessionManager::GetInstance().GetSession(localPoint, deviceId_); in Init()
69 session_.appId.c_str(), Anonymous::Change(session_.sourceDeviceId).c_str(), in Init()
70 session_.sourceUserId, Anonymous::Change(session_.targetDeviceId).c_str()); in Init()
82 auto peerCap = UpgradeManager::GetInstance().GetCapability(session_.targetDeviceId, flag); in GetHeadDataSize()
83 auto devInfo = DmAdapter::GetInstance().GetDeviceInfo(session_.targetDeviceId); in GetHeadDataSize()
86 ZLOGI("type car set version. devicdId:%{public}s", Anonymous::Change(session_.targetDeviceId).c_str()); in GetHeadDataSize()
99 if (!session_.IsValid()) { in GetHeadDataSize()
104 + session_ in GetHeadDataSize()
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/
H A Dcamera_framework_moduletest.cpp618 if (session_) { in ConfigScanSession()
620 session_->Release(); in ConfigScanSession()
650 if (session_) { in ConfigHighResSession()
652 session_->Release(); in ConfigHighResSession()
707 if (session_) { in ConfigSlowMotionSession()
709 session_->Release(); in ConfigSlowMotionSession()
789 if (session_) { in ConfigVideoSession()
791 session_->Release(); in ConfigVideoSession()
1000 intResult = session_->Start(); in TestCallbacksSession()
1019 session_ in TestCallbacksSession()
[all...]
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/mirror/src/
H A Dmirror_player_impl.cpp36 auto session = session_.promote(); in Play()
47 auto session = session_.promote(); in Pause()
58 auto session = session_.promote(); in SetSurface()
76 auto session = session_.promote(); in DeliverInputEvent()
87 auto session = session_.promote(); in InjectEvent()
97 auto session = session_.promote(); in Release()
109 auto session = session_.promote(); in GetDisplayId()
120 auto session = session_.promote(); in ResizeVirtualScreen()
/foundation/CastEngine/castengine_cast_plus_stream/src/mirror/src/
H A Dmirror_player_impl.cpp36 auto session = session_.promote(); in Play()
47 auto session = session_.promote(); in Pause()
58 auto session = session_.promote(); in SetSurface()
76 auto session = session_.promote(); in DeliverInputEvent()
87 auto session = session_.promote(); in InjectEvent()
97 auto session = session_.promote(); in Release()
109 auto session = session_.promote(); in GetDisplayId()
120 auto session = session_.promote(); in ResizeVirtualScreen()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/
H A Dcast_session_listeners.cpp70 auto session = session_.promote(); in OnSetup()
86 auto session = session_.promote(); in OnPlay()
99 auto session = session_.promote(); in OnPause()
112 auto session = session_.promote(); in OnTearDown()
125 auto session = session_.promote(); in OnError()
137 auto session = session_.promote(); in NotifyTrigger()
149 auto session = session_.promote(); in NotifyEventChange()
160 auto session = session_.promote(); in NotifySessionEvent()
186 auto session = session_.promote(); in SendActionToPeers()
201 auto session = session_ in OnRenderReady()
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/src/
H A Dcast_session_listeners.cpp70 auto session = session_.promote(); in OnSetup()
86 auto session = session_.promote(); in OnPlay()
99 auto session = session_.promote(); in OnPause()
112 auto session = session_.promote(); in OnTearDown()
125 auto session = session_.promote(); in OnError()
137 auto session = session_.promote(); in NotifyTrigger()
149 auto session = session_.promote(); in NotifyEventChange()
160 auto session = session_.promote(); in NotifySessionEvent()
186 auto session = session_.promote(); in SendActionToPeers()
201 auto session = session_ in OnRenderReady()
[all...]

Completed in 26 milliseconds

12345