Searched refs:defaultDisplay (Results 1 – 3 of 3) sorted by relevance
171 auto defaultDisplay = DisplayManager::GetInstance().GetDefaultDisplay(); in EnableSensorIllumination() local172 IF_FALSE_LOGE_AND_RETURN_VAL(defaultDisplay != nullptr, ResultCode::GENERAL_ERROR); in EnableSensorIllumination()174 int32_t width = defaultDisplay->GetWidth(); in EnableSensorIllumination()175 int32_t height = defaultDisplay->GetHeight(); in EnableSensorIllumination()188 bool convertRetX = convertThousandthToPx(centerX, defaultDisplay->GetWidth(), centerXInPx); in EnableSensorIllumination()191 bool convertRetY = convertThousandthToPx(centerY, defaultDisplay->GetHeight(), centerYInPx); in EnableSensorIllumination()205 defaultDisplayId_ = defaultDisplay->GetId(); in EnableSensorIllumination()
117 auto defaultDisplay = Rosen::DisplayManager::GetInstance().GetDefaultDisplay(); in Resize() local118 if (defaultDisplay == nullptr) { in Resize()126 if (static_cast<int32_t>(width) > defaultDisplay->GetWidth() || in Resize()127 static_cast<float>(height) > defaultDisplay->GetHeight() * SCREEN_RATIO) { in Resize()130 defaultDisplay->GetWidth(), defaultDisplay->GetHeight(), width, height); in Resize()
210 auto defaultDisplay = Rosen::DisplayManager::GetInstance().GetDefaultDisplay(); in ImcPanelListeningTestPrepare() local211 ASSERT_TRUE(defaultDisplay != nullptr); in ImcPanelListeningTestPrepare()212 windowWidth_ = defaultDisplay->GetWidth() - 1; in ImcPanelListeningTestPrepare()292 auto defaultDisplay = Rosen::DisplayManager::GetInstance().GetDefaultDisplay(); variable293 EXPECT_TRUE(defaultDisplay != nullptr);294 int32_t width = defaultDisplay->GetWidth();295 int32_t height = defaultDisplay->GetHeight();