Lines Matching refs:Rosen

51 class PreviewerListener : public OHOS::Rosen::IWindowSystemBarEnableListener {
53 OHOS::Rosen::WMError OnSetSpecificBarProperty(OHOS::Rosen::WindowType type,
54 const OHOS::Rosen::SystemBarProperty& property)
57 return OHOS::Rosen::WMError::WM_OK;
169 OHOS::Rosen::FoldStatus::FOLDED ? screenInfo.foldWidth : screenInfo.orignalResolutionWidth);
171 OHOS::Rosen::FoldStatus::FOLDED ? screenInfo.foldHeight : screenInfo.orignalResolutionHeight);
187 OHOS::Rosen::FoldStatus::FOLDED ? screenInfo.foldWidth : screenInfo.orignalResolutionWidth);
253 OHOS::Rosen::WMError errCode;
254 OHOS::sptr<OHOS::Rosen::WindowOption> sp = nullptr;
255 auto window = OHOS::Rosen::Window::Create("previewer", sp, nullptr, errCode);
256 window->RegisterSystemBarEnableListener(sptr<OHOS::Rosen::IWindowSystemBarEnableListener>(listener));
306 OHOS::Rosen::Window* window = OHOS::Previewer::PreviewerWindow::GetInstance().GetWindowObject();
311 window->RegisterSystemBarEnableListener(sptr<OHOS::Rosen::IWindowSystemBarEnableListener>(listener));
617 OHOS::Rosen::Window* window = OHOS::Previewer::PreviewerWindow::GetInstance().GetWindowObject();
833 OHOS::Rosen::Window* window = OHOS::Previewer::PreviewerWindow::GetInstance().GetWindowObject();
848 OHOS::Rosen::Window* window = OHOS::Previewer::PreviewerWindow::GetInstance().GetWindowObject();
889 glfwRenderContext = OHOS::Rosen::GlfwRenderContext::GetGlobal();
921 OHOS::Rosen::FoldStatus status = ConvertFoldStatus(commandFoldStatus);
925 if (status == OHOS::Rosen::FoldStatus::UNKNOWN) {
933 OHOS::Rosen::FoldStatus JsAppImpl::ConvertFoldStatus(std::string value) const
935 OHOS::Rosen::FoldStatus foldStatus = OHOS::Rosen::FoldStatus::EXPAND;
937 foldStatus = OHOS::Rosen::FoldStatus::FOLDED;
939 foldStatus = OHOS::Rosen::FoldStatus::EXPAND;
941 foldStatus = OHOS::Rosen::FoldStatus::HALF_FOLD;
943 foldStatus = OHOS::Rosen::FoldStatus::UNKNOWN;
953 void JsAppImpl::CalculateAvoidAreaByType(OHOS::Rosen::WindowType type,
954 const OHOS::Rosen::SystemBarProperty& property)
958 OHOS::Rosen::Window* window = GetWindow();
963 sptr<OHOS::Rosen::AvoidArea> statusArea(new(std::nothrow) OHOS::Rosen::AvoidArea());
965 ELOG("new OHOS::Rosen::AvoidArea failed");
968 if (OHOS::Rosen::WindowType::WINDOW_TYPE_STATUS_BAR == type) {
971 window->UpdateAvoidArea(statusArea, OHOS::Rosen::AvoidAreaType::TYPE_SYSTEM);
974 window->UpdateAvoidArea(statusArea, OHOS::Rosen::AvoidAreaType::TYPE_SYSTEM);
977 } else if (OHOS::Rosen::WindowType::WINDOW_TYPE_NAVIGATION_INDICATOR == type) {
981 window->UpdateAvoidArea(statusArea, OHOS::Rosen::AvoidAreaType::TYPE_NAVIGATION_INDICATOR);
984 window->UpdateAvoidArea(statusArea, OHOS::Rosen::AvoidAreaType::TYPE_NAVIGATION_INDICATOR);
992 void JsAppImpl::UpdateAvoidArea2Ide(const std::string& key, const OHOS::Rosen::Rect& value)
1004 OHOS::Rosen::Window* JsAppImpl::GetWindow() const
1017 void JsAppImpl::InitAvoidAreas(OHOS::Rosen::Window* window)
1019 CalculateAvoidAreaByType(OHOS::Rosen::WindowType::WINDOW_TYPE_STATUS_BAR,
1020 window->GetSystemBarPropertyByType(OHOS::Rosen::WindowType::WINDOW_TYPE_STATUS_BAR));
1021 CalculateAvoidAreaByType(OHOS::Rosen::WindowType::WINDOW_TYPE_NAVIGATION_INDICATOR,
1022 window->GetSystemBarPropertyByType(OHOS::Rosen::WindowType::WINDOW_TYPE_NAVIGATION_INDICATOR));
1087 OHOS::Rosen::Window* window = GetWindow();
1089 window->UnRegisterSystemBarEnableListener(sptr<OHOS::Rosen::IWindowSystemBarEnableListener>(listener));