/foundation/arkui/ace_engine_lite/frameworks/src/core/base/test/unittest/common/ |
H A D | system_info_tdd_test.cpp | 44 const uint16_t screenWidth = 454; in HWTEST_F() local 46 EXPECT_TRUE(SystemInfo::GetInstance().GetScreenWidth() == screenWidth); in HWTEST_F() 72 const uint16_t screenWidth = 960; in HWTEST_F() local 74 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in HWTEST_F() 82 EXPECT_TRUE(width == screenWidth); in HWTEST_F() 144 uint16_t screenWidth = 0; in HWTEST_F() local 146 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in HWTEST_F() 154 EXPECT_TRUE(width == screenWidth); in HWTEST_F() 163 screenWidth = 100; in HWTEST_F() 165 ProductAdapter::SetScreenSize(screenWidth, screenHeigh in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_screen/screenhandler/src/ |
H A D | dscreen_handler.cpp | 64 uint32_t ScreenListener::ByteCalculate(std::uint32_t screenWidth) in ByteCalculate() argument 66 if (screenWidth % BYTE_ALIGNMENT == 0) { in ByteCalculate() 67 return screenWidth; in ByteCalculate() 69 uint32_t alignedInt = (screenWidth + BYTE_ALIGNMENT_CALCULATION) / BYTE_ALIGNMENT * BYTE_ALIGNMENT; in ByteCalculate() 90 uint32_t screenWidth = screen->GetWidth(); in OnConnect() local 91 screenWidth = ByteCalculate(screenWidth); in OnConnect() 96 attrJson[KEY_SCREEN_WIDTH] = screenWidth; in OnConnect() 158 uint32_t screenWidth = screen->GetWidth(); in RealQuery() local 162 screenWidth in RealQuery() [all...] |
/foundation/arkui/ui_lite/frameworks/common/ |
H A D | screen.cpp | 50 uint16_t screenWidth = baseGfxEngine->GetFBBufferInfo()->width; in GetCurrentScreenBitmap() 53 info.dataSize = screenWidth * screenHeight * DrawUtils::GetByteSizeByColorMode(info.header.colorMode); in GetCurrentScreenBitmap() 58 info.header.width = screenWidth; in GetCurrentScreenBitmap() 63 Rect screenRect = {0, 0, static_cast<int16_t>(screenWidth - 1), static_cast<int16_t>(screenHeight - 1)}; in GetCurrentScreenBitmap() 74 dstBufferInfo.stride = screenWidth * 4; // 4: bpp in GetCurrentScreenBitmap() 75 dstBufferInfo.width = screenWidth; in GetCurrentScreenBitmap()
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/ |
H A D | test_RSBackground_WaterRipple.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 62 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | test_RSBackground_GreyCoef.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | test_RSBackground_Filter.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 64 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 101 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 123 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 145 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 188 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 233 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 259 auto sizeX = screenWidth / columnCoun in GRAPHIC_TEST() [all...] |
H A D | test_Geometry_Transform_Test.cpp | 39 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 46 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 54 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | test_Appearance_PixelStretch.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::AppearanceTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 64 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 90 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 119 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 143 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | test_RSBackground_Image.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 63 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 85 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 109 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 145 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 181 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 227 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | fg_dynamicdimdegree_test.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | fg_lightupeffect_test.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | geom_cameradistance_test.cpp | 25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | test_RSBackground_BeginBlender.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 41 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST() 94 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | test_RSBackground_UseEffect.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::BackgroundTest01 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 53 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
H A D | fg_dynamiclightup_test.cpp | 26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest 33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | geom_scale_test.cpp | 25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | fg_fgcolor_test.cpp | 25 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest 32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | geom_cornerradius_test.cpp | 27 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 34 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | geom_translation_test.cpp | 25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
H A D | geom_persp_test.cpp | 25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest 32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
|
/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | video_param.cpp | 25 void VideoParam::SetScreenWidth(uint32_t screenWidth) in SetScreenWidth() argument 27 screenWidth_ = screenWidth; in SetScreenWidth() 129 const uint32_t screenWidth = j[KEY_SCREEN_WIDTH].get<uint32_t>(); in from_json() local 134 if ((screenWidth > DSCREEN_MAX_SCREEN_DATA_WIDTH) || (screenHeight > DSCREEN_MAX_SCREEN_DATA_HEIGHT)) { in from_json() 144 videoParam.screenWidth_ = screenWidth; in from_json()
|
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | video_param_test.cpp | 44 uint32_t screenWidth = 1; in HWTEST_F() local 45 videoParam_->SetScreenWidth(screenWidth); in HWTEST_F() 47 EXPECT_EQ(screenWidth, actual); in HWTEST_F() 185 uint32_t screenWidth = 100; in HWTEST_F() local 194 videoParam.SetScreenWidth(screenWidth); in HWTEST_F() 216 uint32_t screenWidth = 200; in HWTEST_F() local 226 j[KEY_SCREEN_WIDTH] = screenWidth; in HWTEST_F()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | condition_arbitrator_test.cpp | 28 const uint16_t screenWidth = 960; in SetUp() local 29 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in SetUp() 355 uint16_t screenWidth = 280; in HWTEST_F() local 357 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in HWTEST_F() 365 screenWidth = 456; in HWTEST_F() 367 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in HWTEST_F() 375 screenWidth = 300; in HWTEST_F() 377 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in HWTEST_F()
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/content_display/ |
H A D | content_effectnode_test.cpp | 28 const int screenWidth = 1260; member in OHOS::Rosen::ContentEffectNodeTest 35 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight }); 55 auto sizeX = screenWidth / columnCount; in GRAPHIC_TEST()
|
/foundation/window/window_manager/window_scene/screen_session_manager/src/ |
H A D | screen_cutout_controller.cpp | 77 uint32_t screenWidth = static_cast<uint32_t>(screenProperty.GetBounds().rect_.GetWidth()); in ConvertBoundaryRectsByRotation() local 81 CurrentRotation90(displayBoundaryRects, finalVector, screenWidth); in ConvertBoundaryRectsByRotation() 85 CurrentRotation180(displayBoundaryRects, finalVector, screenWidth, screenHeight); in ConvertBoundaryRectsByRotation() 136 uint32_t screenWidth = static_cast<uint32_t>(screenProperty.GetBounds().rect_.GetWidth()); in CheckBoundaryRects() local 141 static_cast<int32_t>(boundaryRect.width_) + boundaryRect.posX_ > static_cast<int32_t>(screenWidth) || in CheckBoundaryRects() 143 boundaryRect.width_ > screenWidth || boundaryRect.height_ > screenHeight || in CheckBoundaryRects() 262 uint32_t screenWidth = static_cast<uint32_t>(displayInfo->GetWidth()); in CalculateCurvedCompression() local 265 if (realWidth >= screenHeight / QUARTER_SCREEN || realWidth >= screenWidth / QUARTER_SCREEN) { in CalculateCurvedCompression() 272 bool isLandscape = screenHeight < screenWidth ? true : false; in CalculateCurvedCompression() 275 isLandscape ? screenHeight - totalCompressedSize : screenWidth in CalculateCurvedCompression() [all...] |