Home
last modified time | relevance | path

Searched refs:defaultDisplayInfo (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_service_inner.cpp32 auto defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo(); in WM_IMPLEMENT_SINGLE_INSTANCE() local
33 if (defaultDisplayInfo == nullptr) { in WM_IMPLEMENT_SINGLE_INSTANCE()
37 return defaultDisplayInfo->GetDisplayId(); in WM_IMPLEMENT_SINGLE_INSTANCE()
H A Dscreen_rotation_controller.cpp109 …sptr<DisplayInfo> defaultDisplayInfo = DisplayManagerServiceInner::GetInstance().GetDefaultDisplay… in GetCurrentDisplayRotation() local
110 if (defaultDisplayInfo == nullptr) { in GetCurrentDisplayRotation()
115 return defaultDisplayInfo->GetRotation(); in GetCurrentDisplayRotation()
/ohos5.0/foundation/window/window_manager/dmserver/test/unittest/
H A Dscreen_rotation_controller_test.cpp319 auto defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo(); variable
320 ASSERT_NE(nullptr, defaultDisplayInfo);
329 ASSERT_EQ(displayRotationTarget, defaultDisplayInfo->GetRotation());
336 defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo();
337 ASSERT_NE(nullptr, defaultDisplayInfo);
339 ASSERT_EQ(displayRotationTarget, defaultDisplayInfo->GetRotation());
/ohos5.0/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_layout_policy_test.cpp514 auto defaultDisplayInfo = displayGroupInfo_.displayInfosMap_.at(0); variable
515 ASSERT_EQ(defaultDisplayInfo->GetDisplayId(), defaultDisplayInfo_->GetDisplayId());
516 auto displayId = defaultDisplayInfo->GetDisplayId();
517 Rect baseRect = { defaultDisplayInfo->GetOffsetX(), defaultDisplayInfo->GetOffsetY(),
518 defaultDisplayInfo->GetWidth(), defaultDisplayInfo->GetHeight() };
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_controller.cpp431 sptr<DisplayInfo> defaultDisplayInfo = DisplayGroupInfo::GetInstance().GetDefaultDisplayInfo(); in RelayoutKeyboard() local
432 if (defaultDisplayInfo == nullptr) { in RelayoutKeyboard()
440 requestRect.width_ = static_cast<uint32_t>(defaultDisplayInfo->GetWidth()); in RelayoutKeyboard()
442 … static_cast<uint32_t>(defaultDisplayInfo->GetHeight()) * percent / 100u; // 100: for calc percent. in RelayoutKeyboard()
446 requestRect.posY_ = defaultDisplayInfo->GetHeight() - in RelayoutKeyboard()
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_session.cpp1161 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in GetScreenWidthAndHeightFromServer() local
1162 if (defaultDisplayInfo != nullptr) { in GetScreenWidthAndHeightFromServer()
1163 screenWidth = static_cast<uint32_t>(defaultDisplayInfo->GetWidth()); in GetScreenWidthAndHeightFromServer()
1164 screenHeight = static_cast<uint32_t>(defaultDisplayInfo->GetHeight()); in GetScreenWidthAndHeightFromServer()
1184 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in GetScreenWidthAndHeightFromClient() local
1185 if (defaultDisplayInfo != nullptr) { in GetScreenWidthAndHeightFromClient()
1186 screenWidth = static_cast<uint32_t>(defaultDisplayInfo->GetWidth()); in GetScreenWidthAndHeightFromClient()
1187 screenHeight = static_cast<uint32_t>(defaultDisplayInfo->GetHeight()); in GetScreenWidthAndHeightFromClient()
/ohos5.0/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp4210 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in MoveAndResizeKeyboard() local
4211 if (defaultDisplayInfo != nullptr) { in MoveAndResizeKeyboard()
4212 displayWidth = defaultDisplayInfo->GetWidth(); in MoveAndResizeKeyboard()
4213 displayHeight = defaultDisplayInfo->GetHeight(); in MoveAndResizeKeyboard()