/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/common/ |
H A D | DisplayCalculator.ts | 19 …public static calcSurfaceDisplaySize(screenWidth: number, screenHeight: number, defaultAspectRatio… 26 if (AppStorage.get<string>('deviceType') === Constants.TABLET || screenWidth > screenHeight) { 27 if (screenWidth / screenHeight > defaultAspectRatio) { 28 displaySize.width = Math.floor(screenHeight * defaultAspectRatio); 29 displaySize.height = Math.floor(screenHeight); 35 if (screenWidth / screenHeight > defaultAspectRatio) { 36 displaySize.width = Math.floor(screenHeight / defaultAspectRatio); 37 displaySize.height = Math.floor(screenHeight);
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/common/ |
H A D | DisplayCalculator.ts | 19 …public static calcSurfaceDisplaySize(screenWidth: number, screenHeight: number, defaultAspectRatio… 27 if (AppStorage.get<string>('deviceType') === Constants.TABLET || screenWidth > screenHeight) { 28 if (screenWidth / screenHeight > defaultAspectRatio) { 29 displaySize.width = Math.floor(screenHeight * defaultAspectRatio); 30 displaySize.height = Math.floor(screenHeight); 36 if (screenWidth / screenHeight > defaultAspectRatio) { 37 displaySize.width = Math.floor(screenHeight / defaultAspectRatio); 38 displaySize.height = Math.floor(screenHeight);
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/test/unittest/common/ |
H A D | system_info_tdd_test.cpp | 43 const uint16_t screenHeight = 454; variable 45 EXPECT_TRUE(SystemInfo::GetInstance().GetScreenHeight() == screenHeight); 73 const uint16_t screenHeight = 480; variable 74 ProductAdapter::SetScreenSize(screenWidth, screenHeight); 89 EXPECT_TRUE(height == screenHeight); 145 uint16_t screenHeight = 100; variable 146 ProductAdapter::SetScreenSize(screenWidth, screenHeight); 156 EXPECT_TRUE(height == screenHeight); 164 screenHeight = 0; 165 ProductAdapter::SetScreenSize(screenWidth, screenHeight); [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | screen.cpp | 51 uint16_t screenHeight = baseGfxEngine->GetScreenHeight(); in GetCurrentScreenBitmap() 53 …info.dataSize = screenWidth * screenHeight * DrawUtils::GetByteSizeByColorMode(info.header.colorMo… in GetCurrentScreenBitmap() 59 info.header.height = screenHeight; in GetCurrentScreenBitmap() 63 …screenRect = {0, 0, static_cast<int16_t>(screenWidth - 1), static_cast<int16_t>(screenHeight - 1)}; in GetCurrentScreenBitmap() 76 dstBufferInfo.height = screenHeight; in GetCurrentScreenBitmap()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | video_param_test.cpp | 58 uint32_t screenHeight = 1; variable 59 videoParam_->SetScreenHeight(screenHeight); 61 EXPECT_EQ(screenHeight, actual); 186 uint32_t screenHeight = 100; variable 195 videoParam.SetScreenHeight(screenHeight); 217 uint32_t screenHeight = 200; variable 228 j[KEY_SCREEN_HEIGHT] = screenHeight;
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | screen_cutout_controller.cpp | 78 uint32_t screenHeight = static_cast<uint32_t>(screenProperty.GetBounds().rect_.GetHeight()); in ConvertBoundaryRectsByRotation() local 85 CurrentRotation180(displayBoundaryRects, finalVector, screenWidth, screenHeight); in ConvertBoundaryRectsByRotation() 89 CurrentRotation270(displayBoundaryRects, finalVector, screenHeight); in ConvertBoundaryRectsByRotation() 137 uint32_t screenHeight = static_cast<uint32_t>(screenProperty.GetBounds().rect_.GetHeight()); in CheckBoundaryRects() local 142 …ic_cast<int32_t>(boundaryRect.height_) + boundaryRect.posY_ > static_cast<int32_t>(screenHeight) || in CheckBoundaryRects() 143 boundaryRect.width_ > screenWidth || boundaryRect.height_ > screenHeight || in CheckBoundaryRects() 263 uint32_t screenHeight = static_cast<uint32_t>(displayInfo->GetHeight()); 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 - totalCompressedSize; in CalculateCurvedCompression() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | condition_arbitrator_test.cpp | 27 const uint16_t screenHeight = 480; in SetUp() local 29 ProductAdapter::SetScreenSize(screenWidth, screenHeight); in SetUp() 356 uint16_t screenHeight = 456; variable 357 ProductAdapter::SetScreenSize(screenWidth, screenHeight); 366 screenHeight = 280; 367 ProductAdapter::SetScreenSize(screenWidth, screenHeight); 376 screenHeight = 466; 377 ProductAdapter::SetScreenSize(screenWidth, screenHeight);
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | percent_tdd_test.cpp | 394 const int16_t screenHeight = 454; variable 395 Component *divComponent = BuildViewTree(divEl, screenWidth, screenHeight); 401 VerifyDimension(textEl, K_HEIGHT, (screenHeight / halfNum)); 444 const int16_t screenHeight = 768; variable 445 Component *stackComponent = BuildViewTree(stackEl, screenWidth, screenHeight); 452 VerifyDimension(textEl, K_TOP, ((screenHeight / halfNum) / marginPercentNum)); 495 const int16_t screenHeight = 800; variable 496 Component *containerComponent = BuildViewTree(containerEl, screenWidth, screenHeight); 501 VerifyDimension(textEl, K_MARGIN_TOP, (screenHeight / marginPercent));
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor_drag/ |
H A D | rich_editor_drag_paint_method.cpp | 54 auto screenHeight = SystemProperties::GetDevicePhysicalHeight(); in UpdateContentModifier() local 55 RectF boundsRect(-handleDiameter - screenWdith, -handleDiameter - screenHeight, in UpdateContentModifier() 57 pattern->GetFrameHeight() + (screenHeight + handleDiameter) * CONSTANT_DOUBLE); in UpdateContentModifier()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/decision_center/src/ |
H A D | screen_decision_center.cpp | 32 int32_t screenHeight = static_cast<int32_t>(configParam_.GetScreenHeight()); in IsDirtyRectValid() local 35 damage.y > screenHeight || damage.x % TWO == 1 || damage.w % TWO == 1) { in IsDirtyRectValid() 41 int32_t height = screenHeight - damage.y; in IsDirtyRectValid()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/screenhandler/src/ |
H A D | dscreen_handler.cpp | 92 uint32_t screenHeight = screen->GetHeight(); in OnConnect() local 97 attrJson[KEY_SCREEN_HEIGHT] = screenHeight; in OnConnect() 156 uint32_t screenHeight = screen->GetHeight(); in Query() local 161 attrJson[KEY_SCREEN_HEIGHT] = screenHeight; in Query()
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_independent_display_strategy.cpp | 31 int screenHeight = modeInfo.GetScreenHeight(); in Display() local 39 op->Init(config, screenWidth, screenHeight, duration); in Display()
|
H A D | boot_compatible_display_strategy.cpp | 48 int32_t screenHeight = modeInfo.GetScreenHeight(); in Display() local 50 operator_->Init(config, screenWidth, screenHeight, duration); in Display()
|
H A D | boot_associative_display_strategy.cpp | 54 int screenHeight = modeInfo.GetScreenHeight(); in Display() local 56 operator_->Init(config, screenWidth, screenHeight, duration); in Display()
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | keyboard_session.cpp | 542 uint32_t screenHeight = 0; in RelayoutKeyBoard() local 547 if (!GetScreenWidthAndHeightFromClient(sessionProperty, screenWidth, screenHeight)) { in RelayoutKeyBoard() 556 requestRect.posY_ = static_cast<int32_t>(screenHeight - requestRect.height_); in RelayoutKeyBoard() 653 uint32_t screenHeight = 0; in MoveAndResizeKeyboard() local 656 …ol ret = (isShow) ? GetScreenWidthAndHeightFromServer(sessionProperty, screenWidth, screenHeight) : in MoveAndResizeKeyboard() 657 GetScreenWidthAndHeightFromClient(sessionProperty, screenWidth, screenHeight); in MoveAndResizeKeyboard() 662 bool isLandscape = screenWidth > screenHeight ? true : false; in MoveAndResizeKeyboard() 671 newWinRect.posY_ = static_cast<int32_t>(screenHeight) - rect.height_; in MoveAndResizeKeyboard() 680 …ect.ToString().c_str(), newRequestRect.ToString().c_str(), isLandscape, screenWidth, screenHeight); in MoveAndResizeKeyboard()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | video_param.cpp | 34 void VideoParam::SetScreenHeight(uint32_t screenHeight) in SetScreenHeight() argument 36 screenHeight_ = screenHeight; in SetScreenHeight()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_composer_adapter.cpp | 220 int32_t screenHeight = screenInfo_.height; in DealWithNodeGravity() local 223 std::swap(screenWidth, screenHeight); in DealWithNodeGravity() 225 auto canvas = std::make_unique<Rosen::Drawing::Canvas>(screenWidth, screenHeight); in DealWithNodeGravity() 627 const auto screenHeight = static_cast<int32_t>(screenInfo.height); in SetLayerSize() local 635 … layer->SetLayerSize(GraphicIRect {rect.y, screenHeight - rect.x - rect.w, rect.h, rect.w}); in SetLayerSize() 644 … GraphicIRect {screenWidth - rect.x - rect.w, screenHeight - rect.y - rect.h, rect.w, rect.h}); in SetLayerSize() 683 int32_t screenHeight = static_cast<int32_t>(screenInfo_.height); in LayerCrop() local 684 RectI screenRectI(0, 0, screenWidth, screenHeight); in LayerCrop()
|
H A D | rs_uni_hwc_prevalidate_util.cpp | 291 const auto screenHeight = static_cast<int32_t>(screenInfo.height); in LayerRotate() local 296 info.dstRect = {rect.y, screenHeight - rect.x - rect.w, rect.h, rect.w}; in LayerRotate() 300 … info.dstRect = {screenWidth - rect.x - rect.w, screenHeight - rect.y - rect.h, rect.w, rect.h}; in LayerRotate()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/dialog/PasteboardDialog/entry/src/main/ets/pages/ |
H A D | PasteboardSwitch.ets | 47 @State screenHeight: number = 0; 138 this.screenHeight = px2vp(data[0].height); 139 this.contentHeight = this.screenHeight; 140 … console.log(TAG + 'screenWidth = ' + this.screenWidth + '; screenHeight = ' + this.screenHeight); 353 .height(this.screenHeight)
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregionmgr.cpp | 139 uint32_t screenHeight = videoParam->GetScreenHeight(); in GetScreenDumpInfo() local 148 << " \"screenHeight\" : \"" << screenHeight << "\"\n" in GetScreenDumpInfo()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/pages/ |
H A D | tableIndex.ets | 80 private screenHeight: number; 104 this.screenHeight = px2vp(mDisplay.height); 114 …let defaultSize = DisplayCalculator.calcSurfaceDisplaySize(this.screenWidth, this.screenHeight, th…
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/pages/ |
H A D | Index.ets | 80 private screenHeight: number = 0; 104 this.screenHeight = px2vp(mDisplay.height); 120 …let defaultSize = DisplayCalculator.calcSurfaceDisplaySize(this.screenWidth, this.screenHeight, th…
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | surface_draw.cpp | 379 int32_t screenHeight = static_cast<int32_t>(screenRect.height_); in DrawMasking() local 388 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, screenWidth, screenHeight); in DrawMasking() 396 fullbitmap.Build(screenWidth, screenHeight, fullBitmapFormat); in DrawMasking() 408 uint32_t addrSize = static_cast<uint32_t>(screenWidth * screenHeight * IMAGE_BYTES_STRIDE); in DrawMasking()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/application/entry/src/main/ets/pages/ |
H A D | ContinueSwitch.ets | 51 @State screenHeight: number = 0; 201 this.screenHeight = px2vp(data[0].height); 202 this.contentHeight = this.screenHeight; 203 logger.info(`${TAG} screenWidth = ${this.screenWidth}; screenHeight = ${this.screenHeight}`); 434 .height(this.screenHeight)
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/include/ |
H A D | video_param.h | 31 void SetScreenHeight(uint32_t screenHeight);
|