Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 - 25 of 85) sorted by relevance

1234

/foundation/arkui/ace_engine_lite/frameworks/src/core/base/test/unittest/common/
H A Dsystem_info_tdd_test.cpp44 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 Ddscreen_handler.cpp64 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 Dscreen.cpp50 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 Dtest_RSBackground_WaterRipple.cpp26 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 Dtest_RSBackground_GreyCoef.cpp26 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 Dtest_RSBackground_Filter.cpp26 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 Dtest_Geometry_Transform_Test.cpp39 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 Dtest_Appearance_PixelStretch.cpp26 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 Dtest_RSBackground_Image.cpp26 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 Dfg_dynamicdimdegree_test.cpp26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest
33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dfg_lightupeffect_test.cpp26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest
33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dgeom_cameradistance_test.cpp25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest
32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dtest_RSBackground_BeginBlender.cpp26 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 Dtest_RSBackground_UseEffect.cpp26 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 Dfg_dynamiclightup_test.cpp26 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest
33 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dgeom_scale_test.cpp25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest
32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dfg_fgcolor_test.cpp25 const int screenWidth = 1260; member in OHOS::Rosen::ForegroundTest
32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dgeom_cornerradius_test.cpp27 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest
34 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dgeom_translation_test.cpp25 const int screenWidth = 1260; member in OHOS::Rosen::GeometryTest
32 SetScreenSurfaceBounds({ 0, 0, screenWidth, screenHeight });
H A Dgeom_persp_test.cpp25 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 Dvideo_param.cpp25 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 Dvideo_param_test.cpp44 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 Dcondition_arbitrator_test.cpp28 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 Dcontent_effectnode_test.cpp28 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 Dscreen_cutout_controller.cpp77 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...]

Completed in 16 milliseconds

1234