/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | radio_switch_tdd_test.cpp | 238 if (toggleButton->GetHeight() != height) { in HeightRadioValueTest005() 255 if (toggleButton->GetHeight() != defaultLen) { in HeightRadioValueTest005() 271 if (toggleButton->GetHeight() != CHECK_LEN) { in HeightRadioValueTest005() 336 if (button->GetHeight() != height) { in HeightSwitchValueTest007() 341 EXPECT_TRUE(button->GetHeight() == height); in HeightSwitchValueTest007() 353 if (button->GetHeight() != defaultLen) { in HeightSwitchValueTest007() 369 if (button->GetHeight() != CHECK_LEN) { in HeightSwitchValueTest007() 392 if (button->GetHeight() != 0) { in HeightSwitchValueTest008() 397 EXPECT_EQ(button->GetHeight(), 0); in HeightSwitchValueTest008() 407 if (button->GetHeight() != 0) { in HeightSwitchValueTest008() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_motion_blur_filter.cpp | 48 if (!image || image->GetWidth() == 0 || image->GetHeight() == 0) { in DrawImageRect() 66 Drawing::Rect rect = Drawing::Rect(0.f, 0.f, image->GetWidth(), image->GetHeight()); in DrawImageRect() 105 std::ceil(image->GetHeight() * FLOAT_IMAGE_SCALE), originImageInfo.GetColorType(), in DrawMotionBlur() 181 (curRect_.GetHeight() - lastRect_.GetHeight()) * motionBlurPara_->scaleAnchor[1]; in CaculateRect() 183 scaleSize[1] = curRect_.GetHeight() / lastRect_.GetHeight(); in CaculateRect() 185 … if (curRect_.GetWidth() < lastRect_.GetWidth() && curRect_.GetHeight() < lastRect_.GetHeight()) { in CaculateRect() 202 motionBlurPara_->scaleAnchor[1] * curRect_.GetHeight() * FLOAT_IMAGE_SCALE}; in CaculateRect() 209 …if (rect1.GetWidth() < 1 || rect1.GetHeight() < 1 || rect2.GetWidth() < 1 || rect2.GetHeight() < 1… in RectValid() 223 if (!image || image->GetWidth() == 0 || image->GetHeight() == 0) { in OutputOriginalImage() 229 inputMatrix.PostScale(dst.GetWidth() / image->GetWidth(), dst.GetHeight() / image->GetHeight()); in OutputOriginalImage()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/ |
H A D | image_source_ai_sr_hdr_test.cpp | 117 jpegHeight = pixelMap->GetHeight(); 157 jpegHeight = pixelMap->GetHeight(); 197 jpegHeight = pixelMap->GetHeight(); 235 jpegHeight = pixelMap->GetHeight(); 273 jpegHeight = pixelMap->GetHeight(); 311 jpegHeight = pixelMap->GetHeight(); 349 jpegHeight = pixelMap->GetHeight(); 387 jpegHeight = pixelMap->GetHeight(); 428 jpegHeight = pixelMap->GetHeight(); 467 jpegHeight = pixelMap->GetHeight(); [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | flex_layout.cpp | 242 posY = GetHeight() - child->GetRelativeRect().GetHeight() - bottom - offset; in GetCrossAxisPosY() 251 …posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top + offset; // … in GetCrossAxisPosY() 329 if ((pos + child->GetRelativeRect().GetHeight() + bottom) > GetHeight()) { in CalColumnCount() 333 pos += child->GetRelativeRect().GetHeight() + bottom; in CalColumnCount() 359 if ((pos + child->GetRelativeRect().GetHeight() + bottom) > GetHeight()) { in GetColumnMaxWidth() 367 pos += child->GetRelativeRect().GetHeight() + bottom; in GetColumnMaxWidth() 392 if ((pos + child->GetRelativeRect().GetHeight() + bottom) > GetHeight()) { in GetColumnsHeight() 404 pos += child->GetRelativeRect().GetHeight() + bottom; in GetColumnsHeight() 470 GetNoWrapStartPos(GetHeight(), posY, interval); in LayoutVertical() 478 … if (((posY + child->GetRelativeRect().GetHeight() + bottom) > GetHeight()) && (wrap_ == WRAP)) { in LayoutVertical() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 119 path.MoveTo(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestMoveTo() 120 path.LineTo(rect.GetRight(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestMoveTo() 168 path.MoveTo(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestArcTo() 498 rect.GetBottom() - rect.GetHeight() / 4.0f); in TestOffset() 502 path.Offset(0, rect.GetHeight() / 4.0f); in TestOffset() 521 …ect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop() + (rect.GetHeight() - rect.GetHeight()) / 2.… in TestTransform() 543 const uint32_t radius = rect.GetHeight() / 3.0f; in TestOp() 571 const uint32_t radius = rect.GetHeight() / 3.0f; in TestOp2() 599 const uint32_t radius = rect.GetHeight() / 3.0f; in TestOp3() 627 const uint32_t radius = rect.GetHeight() / 3.0f; in TestOp4() [all …]
|
H A D | pen_test.cpp | 117 Point a(rect.GetLeft(), rect.GetTop() + rect.GetHeight() * 2.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 119 Point b(rect.GetLeft(), rect.GetTop() + rect.GetHeight() * 3.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 122 rect.GetTop() + rect.GetHeight() * 2.5f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 130 canvas.Translate(0, rect.GetHeight() * 3.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 136 canvas.Translate(0, rect.GetHeight() * 3.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 154 Point a(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenCapStyle() 156 Point b(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenCapStyle() 161 Point c(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 2.0f); in TestPenCapStyle() 211 Rect rect1(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f, in TestPenBlendMode() 212 rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetBottom() - rect.GetHeight() / 4.0f); in TestPenBlendMode() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_path_test.cpp | 77 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path1)->GetBounds().GetHeight(), 1.5)); 95 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path2)->GetBounds().GetHeight(), 40.0)); 113 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path3)->GetBounds().GetHeight(), 0.0)); 131 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path4)->GetBounds().GetHeight(), 0.0)); 149 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path5)->GetBounds().GetHeight(), 50.5)); 167 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path6)->GetBounds().GetHeight(), 70.6)); 185 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 40.0)); 228 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 200.0)); 348 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 40.0)); 506 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 0.0)); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | paragraph_manager.cpp | 25 float ParagraphManager::GetHeight() const in GetHeight() function in OHOS::Ace::NG::ParagraphManager 29 res += info.paragraph->GetHeight(); in GetHeight() 283 y += info.paragraph->GetHeight(); in GetPaintRegion() 310 y += info.paragraph->GetHeight(); in GetRectsForRange() 337 y += info.paragraph->GetHeight(); in GetRects() 367 y += info.paragraph->GetHeight(); in GetParagraphsRects() 402 y += info.paragraph->GetHeight(); in GetPlaceholderRects() 419 y += it->paragraph->GetHeight(); in ComputeCursorOffset() 425 y -= it->paragraph->GetHeight(); in ComputeCursorOffset() 456 y += it->paragraph->GetHeight(); in ComputeCursorInfoByClick() [all …]
|
/ohos5.0/foundation/graphic/surface_lite/test/unittest/ |
H A D | graphic_surface_test.cpp | 212 EXPECT_EQ(0, surface->GetHeight()); 219 EXPECT_EQ(0, surface->GetHeight()); 224 EXPECT_EQ(0, surface->GetHeight()); 287 EXPECT_EQ(0, surface->GetHeight()); 330 EXPECT_EQ(0, surface->GetHeight()); 382 EXPECT_EQ(0, surface->GetHeight()); 429 EXPECT_EQ(0, surface->GetHeight()); 430 EXPECT_EQ(0, surface->GetHeight()); 473 EXPECT_EQ(0, surface->GetHeight()); 474 EXPECT_EQ(0, surface->GetHeight()); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/scale_conversion/ |
H A D | scale_convert_process_common.cpp | 42 processedConfig_.SetWidthAndHeight(targetConfig.GetWidth(), targetConfig.GetHeight()); in InitNode() 49 sourceConfig.GetVideoformat(), sourceConfig.GetWidth(), sourceConfig.GetHeight(), in InitNode() 50 targetConfig.GetVideoformat(), targetConfig.GetWidth(), targetConfig.GetHeight()); in InitNode() 69 swsContext_ = sws_getContext(sourceConfig_.GetWidth(), sourceConfig_.GetHeight(), in InitNode() 84 (sourceConfig_.GetHeight() != targetConfig.GetHeight()) || in IsConvertible() 130 sourceConfig_.GetWidth(), sourceConfig_.GetHeight(), sourceConfig_.GetVideoformat()); in ProcessData() 142 processedConfig_.GetHeight(), processedConfig_.GetWidth(), processedConfig_.GetHeight(), in ProcessData() 143 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData() 152 dstBuf->SetInt32("alignedHeight", processedConfig_.GetHeight()); in ProcessData() 154 dstBuf->SetInt32("height", processedConfig_.GetHeight()); in ProcessData() [all …]
|
H A D | scale_convert_process.cpp | 41 processedConfig_.SetWidthAndHeight(targetConfig.GetWidth(), targetConfig.GetHeight()); in InitNode() 48 sourceConfig.GetVideoformat(), sourceConfig.GetWidth(), sourceConfig.GetHeight(), in InitNode() 49 targetConfig.GetVideoformat(), targetConfig.GetWidth(), targetConfig.GetHeight()); in InitNode() 59 (sourceConfig_.GetHeight() != targetConfig.GetHeight()) || in IsConvertible() 95 sourceConfig_.GetWidth(), sourceConfig_.GetHeight(), sourceConfig_.GetVideoformat()); in ProcessData() 109 processedConfig_.GetHeight(), processedConfig_.GetWidth(), processedConfig_.GetHeight(), in ProcessData() 110 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData() 119 dstBuf->SetInt32("alignedHeight", processedConfig_.GetHeight()); in ProcessData() 121 dstBuf->SetInt32("height", processedConfig_.GetHeight()); in ProcessData() 132 … dstBuffSize = static_cast<size_t>(processedConfig_.GetWidth() * processedConfig_.GetHeight() * in CalculateBuffSize() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/ |
H A D | webp_encoder.cpp | 411 const int32_t height = pixelMap.GetHeight(); in DoTransformMemcpy() 434 const ImageInfo srcInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformRGBX() 439 const ImageInfo dstInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformRGBX() 466 const ImageInfo srcInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformRgbA() 471 const ImageInfo dstInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformRgbA() 498 const ImageInfo srcInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformBGRX() 503 const ImageInfo dstInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformBGRX() 530 const ImageInfo srcInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformBGRA() 535 const ImageInfo dstInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformBGRA() 562 const ImageInfo srcInfo = MakeImageInfo(pixelMap.GetWidth(), pixelMap.GetHeight(), in DoTransformBgrA() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_util.cpp | 30 uint32_t newHeight = static_cast<uint32_t>(srcRect.GetHeight()); in SrcRectScaleDown() 33 uint32_t boundsHeight = static_cast<uint32_t>(localBounds.GetHeight()); in SrcRectScaleDown() 47 uint32_t currentHeight = static_cast<uint32_t>(srcRect.GetHeight()); in SrcRectScaleDown() 54 srcRect.GetTop() + srcRect.GetHeight()); in SrcRectScaleDown() 69 uint32_t srcHeight = static_cast<uint32_t>(srcRect.GetHeight()); in SrcRectScaleFit() 74 uint32_t boundsHeight = static_cast<uint32_t>(localBounds.GetHeight()); in SrcRectScaleFit() 94 srcRect.GetTop() + srcRect.GetHeight()); in SrcRectScaleFit()
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_view_unit_test.cpp | 309 EXPECT_EQ(view_->GetHeight(), 0); 311 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 327 EXPECT_EQ(view_->GetHeight(), 0); 330 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 403 EXPECT_EQ(view_->GetHeight(), 0); 408 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 427 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 470 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 477 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); 483 EXPECT_EQ(view_->GetHeight(), DEFAULE_HEIGHT); [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_view.cpp | 209 int16_t height = GetHeight(); in SetStyle() 222 SetHeight(rect.GetHeight()); in UpdateRectInfo() 232 SetHeight(rect.GetHeight()); in UpdateRectInfo() 812 contentRect.SetHeight(GetHeight()); in GetContentRect() 822 contentRect.SetHeight(GetHeight()); in GetOrigContentRect() 917 if (GetHeight() != height) { in SetHeight() 935 int16_t UIView::GetHeight() in GetHeight() function in OHOS::UIView 1118 …int16_t posY = parent_->GetHeight() / 2 - (rect_.GetHeight() - topMargin + bottomMargin) / 2 + yOf… in LayoutCenterOfParent() 1159 SetPosition(GetX(), parent_->GetHeight() - offset - rect_.GetHeight() - bottomMargin); in LayoutBottomOfParent() 1206 … SetPosition(GetX(), sib->GetY() + sib->rect_.GetHeight() - rect_.GetHeight() - offset + margin); in AlignBottomToSibling() [all …]
|
H A D | ui_swipe_view.cpp | 84 while (childrenTail_->GetY() + childrenTail_->GetHeight() <= GetHeight()) { in MoveHeadOrTailChild() 140 int16_t height = GetHeight(); in DragYInner() 143 …} else if (height - (childrenTail_->GetY() + childrenTail_->GetHeight() + distance) > blankSize_) { in DragYInner() 144 distance = height - blankSize_ - childrenTail_->GetY() - childrenTail_->GetHeight(); in DragYInner() 286 yOffset = (GetHeight() >> 1) - (dstView->GetY() + (dstView->GetHeightWithMargin() >> 1)); in SwitchToPage() 495 if ((childRect.GetHeight() - childrenHead_->GetHeight() >= GetHeight()) && in IsNeedLoop() 496 (childRect.GetHeight() - childrenTail_->GetHeight() >= GetHeight())) { in IsNeedLoop() 511 childrenHead_->SetY(childrenTail_->GetY() + childrenTail_->GetHeight()); in MoveFirstChildToLast() 526 childrenTail_->SetY(childrenHead_->GetY() - childrenTail_->GetHeight()); in MoveLastChildToFirst() 535 Rect swipeRect(0, 0, GetRelativeRect().GetWidth() - 1, GetRelativeRect().GetHeight() - 1); in CalculateInvalidate()
|
H A D | ui_scroll_view.cpp | 116 …Rect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetHeight()) { in OnRotateEvent() 156 …Rect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetHeight()) { in SetIsEdge() 218 if (childRect.GetHeight() <= (GetHeight() - (scrollBlankSize_ << 1)) || in DragYInner() 231 int16_t scrollHeight = GetHeight(); in DragYInner() 264 …int16_t totalLen = childrenRect.GetHeight() + 2 * scrollBlankSize_; // 2: two blank space on both … in RefreshScrollBar() 265 int16_t len = GetHeight(); in RefreshScrollBar() 287 int16_t scrollHeight = GetHeight(); in CalculateReboundDistance()
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/dfx/ |
H A D | event_injector_unit_test.cpp | 137 …config.rect.SetRect(0, 0, Screen::GetInstance().GetWidth() - 1, Screen::GetInstance().GetHeight() … in TestApp() 153 … rootView_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight()); in TestApp() 155 layout_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight()); in TestApp() 243 … static_cast<int16_t>(clickView_->GetRect().GetY() + clickView_->GetHeight() / 2)}; 269 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 272 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 297 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 300 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 319 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 322 … static_cast<int16_t>(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/events/ |
H A D | event_bubble_unit_test.cpp | 176 … rootView_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight()); in TestApp() 178 layout_->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight()); in TestApp() 273 (int16_t)(clickView_->GetRect().GetY() + clickView_->GetHeight() / 2)}; 286 (int16_t)(unTouchView_->GetRect().GetY() + unTouchView_->GetHeight() / 2)}; 309 (int16_t)(clickView_->GetRect().GetY() + clickView_->GetHeight() / 2)}; 322 (int16_t)(unTouchView_->GetRect().GetY() + unTouchView_->GetHeight() / 2)}; 341 (int16_t)(clickView_->GetRect().GetY() + clickView_->GetHeight() / 2)}; 370 … (int16_t)(longPressView_->GetRect().GetY() + longPressView_->GetHeight() / 2)}; 400 (int16_t)(dragView_->GetRect().GetY() + dragView_->GetHeight() / 2)}; 403 (int16_t)(dragView_->GetRect().GetY() + dragView_->GetHeight() / 3)};
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_modifier.cpp | 43 …rsDrawCmdList->GetWidth(), rsDrawCmdList->GetHeight(), drawCmdList->GetWidth(), drawCmdList->GetHe… in onDraw() 47 drawCmdSize_.SetHeight(drawCmdList->GetHeight()); in onDraw() 49 rsDrawCmdList->SetHeight(drawCmdList->GetHeight()); in onDraw() 54 dumpInfo.height = drawCmdList->GetHeight(); in onDraw()
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | surface_draw.cpp | 51 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), imagePath)) { in DrawImage() 58 .h = buffer->GetHeight(), in DrawImage() 82 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), pixelMap)) { in DrawImage() 89 .h = buffer->GetHeight(), in DrawImage() 113 if (!DoDraw(addr, buffer->GetWidth(), buffer->GetHeight(), color)) { in DrawColor() 120 .h = buffer->GetHeight(), in DrawColor() 287 .h = buffer->GetHeight(), in DrawImageRect() 322 float yAxis = static_cast<float>(winHeight) / pixelMap->GetHeight(); in DoDrawImageRect() 325 int scaledPixelMapH = pixelMap->GetHeight(); in DoDrawImageRect() 339 pixelMap->GetWidth(), pixelMap->GetHeight(), left, top); in DoDrawImageRect() [all …]
|
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/ |
H A D | screenshot_test.cpp | 67 display->GetHeight(), display->GetRefreshRate()); in SetUpTestCase() 70 defaultScreen_ = {0, 0, display->GetWidth(), display->GetHeight()}; in SetUpTestCase() 71 defaultImage_ = {display->GetWidth(), display->GetHeight()}; in SetUpTestCase() 118 Media::Size screenSize = {screenshot->GetWidth(), screenshot->GetHeight()}; 146 Media::Size screenSize = {screenshot->GetWidth(), screenshot->GetHeight()}; 153 screenSize = {screenshot->GetWidth(), screenshot->GetHeight()}; 159 screenSize = {screenshot->GetWidth(), screenshot->GetHeight()}; 174 Media::Size screenSize = {screenshot->GetWidth(), screenshot->GetHeight()};
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_property_drawable_utils.cpp | 140 const int buffLen = scaledImage->GetWidth() * scaledImage->GetHeight(); in PickColorSyn() 354 imageSnapshot->GetWidth(), imageSnapshot->GetHeight()); in DrawFilter() 421 …imageSnapshot->GetHeight()), Drawing::Rect(0, 0, imageSnapshot->GetWidth(), imageSnapshot->GetHeig… in DrawForegroundFilter() 936 … scaledBounds.GetWidth() / bounds.GetWidth(), scaledBounds.GetHeight() / bounds.GetHeight()); in DrawPixelStretch() 943 pixelStretch->y_ + bounds.GetHeight())); in DrawPixelStretch() 976 path.GetBounds().GetTop() + path.GetBounds().GetHeight() / 2}}; in DrawShadow() 1187 if (w == rect.GetWidth() && h == rect.GetHeight()) { in GetGravityMatrix() 1221 mat.PreTranslate(0, rect.GetHeight() - h); in GetGravityMatrix() 1232 mat.PreScale(rect.GetWidth() / w, rect.GetHeight() / h); in GetGravityMatrix() 1245 (rect.GetHeight() / scale - h) / PARAM_DOUBLE); in GetGravityMatrix() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_filter_cache_manager.cpp | 136 cachedSnapshot_->cachedImage_->GetHeight()); in DrawFilterWithoutSnapshot() 220 …(RSSystemProperties::GetImageGpuResourceCacheEnable(snapshot->GetWidth(), snapshot->GetHeight())) { in TakeSnapshot() 222 snapshot->GetHeight()); in TakeSnapshot() 228 …pshotRegion_ = RectI(srcRect.GetLeft(), srcRect.GetTop(), srcRect.GetWidth(), srcRect.GetHeight()); in TakeSnapshot() 248 … auto offscreenSurface = surface->MakeSurface(offscreenRect.GetWidth(), offscreenRect.GetHeight()); in GenerateFilteredSnapshot() 256 …ing::Rect(0, 0, cachedSnapshot_->cachedRect_.GetWidth(), cachedSnapshot_->cachedRect_.GetHeight()); in GenerateFilteredSnapshot() 257 auto dst = Drawing::Rect(0, 0, offscreenRect.GetWidth(), offscreenRect.GetHeight()); in GenerateFilteredSnapshot() 270 filteredSnapshot->GetHeight())) { in GenerateFilteredSnapshot() 272 filteredSnapshot->GetWidth(), filteredSnapshot->GetHeight()); in GenerateFilteredSnapshot() 406 …ceRect = Drawing::RectI(0, 0, canvas.GetImageInfo().GetWidth(), canvas.GetImageInfo().GetHeight()); in ValidateParams()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | toggle_model_impl.cpp | 45 checkboxComponent->SetHeight(checkBoxTheme->GetHeight() - verticalPadding * 2); in Create() 58 switchComponent->SetHeight(switchTheme->GetHeight() - verticalPadding * 2); in Create() 83 box->SetHeight(checkBoxTheme->GetHeight()); in Create() 90 box->SetHeight(switchTheme->GetHeight()); in Create() 96 box->SetHeight(toggleTheme->GetHeight().Value(), toggleTheme->GetHeight().Unit()); in Create() 195 auto height = checkableComponent->GetHeight(); in SetPadding()
|