Lines Matching defs:hostSession
150 #define CHECK_HOST_SESSION_RETURN_IF_NULL(hostSession) \
152 if ((hostSession) == nullptr) { \
153 TLOGE(WmsLogTag::DEFAULT, "hostSession is null"); \
158 #define CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, ret) \
160 if ((hostSession) == nullptr) { \
161 TLOGE(WmsLogTag::DEFAULT, "hostSession is null"); \
424 auto hostSession = GetHostSession();
425 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_NULLPTR);
435 auto ret = hostSession->Connect(
519 auto hostSession = GetHostSession();
520 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
521 WSError ret = hostSession->Foreground(property_);
618 if (auto hostSession = GetHostSession()) {
619 hostSession->Disconnect();
972 auto hostSession = GetHostSession();
973 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
974 auto ret = hostSession->RequestFocus(isFocused);
1082 if (auto hostSession = GetHostSession()) {
1083 hostSession->GetAllAvoidAreas(avoidAreasToUpdate);
1608 auto hostSession = GetHostSession();
1609 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
1610 hostSession->SetLandscapeMultiWindow(isLandscapeMultiWindow);
1820 auto hostSession = GetHostSession();
1821 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
1822 WMError errorCode = hostSession->SetSystemWindowEnableDrag(enableDrag);
1915 auto hostSession = GetHostSession();
1916 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
1923 hostSession->OnSessionModalTypeChange(subWindowModalType);
1951 if (auto hostSession = GetHostSession()) {
1952 hostSession->SetCustomDecorHeight(decorHeight);
2172 auto hostSession = GetHostSession();
2173 if (hostSession != nullptr && ret == WMError::WM_OK) {
2174 hostSession->UpdateRectChangeListenerRegistered(true);
2189 auto hostSession = GetHostSession();
2190 if (hostSession != nullptr && windowRectChangeListenersEmpty) {
2191 hostSession->UpdateRectChangeListenerRegistered(false);
2356 if (auto hostSession = GetHostSession()) {
2357 hostSession->UpdateRectChangeListenerRegistered(true);
2798 auto hostSession = GetHostSession();
2799 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WSError::WS_DO_NOTHING);
2800 return hostSession->MarkProcessed(eventId);
2942 if (auto hostSession = GetHostSession()) {
2943 hostSession->ProcessPointDownSession(posX, posY);
3616 auto hostSession = GetHostSession();
3617 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_INVALID_WINDOW);
3618 return hostSession->UpdateSessionPropertyByAction(property_, action);
3739 if (auto hostSession = GetHostSession()) {
3740 return static_cast<WMError>(hostSession->SetKeyboardSessionGravity(
3857 auto hostSession = GetHostSession();
3858 CHECK_HOST_SESSION_RETURN_IF_NULL(hostSession);
3859 hostSession->UpdatePiPRect(rect, static_cast<SizeChangeReason>(reason));
3869 auto hostSession = GetHostSession();
3870 CHECK_HOST_SESSION_RETURN_IF_NULL(hostSession);
3871 hostSession->UpdatePiPControlStatus(static_cast<WsPiPControlType>(controlType),
3881 if (auto hostSession = GetHostSession()) {
3882 hostSession->SetAutoStartPiP(isAutoStart);
4022 auto hostSession = GetHostSession();
4023 CHECK_HOST_SESSION_RETURN_ERROR_IF_NULL(hostSession, WMError::WM_ERROR_NULLPTR);
4024 return hostSession->GetAppForceLandscapeConfig(config);