Home
last modified time | relevance | path

Searched refs:screenWidth (Results 1 – 25 of 35) sorted by relevance

12

/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/common/
DDisplayCalculator.ts19 …public static calcSurfaceDisplaySize(screenWidth: number, screenHeight: number, defaultAspectRatio…
26 if (AppStorage.Get<string>('deviceType') === Constants.TABLET || screenWidth > screenHeight) {
27 if (screenWidth / screenHeight > defaultAspectRatio) {
31 displaySize.width = Math.floor(screenWidth);
32 displaySize.height = Math.floor(screenWidth / defaultAspectRatio);
35 if (screenWidth / screenHeight > defaultAspectRatio) {
39 displaySize.width = Math.floor(screenWidth);
40 displaySize.height = Math.floor(screenWidth * defaultAspectRatio);
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/test/unittest/common/
Dsystem_info_tdd_test.cpp44 const uint16_t screenWidth = 454; variable
46 EXPECT_TRUE(SystemInfo::GetInstance().GetScreenWidth() == screenWidth);
72 const uint16_t screenWidth = 960; variable
74 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
82 EXPECT_TRUE(width == screenWidth);
144 uint16_t screenWidth = 0; variable
146 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
154 EXPECT_TRUE(width == screenWidth);
163 screenWidth = 100;
165 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
[all …]
/foundation/arkui/ui_lite/frameworks/common/
Dscreen.cpp50 uint16_t screenWidth = baseGfxEngine->GetFBBufferInfo()->width; in GetCurrentScreenBitmap()
53 …info.dataSize = screenWidth * screenHeight * DrawUtils::GetByteSizeByColorMode(info.header.colorMo… 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 … in GetCurrentScreenBitmap()
74 dstBufferInfo.stride = screenWidth * 4; // 4: bpp in GetCurrentScreenBitmap()
75 dstBufferInfo.width = screenWidth; in GetCurrentScreenBitmap()
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/
Dvideo_param_test.cpp45 uint32_t screenWidth = 1; variable
46 videoParam_->SetScreenWidth(screenWidth);
48 EXPECT_EQ(screenWidth, actual);
144 uint32_t screenWidth = 100; variable
153 videoParam.SetScreenWidth(screenWidth);
176 uint32_t screenWidth = 100; variable
185 videoParam.SetScreenWidth(screenWidth);
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/
Dcondition_arbitrator_test.cpp28 const uint16_t screenWidth = 960; in SetUp() local
29 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in SetUp()
355 uint16_t screenWidth = 280; variable
357 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
365 screenWidth = 456;
367 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
375 screenWidth = 300;
377 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
Dstylemgr_media_query_tdd_test.cpp763 const uint16_t screenWidth = 480; variable
765 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/
Dmain.cpp47 int screenWidth = modeinfo.GetScreenWidth(); in main() local
51 bootAnimation.Run(defaultId, screenWidth, screenHeight); in main()
Dboot_animation.cpp144 void BootAnimation::Run(Rosen::ScreenId id, int screenWidth, int screenHeight) in Run() argument
151 mainHandler_->PostTask(std::bind(&BootAnimation::Init, this, id, screenWidth, screenHeight)); in Run()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
Dpercent_tdd_test.cpp393 const int16_t screenWidth = 454; variable
395 Component *divComponent = BuildViewTree(divEl, screenWidth, screenHeight);
399 VerifyDimension(divEl, K_WIDTH, screenWidth);
443 const int16_t screenWidth = 1024; variable
445 Component *stackComponent = BuildViewTree(stackEl, screenWidth, screenHeight);
451 VerifyDimension(stackEl, K_WIDTH, (screenWidth / halfNum));
494 const int16_t screenWidth = 600; variable
496 Component *containerComponent = BuildViewTree(containerEl, screenWidth, screenHeight);
/foundation/distributedhardware/distributed_screen/services/common/decision_center/src/
Dscreen_decision_center.cpp31 int32_t screenWidth = static_cast<int32_t>(configParam_.GetScreenWidth()); in IsDirtyRectValid() local
34 if (damage.x < 0 || damage.x > screenWidth || damage.y < 0 || in IsDirtyRectValid()
40 int32_t width = screenWidth - damage.x; in IsDirtyRectValid()
/foundation/distributedhardware/distributed_screen/screenhandler/src/
Ddscreen_handler.cpp79 uint32_t screenWidth = screen->GetWidth(); in OnConnect() local
84 attrJson[KEY_SCREEN_WIDTH] = screenWidth; in OnConnect()
130 uint32_t screenWidth = screen->GetWidth(); in Query() local
135 attrJson[KEY_SCREEN_WIDTH] = screenWidth; in Query()
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
Dscreen_system_manager.h56 void SetWindowInfo(double screenWidth, double density, double dipScale) in SetWindowInfo() argument
58 screenWidth_ = screenWidth; in SetWindowInfo()
/foundation/distributedhardware/distributed_screen/services/common/utils/src/
Dvideo_param.cpp24 void VideoParam::SetScreenWidth(uint32_t screenWidth) in SetScreenWidth() argument
26 screenWidth_ = screenWidth; in SetScreenWidth()
/foundation/window/window_manager/window_scene/session_manager/src/
Dscreen_cutout_controller.cpp235 uint32_t screenWidth = static_cast<uint32_t>(displayInfo->GetWidth()); in CalculateCurvedCompression() local
238 if (realWidth >= screenHeight / QUARTER_SCREEN || realWidth >= screenWidth / QUARTER_SCREEN) { in CalculateCurvedCompression()
245 bool isLandscape = screenHeight < screenWidth ? true : false; in CalculateCurvedCompression()
248 isLandscape ? screenHeight - totalCompressedSize : screenWidth - totalCompressedSize; in CalculateCurvedCompression()
259 … isLandscape ? screenHeight + totalCompressedSize : screenWidth + totalCompressedSize; in CalculateCurvedCompression()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
Drs_composer_adapter.cpp223 int32_t screenWidth = screenInfo_.width; in DealWithNodeGravity() local
227 std::swap(screenWidth, screenHeight); in DealWithNodeGravity()
229 auto canvas = std::make_unique<SkCanvas>(screenWidth, screenHeight); in DealWithNodeGravity()
284 int32_t screenWidth = screenInfo_.width; in DealWithNodeGravity() local
288 std::swap(screenWidth, screenHeight); in DealWithNodeGravity()
292 bitmap.Build(screenWidth, screenHeight, format); in DealWithNodeGravity()
669 const auto screenWidth = static_cast<int32_t>(screenInfo.width); in SetLayerSize() local
687 … GraphicIRect {screenWidth - rect.x - rect.w, screenHeight - rect.y - rect.h, rect.w, rect.h}); in SetLayerSize()
695 … layer->SetLayerSize(GraphicIRect {screenWidth - rect.y - rect.h, rect.x, rect.h, rect.w}); in SetLayerSize()
725 int32_t screenWidth = static_cast<int32_t>(screenInfo_.width); in LayerCrop() local
[all …]
Drs_uni_render_composer_adapter.cpp302 int32_t screenWidth = screenInfo_.width; in DealWithNodeGravity() local
306 std::swap(screenWidth, screenHeight); in DealWithNodeGravity()
309 auto canvas = std::make_unique<SkCanvas>(screenWidth, screenHeight); in DealWithNodeGravity()
337 auto canvas = std::make_unique<Drawing::Canvas>(screenWidth, screenHeight); in DealWithNodeGravity()
497 int32_t screenWidth = static_cast<int32_t>(screenInfo_.width); in LayerCrop() local
499 RectI screenRectI(0, 0, screenWidth, screenHeight); in LayerCrop()
740 const auto screenWidth = static_cast<int32_t>(screenInfo.width); in SetLayerSize() local
758 … GraphicIRect {screenWidth - rect.x - rect.w, screenHeight - rect.y - rect.h, rect.w, rect.h}); in SetLayerSize()
766 … layer->SetLayerSize(GraphicIRect {screenWidth - rect.y - rect.h, rect.x, rect.h, rect.w}); in SetLayerSize()
Drs_surface_capture_task.h90 void DrawWatermarkIfNeed(float screenWidth, float screenHeight);
/foundation/distributedhardware/distributed_screen/services/common/utils/include/
Dvideo_param.h29 void SetScreenWidth(uint32_t screenWidth);
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/pages/
DIndex.ets73 private screenWidth: number;
91 this.screenWidth = px2vp(mDisplay.width);
101 …let defaultSize = DisplayCalculator.calcSurfaceDisplaySize(this.screenWidth, this.screenHeight, th…
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/
Dscreenregionmgr.cpp141 uint32_t screenWidth = videoParam->GetScreenWidth(); in GetScreenDumpInfo() local
147 … " \"screenWidth\" : \"" + std::to_string(screenWidth) + "\",\n" + in GetScreenDumpInfo()
/foundation/graphic/graphic_2d/frameworks/bootanimation/include/
Dboot_animation.h60 void Run(Rosen::ScreenId id, int screenWidth, int screenHeight);
/foundation/window/window_manager/utils/src/
Dsurface_draw.cpp376 int32_t screenWidth = static_cast<int32_t>(screenRect.width_); in DrawMasking() local
384 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, screenWidth, screenHeight); in DrawMasking()
392 fullbitmap.Build(screenWidth, screenHeight, fullBitmapFormat); in DrawMasking()
404 uint32_t addrSize = static_cast<uint32_t>(screenWidth * screenHeight * IMAGE_BYTES_STRIDE); in DrawMasking()
/foundation/distributedhardware/distributed_screen/services/common/imageJpeg/src/
Djpeg_image_processor.cpp150 int32_t screenWidth = static_cast<int32_t>(configParam_.GetScreenWidth()); in DecodeDamageData() local
153 if (item.xPos > screenWidth || item.yPos > screenHeight || in DecodeDamageData()
154 item.width > screenWidth - item.xPos || item.height > screenHeight - item.yPos) { in DecodeDamageData()
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/src/
Dscreenregionmgr.cpp104 uint32_t screenWidth = videoParam->GetScreenWidth(); in GetScreenDumpInfo() local
110 … " \"screenWidth\" : \"" + std::to_string(screenWidth) + "\",\n" + in GetScreenDumpInfo()
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/2.0/src/
Ddscreen_manager.cpp351 uint32_t screenWidth = videoParam->GetScreenWidth(); in GetScreenDumpInfo() local
358 … " \"screenWidth\" : \"" + std::to_string(screenWidth) + "\",\n" + in GetScreenDumpInfo()

12