/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) { 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);
|
/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) { 32 displaySize.width = Math.floor(screenWidth); 33 displaySize.height = Math.floor(screenWidth / defaultAspectRatio); 36 if (screenWidth / screenHeight > defaultAspectRatio) { 40 displaySize.width = Math.floor(screenWidth); 41 displaySize.height = Math.floor(screenWidth * defaultAspectRatio);
|
/ohos5.0/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; 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 …]
|
/ohos5.0/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() 151 uint32_t screenWidth = screen->GetWidth(); in Query() local 155 screenWidth = screenListener_->ByteCalculate(screenWidth); in Query() 160 attrJson[KEY_SCREEN_WIDTH] = screenWidth; in Query()
|
/ohos5.0/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.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()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | video_param_test.cpp | 44 uint32_t screenWidth = 1; variable 45 videoParam_->SetScreenWidth(screenWidth); 47 EXPECT_EQ(screenWidth, actual); 185 uint32_t screenWidth = 100; variable 194 videoParam.SetScreenWidth(screenWidth); 216 uint32_t screenWidth = 200; variable 226 j[KEY_SCREEN_WIDTH] = screenWidth;
|
/ohos5.0/foundation/window/window_manager/window_scene/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 …atic_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 - 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 | 28 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);
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | percent_tdd_test.cpp | 393 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);
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/common/src/ |
H A D | screen_manager_adapter.cpp | 39 uint32_t ScreenMgrAdapter::ByteCalculate(std::uint32_t screenWidth) in ByteCalculate() argument 41 if (screenWidth % BYTE_ALIGNMENT == 0) { in ByteCalculate() 42 return screenWidth; in ByteCalculate() 44 …uint32_t alignedInt = (screenWidth + BYTE_ALIGNMENT_CALCULATION) / BYTE_ALIGNMENT * BYTE_ALIGNMENT; in ByteCalculate()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/decision_center/src/ |
H A D | screen_decision_center.cpp | 31 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()
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_independent_display_strategy.cpp | 30 int screenWidth = modeInfo.GetScreenWidth(); in Display() local 39 op->Init(config, screenWidth, screenHeight, duration); in Display()
|
H A D | boot_compatible_display_strategy.cpp | 47 int32_t screenWidth = modeInfo.GetScreenWidth(); in Display() local 50 operator_->Init(config, screenWidth, screenHeight, duration); in Display()
|
H A D | boot_associative_display_strategy.cpp | 53 int screenWidth = modeInfo.GetScreenWidth(); 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 | 541 uint32_t screenWidth = 0; in RelayoutKeyBoard() local 547 if (!GetScreenWidthAndHeightFromClient(sessionProperty, screenWidth, screenHeight)) { in RelayoutKeyBoard() 553 requestRect.width_ = screenWidth; in RelayoutKeyBoard() 652 uint32_t screenWidth = 0; in MoveAndResizeKeyboard() local 656 …bool ret = (isShow) ? GetScreenWidthAndHeightFromServer(sessionProperty, screenWidth, screenHeight… in MoveAndResizeKeyboard() 657 GetScreenWidthAndHeightFromClient(sessionProperty, screenWidth, screenHeight); in MoveAndResizeKeyboard() 662 bool isLandscape = screenWidth > screenHeight ? true : false; in MoveAndResizeKeyboard() 668 static_cast<int32_t>(screenWidth) : rect.width_; in MoveAndResizeKeyboard() 680 …rect.ToString().c_str(), newRequestRect.ToString().c_str(), isLandscape, screenWidth, screenHeight… in MoveAndResizeKeyboard()
|
/ohos5.0/docs/zh-cn/application-dev/dfx/ |
H A D | jscrash-guidelines.md | 248 …public updateGestureValue(screenWidth: number, recentScale: number, sceneContainerSessionList: SCB… 252 this.screenWidth = px2vp(screenWidth); 263 …public updateGestureValue(screenWidth: number, recentScale: number, sceneContainerSessionList: SCB… 269 this.screenWidth = px2vp(screenWidth);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | screen_system_manager.h | 56 void SetWindowInfo(double screenWidth, double density, double dipScale) in SetWindowInfo() argument 58 screenWidth_ = screenWidth; in SetWindowInfo()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | video_param.cpp | 24 void VideoParam::SetScreenWidth(uint32_t screenWidth) in SetScreenWidth() argument 26 screenWidth_ = screenWidth; in SetScreenWidth()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_composer_adapter.cpp | 219 int32_t screenWidth = screenInfo_.width; in DealWithNodeGravity() local 223 std::swap(screenWidth, screenHeight); in DealWithNodeGravity() 225 auto canvas = std::make_unique<Rosen::Drawing::Canvas>(screenWidth, screenHeight); in DealWithNodeGravity() 626 const auto screenWidth = static_cast<int32_t>(screenInfo.width); in SetLayerSize() local 644 … GraphicIRect {screenWidth - rect.x - rect.w, screenHeight - rect.y - rect.h, rect.w, rect.h}); in SetLayerSize() 652 … layer->SetLayerSize(GraphicIRect {screenWidth - rect.y - rect.h, rect.x, rect.h, rect.w}); in SetLayerSize() 682 int32_t screenWidth = static_cast<int32_t>(screenInfo_.width); in LayerCrop() local 684 RectI screenRectI(0, 0, screenWidth, screenHeight); in LayerCrop()
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregionmgr.cpp | 140 uint32_t screenWidth = videoParam->GetScreenWidth(); in GetScreenDumpInfo() local 147 << " \"screenWidth\" : \"" << screenWidth << "\",\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 | 81 private screenWidth: number; 103 this.screenWidth = px2vp(mDisplay.width); 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 | 81 private screenWidth: number = 0; 103 this.screenWidth = px2vp(mDisplay.width); 120 …let defaultSize = DisplayCalculator.calcSurfaceDisplaySize(this.screenWidth, this.screenHeight, th…
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | surface_draw.cpp | 380 int32_t screenWidth = static_cast<int32_t>(screenRect.width_); 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_screen/services/screenservice/sourceservice/dscreenmgr/common/include/ |
H A D | screen_manager_adapter.h | 43 uint32_t ByteCalculate(uint32_t screenWidth);
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/include/ |
H A D | video_param.h | 29 void SetScreenWidth(uint32_t screenWidth);
|