Home
last modified time | relevance | path

Searched refs:defaultDisplayInfo (Results 1 - 8 of 8) sorted by relevance

/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_service_inner.cpp32 auto defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo(); in GetDefaultDisplayId() local
33 if (defaultDisplayInfo == nullptr) { in GetDefaultDisplayId()
34 WLOGFE("GetDefaultDisplayId, defaultDisplayInfo is nullptr."); in GetDefaultDisplayId()
37 return defaultDisplayInfo->GetDisplayId(); in GetDefaultDisplayId()
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()
/foundation/window/window_manager/dmserver/test/unittest/
H A Dscreen_rotation_controller_test.cpp319 auto defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo(); in HWTEST_F() local
320 ASSERT_NE(nullptr, defaultDisplayInfo); in HWTEST_F()
329 ASSERT_EQ(displayRotationTarget, defaultDisplayInfo->GetRotation()); in HWTEST_F()
336 defaultDisplayInfo = DisplayManagerService::GetInstance().GetDefaultDisplayInfo(); in HWTEST_F()
337 ASSERT_NE(nullptr, defaultDisplayInfo); in HWTEST_F()
339 ASSERT_EQ(displayRotationTarget, defaultDisplayInfo->GetRotation()); in HWTEST_F()
/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_layout_policy_test.cpp514 auto defaultDisplayInfo = displayGroupInfo_.displayInfosMap_.at(0); in HWTEST_F() local
515 ASSERT_EQ(defaultDisplayInfo->GetDisplayId(), defaultDisplayInfo_->GetDisplayId()); in HWTEST_F()
516 auto displayId = defaultDisplayInfo->GetDisplayId(); in HWTEST_F()
517 Rect baseRect = { defaultDisplayInfo->GetOffsetX(), defaultDisplayInfo->GetOffsetY(), in HWTEST_F()
518 defaultDisplayInfo->GetWidth(), defaultDisplayInfo->GetHeight() }; in HWTEST_F()
/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()
433 WLOGFE("defaultDisplayInfo is null"); 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()
835 WLOGI("Set defaultDisplayInfo"); in SetDefaultDisplayInfo()
/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_scene_session_impl_test4.cpp1531 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in HWTEST_F() local
1532 if (defaultDisplayInfo != nullptr) { in HWTEST_F()
1533 isLandscape = defaultDisplayInfo->GetWidth() > defaultDisplayInfo->GetHeight(); in HWTEST_F()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_session.cpp895 TLOGI(WmsLogTag::WMS_KEYBOARD, "sessionProperty or screenSession is nullptr, use defaultDisplayInfo"); in GetScreenWidthAndHeightFromServer()
896 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in GetScreenWidthAndHeightFromServer() local
897 if (defaultDisplayInfo != nullptr) { in GetScreenWidthAndHeightFromServer()
898 screenWidth = static_cast<uint32_t>(defaultDisplayInfo->GetWidth()); in GetScreenWidthAndHeightFromServer()
899 screenHeight = static_cast<uint32_t>(defaultDisplayInfo->GetHeight()); in GetScreenWidthAndHeightFromServer()
901 TLOGE(WmsLogTag::WMS_KEYBOARD, "defaultDisplayInfo is null, get screenWidthAndHeight failed"); in GetScreenWidthAndHeightFromServer()
919 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in GetScreenWidthAndHeightFromClient() local
920 if (defaultDisplayInfo != nullptr) { in GetScreenWidthAndHeightFromClient()
921 screenWidth = static_cast<uint32_t>(defaultDisplayInfo->GetWidth()); in GetScreenWidthAndHeightFromClient()
922 screenHeight = static_cast<uint32_t>(defaultDisplayInfo in GetScreenWidthAndHeightFromClient()
[all...]
/foundation/window/window_manager/wm/src/
H A Dwindow_scene_session_impl.cpp4054 auto defaultDisplayInfo = DisplayManager::GetInstance().GetDefaultDisplay(); in MoveAndResizeKeyboard() local
4055 if (defaultDisplayInfo != nullptr) { in MoveAndResizeKeyboard()
4056 displayWidth = defaultDisplayInfo->GetWidth(); in MoveAndResizeKeyboard()
4057 displayHeight = defaultDisplayInfo->GetHeight(); in MoveAndResizeKeyboard()

Completed in 27 milliseconds