/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | radio_switch_tdd_test.cpp | 45 if (radio->GetWidth() != width) { in WidthRadioValueTest001() 62 if (radio->GetWidth() != defaultLen) { in WidthRadioValueTest001() 78 if (radio->GetWidth() != CHECK_LEN) { in WidthRadioValueTest001() 106 if (radio->GetWidth() != 0) { in WidthRadioValueTest002() 111 EXPECT_FALSE(radio->GetWidth() != 0); in WidthRadioValueTest002() 121 if (radio->GetWidth() != 0) { in WidthRadioValueTest002() 126 EXPECT_FALSE(radio->GetWidth() != 0); in WidthRadioValueTest002() 200 if (toggleButton->GetWidth() != 0) { in WidthSwitchValueTest004() 211 if (toggleButton->GetWidth() == 0) { in WidthSwitchValueTest004() 299 if (radioButton->GetWidth() != 0) { in HeightRadioValueTest006() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/ |
H A D | webp_encoder.cpp | 291 const int width = pixelMap.GetWidth(); in DoEncode() 410 const int32_t width = pixelMap.GetWidth(); in DoTransformMemcpy() 413 const int stride = pixelMap.GetWidth() * componentsNum; in DoTransformMemcpy() 438 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformRGBX() 470 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformRgbA() 502 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformBGRX() 534 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformBGRA() 566 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformBgrA() 598 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformF16To8888() 630 uint32_t dstRowBytes = pixelMap.GetWidth() * componentsNum; in DoTransformF16pTo8888() [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() 104 auto scaledInfo = Drawing::ImageInfo(std::ceil(image->GetWidth() * FLOAT_IMAGE_SCALE), in DrawMotionBlur() 179 (curRect_.GetWidth() - lastRect_.GetWidth()) * motionBlurPara_->scaleAnchor[0]; in CaculateRect() 182 scaleSize[0] = curRect_.GetWidth() / lastRect_.GetWidth(); in CaculateRect() 185 … if (curRect_.GetWidth() < lastRect_.GetWidth() && curRect_.GetHeight() < lastRect_.GetHeight()) { in CaculateRect() 201 scaleAnchorCoord = {motionBlurPara_->scaleAnchor[0] * curRect_.GetWidth() * 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 | 116 jpegWidth = pixelMap->GetWidth(); 156 jpegWidth = pixelMap->GetWidth(); 196 jpegWidth = pixelMap->GetWidth(); 234 jpegWidth = pixelMap->GetWidth(); 272 jpegWidth = pixelMap->GetWidth(); 310 jpegWidth = pixelMap->GetWidth(); 348 jpegWidth = pixelMap->GetWidth(); 386 jpegWidth = pixelMap->GetWidth(); 427 jpegWidth = pixelMap->GetWidth(); 466 jpegWidth = pixelMap->GetWidth(); [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | flex_layout.cpp | 139 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in CalRowCount() 143 pos += child->GetRelativeRect().GetWidth() + right; in CalRowCount() 171 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in GetRowMaxHeight() 179 pos += child->GetRelativeRect().GetWidth() + right; in GetRowMaxHeight() 204 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in GetRowsWidth() 216 pos += child->GetRelativeRect().GetWidth() + right; in GetRowsWidth() 282 GetNoWrapStartPos(GetWidth(), posX, interval); in LayoutHorizontal() 290 … if (((posX + child->GetRelativeRect().GetWidth() + right) > GetWidth()) && (wrap_ == WRAP)) { in LayoutHorizontal() 297 child->SetPosition(GetWidth() - posX - child->GetRelativeRect().GetWidth() - right, in LayoutHorizontal() 430 posX = GetWidth() - child->GetRelativeRect().GetWidth() - right - offset; in GetCrossAxisPosX() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_qrcode/ |
H A D | ui_test_qrcode.cpp | 31 …container_->Resize(Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight() - BACK_BUTT… in SetUp() 62 titleLabel->SetPosition(0, 0, Screen::GetInstance().GetWidth(), TITLE_HEIGHT); in CreateTestCaseGroup() 73 group->Resize(Screen::GetInstance().GetWidth(), 100); // 100 : height in UIKitUIQrcodeTestDisplay001() 88 group->Resize(Screen::GetInstance().GetWidth(), 300); // 300 : height in UIKitUIQrcodeTestDisplay002() 107 group->Resize(Screen::GetInstance().GetWidth(), 450); // 450 : height in UIKitUIQrcodeTestDisplay003() 131 group->Resize(Screen::GetInstance().GetWidth(), 100); // 100 : height in UIKitUIQrcodeTestDisplay004() 151 group->Resize(Screen::GetInstance().GetWidth(), 300); // 300 : height in UIKitUIQrcodeTestDisplay005() 173 group->Resize(Screen::GetInstance().GetWidth(), 300); // 300 : height in UIKitUIQrcodeTestDisplay006() 190 group->Resize(Screen::GetInstance().GetWidth(), 300); // 300 : height in UIKitUIQrcodeTestDisplay007() 207 group->Resize(Screen::GetInstance().GetWidth(), 300); // 300 : height in UIKitUIQrcodeTestDisplay008() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_ui_analog_clock/ |
H A D | ui_test_analog_clock.cpp | 172 group1->SetWidth(Screen::GetInstance().GetWidth()); in UIKitTestLineHandAnalogClock001() 217 button1->SetPosition(curFace->GetWidth() + 58, 48, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons001() 238 button3->SetPosition(curFace->GetWidth() + 58, 148, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons001() 249 button4->SetPosition(curFace->GetWidth() + 58, 198, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons001() 260 button5->SetPosition(curFace->GetWidth() + 58, 248, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons001() 274 group2->SetWidth(Screen::GetInstance().GetWidth()); in UIKitTestImageHandAnalogClock002() 327 button1->SetPosition(curFace->GetWidth() + 58, 48, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons002() 337 button2->SetPosition(curFace->GetWidth() + 58, 98, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons002() 349 button3->SetPosition(curFace->GetWidth() + 58, 148, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons002() 361 button4->SetPosition(curFace->GetWidth() + 58, 198, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons002() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_path_test.cpp | 76 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path1)->GetBounds().GetWidth(), 21.0)); 94 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path2)->GetBounds().GetWidth(), 100.0)); 112 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path3)->GetBounds().GetWidth(), 0.0)); 130 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path4)->GetBounds().GetWidth(), 0.0)); 148 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path5)->GetBounds().GetWidth(), 50.5)); 166 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path6)->GetBounds().GetWidth(), 90.0)); 184 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 50.0)); 227 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 200.0)); 347 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 50.0)); 505 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 0.0)); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 28 int len = rect.GetWidth() - rect.GetWidth() / 5.0f; // set len size in TestDrawStar() 116 path.MoveTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop()); in TestMoveTo() 118 path.LineTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetBottom()); in TestMoveTo() 135 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo() 137 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetBottom())); in TestLineTo() 139 linePoints.emplace_back(Point(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo() 141 linePoints.emplace_back(Point(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetBottom())); in TestLineTo() 218 path2.LineTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetBottom()); in TestQuadTo() 335 for (size_t i = 10; i < rect.GetWidth() / 2.0f; i += 20) { in TestAddCircle() 497 …Rect rect2(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop(), rect.GetRight() - rect.GetWidth… in TestOffset() [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() 83 return (sourceConfig_.GetWidth() != targetConfig.GetWidth()) || in IsConvertible() 141 ImageUnitInfo dstImgInfo = { processedConfig_.GetVideoformat(), processedConfig_.GetWidth(), in ProcessData() 142 processedConfig_.GetHeight(), processedConfig_.GetWidth(), processedConfig_.GetHeight(), in ProcessData() 143 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData() 151 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData() 153 dstBuf->SetInt32("width", processedConfig_.GetWidth()); 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() 58 return (sourceConfig_.GetWidth() != targetConfig.GetWidth()) || in IsConvertible() 95 sourceConfig_.GetWidth(), sourceConfig_.GetHeight(), sourceConfig_.GetVideoformat()); in ProcessData() 108 ImageUnitInfo dstImgInfo = { processedConfig_.GetVideoformat(), processedConfig_.GetWidth(), in ProcessData() 109 processedConfig_.GetHeight(), processedConfig_.GetWidth(), processedConfig_.GetHeight(), in ProcessData() 110 processedConfig_.GetWidth() * processedConfig_.GetHeight(), dstBuf->Size(), dstBuf }; in ProcessData() 118 dstBuf->SetInt32("alignedWidth", processedConfig_.GetWidth()); in ProcessData() 120 dstBuf->SetInt32("width", processedConfig_.GetWidth()); in ProcessData() [all …]
|
/ohos5.0/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
H A D | print_page_size_test.cpp | 52 EXPECT_EQ(expectWidth, printpageSize.GetWidth()); 104 EXPECT_EQ((uint32_t)6, printpageSize.GetWidth()); 162 EXPECT_EQ((uint32_t)6, printpageSize.GetWidth()); 176 EXPECT_EQ(copyPageSize.GetWidth(), printpageSize.GetWidth()); 190 EXPECT_EQ(copyPageSize.GetWidth(), printpageSize.GetWidth());
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_chart/ |
H A D | ui_test_chart_polyline.cpp | 34 …container_->Resize(Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight() - BACK_BUTT… in SetUp() 123 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, lastY_, Screen::GetInstance().GetWidth(), 29); in UIKitChartPolylineTestAddDataSerial001() 154 positionX_ = addDataSerialBtn_->GetX() + addDataSerialBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestAddDataSerial001() 157 positionX_ = deleteDataSerialBtn_->GetX() + deleteDataSerialBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestAddDataSerial001() 163 positionX_ = topPointBtn_->GetX() + topPointBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestAddDataSerial001() 166 positionX_ = bottomPointBtn_->GetX() + bottomPointBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestAddDataSerial001() 182 positionX_ = reverseBtn_->GetX() + reverseBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestSetGradientBottom003() 270 …uiViewGroup->SetPosition(Screen::GetInstance().GetWidth() / 2, 0, Screen::GetInstance().GetWidth()… in UIKitChartPolylineTestAddPoints004() 308 positionX_ = Screen::GetInstance().GetWidth() / 2 + VIEW_DISTANCE_TO_LEFT_SIDE; in UIKitChartPolylineTestAddPoints004() 312 positionX_ = addPointsBtn_->GetX() + addPointsBtn_->GetWidth() + g_blank; in UIKitChartPolylineTestAddPoints004() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/transaction/ |
H A D | rs_uiextension_data_test.cpp | 73 ASSERT_EQ(secData[id][0].uiExtensionRectInfo.relativeCoords.GetWidth(), 74 resultData[id][0].uiExtensionRectInfo.relativeCoords.GetWidth()); 79 ASSERT_EQ(secData[id][0].upperNodes[0].relativeCoords.GetWidth(), 80 resultData[id][0].upperNodes[0].relativeCoords.GetWidth()); 123 ASSERT_EQ(secData[id1][0].uiExtensionRectInfo.relativeCoords.GetWidth(), 124 resultData[id1][0].uiExtensionRectInfo.relativeCoords.GetWidth()); 130 ASSERT_EQ(secData[id2][0].upperNodes[0].relativeCoords.GetWidth(), 131 resultData[id2][0].upperNodes[0].relativeCoords.GetWidth());
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_swipe_view.cpp | 77 while (childrenTail_->GetX() + childrenTail_->GetWidth() <= GetWidth()) { in MoveHeadOrTailChild() 113 int16_t width = GetWidth(); in DragXInner() 116 … } else if (width - (childrenTail_->GetX() + childrenTail_->GetWidth() + distance) > blankSize_) { in DragXInner() 117 distance = width - blankSize_ - childrenTail_->GetX() - childrenTail_->GetWidth(); in DragXInner() 281 xOffset = GetWidth() - (dstView->GetX() + dstView->GetWidthWithMargin()); in SwitchToPage() 283 xOffset = (GetWidth() >> 1) - (dstView->GetX() + (dstView->GetWidthWithMargin() >> 1)); in SwitchToPage() 490 if ((childRect.GetWidth() - childrenHead_->GetWidth() >= GetWidth()) && in IsNeedLoop() 491 (childRect.GetWidth() - childrenTail_->GetWidth() >= GetWidth())) { in IsNeedLoop() 509 childrenHead_->SetX(childrenTail_->GetX() + childrenTail_->GetWidth()); in MoveFirstChildToLast() 524 childrenTail_->SetX(childrenHead_->GetX() - childrenTail_->GetWidth()); in MoveLastChildToFirst() [all …]
|
H A D | ui_view.cpp | 208 int16_t width = GetWidth(); in SetStyle() 221 SetWidth(rect.GetWidth()); in UpdateRectInfo() 227 SetWidth(rect.GetWidth()); in UpdateRectInfo() 811 contentRect.SetWidth(GetWidth()); in GetContentRect() 821 contentRect.SetWidth(GetWidth()); in GetOrigContentRect() 891 if (GetWidth() != width) { in SetWidth() 909 int16_t UIView::GetWidth() in GetWidth() function in OHOS::UIView 1116 …int16_t posX = parent_->GetWidth() / 2 - (rect_.GetWidth() - leftMargin + rightMargin) / 2 + xOffs… in LayoutCenterOfParent() 1139 SetPosition(parent_->GetWidth() - offset - rect_.GetWidth() - rightMargin, GetY()); in LayoutRightOfParent() 1182 … SetPosition(sib->GetX() + sib->rect_.GetWidth() - rect_.GetWidth() - offset + margin, GetY()); in AlignRightToSibling() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_util.cpp | 29 uint32_t newWidth = static_cast<uint32_t>(srcRect.GetWidth()); in SrcRectScaleDown() 32 uint32_t boundsWidth = static_cast<uint32_t>(localBounds.GetWidth()); in SrcRectScaleDown() 46 uint32_t currentWidth = static_cast<uint32_t>(srcRect.GetWidth()); in SrcRectScaleDown() 60 srcRect.GetLeft() + srcRect.GetWidth(), in SrcRectScaleDown() 68 uint32_t srcWidth = static_cast<uint32_t>(srcRect.GetWidth()); in SrcRectScaleFit() 73 uint32_t boundsWidth = static_cast<uint32_t>(localBounds.GetWidth()); in SrcRectScaleFit() 97 …Drawing::Rect(srcRect.GetLeft(), srcRect.GetTop() + halfdh, srcRect.GetLeft() + srcRect.GetWidth(), in SrcRectScaleFit()
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_image/ |
H A D | ui_test_image.cpp | 100 Screen::GetInstance().GetWidth(), TITLE_LABEL_DEFAULT_HEIGHT); in UIKitUIImageTestSetImage001() 130 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage002() 174 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage005() 205 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage006() 226 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage007() 247 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage008() 268 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage009() 289 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage010() 310 label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, g_height, Screen::GetInstance().GetWidth(), in UIKitUIImageTestSetImage011() 528 label->SetPosition(x, y, Screen::GetInstance().GetWidth(), in AddLable() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_view_unit_test.cpp | 291 EXPECT_EQ(view_->GetWidth(), 0); 293 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 328 EXPECT_EQ(view_->GetWidth(), 0); 331 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 404 EXPECT_EQ(view_->GetWidth(), 0); 409 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 428 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 434 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 440 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); 447 EXPECT_EQ(view_->GetWidth(), DEFAULE_WIDTH); [all …]
|
/ohos5.0/foundation/graphic/surface_lite/test/unittest/ |
H A D | graphic_surface_test.cpp | 211 EXPECT_EQ(0, surface->GetWidth()); 218 EXPECT_EQ(0, surface->GetWidth()); 223 EXPECT_EQ(0, surface->GetWidth()); 228 EXPECT_EQ(7680, surface->GetWidth()); 286 EXPECT_EQ(0, surface->GetWidth()); 329 EXPECT_EQ(0, surface->GetWidth()); 381 EXPECT_EQ(0, surface->GetWidth()); 428 EXPECT_EQ(0, surface->GetWidth()); 472 EXPECT_EQ(0, surface->GetWidth()); 524 EXPECT_EQ(0, surface->GetWidth()); [all …]
|
/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() 242 …Point clickPoint = {static_cast<int16_t>(clickView_->GetRect().GetX() + clickView_->GetWidth() / 2… 268 … Point startPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 4), 271 Point endPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 2), 296 … Point startPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 4), 299 Point endPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 2), 318 … Point startPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 4), 321 Point endPoint = {static_cast<int16_t>(dragView_->GetRect().GetX() + dragView_->GetWidth() / 2), [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_opacity/ |
H A D | ui_test_opacity.cpp | 110 group->Resize(Screen::GetInstance().GetWidth(), LABEL_HEIGHT + 50); // 50 : height in UIKitOpacityTestUILabel001() 125 group->Resize(Screen::GetInstance().GetWidth(), LABEL_HEIGHT + 50); // 50 : height in UIKitOpacityTestUILabel002() 141 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT); in UIKitOpacityTestUIButton001() 173 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT + 50); // 50 : height in UIKitOpacityTestUIButton002() 199 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT); in UIKitOpacityTestUILabelButton001() 229 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT + 50); // 50 : height in UIKitOpacityTestUIArcLabel001() 256 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT + 50); // 50 : height in UIKitOpacityTestUIImageView001() 283 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT + 50); // 50: height in UIKitOpacityTestUIImageAnimator001() 308 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT + 50); // 50 : height in UIKitOpacityTestUIView001() 417 group->Resize(Screen::GetInstance().GetWidth(), BUTTON_HEIGHT << 1); in UIKitOpacityTestUIScrollView001() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_anti_aliasing/ |
H A D | ui_test_anti_aliasing.cpp | 28 …container_->Resize(Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight() - BACK_BUTT… in SetUp() 50 group->Resize(Screen::GetInstance().GetWidth(), 200); // 200: group height in CreateTestCaseGroup() 58 …label->SetPosition(TEXT_DISTANCE_TO_LEFT_SIDE, 0, Screen::GetInstance().GetWidth() / 2, TITLE_LABE… in CreateTitleLabel() 71 group->Resize(Screen::GetInstance().GetWidth() / 2, 110); in UIKitAntiAliasingTestRect001() 106 group->Resize(Screen::GetInstance().GetWidth() / 2, 180); in UIKitAntiAliasingTestCircle001() 142 …group->Resize(Screen::GetInstance().GetWidth() / 2, 250); // 2: half of screen width; // 250: y-co… in UIKitAntiAliasingTestLine001()
|
/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() 272 Point clickPoint = {(int16_t)(clickView_->GetRect().GetX() + clickView_->GetWidth() / 2), 285 Point clickPoint2 = {(int16_t)(unTouchView_->GetRect().GetX() + unTouchView_->GetWidth() / 2), 308 Point clickPoint = {(int16_t)(clickView_->GetRect().GetX() + clickView_->GetWidth() / 2), 321 Point clickPoint2 = {(int16_t)(unTouchView_->GetRect().GetX() + unTouchView_->GetWidth() / 2), 340 Point clickPoint = {(int16_t)(clickView_->GetRect().GetX() + clickView_->GetWidth() / 2), 369 …Point longPressPoint = {(int16_t)(longPressView_->GetRect().GetX() + longPressView_->GetWidth() / … 399 Point dragCurPoint = {(int16_t)(dragView_->GetRect().GetX() + dragView_->GetWidth() / 2), 402 Point dragLastPoint = {(int16_t)(dragView_->GetRect().GetX() + dragView_->GetWidth() / 3),
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_layout/ |
H A D | ui_test_advanced_layout.cpp | 70 …container_->Resize(Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight() - BACK_BUTT… in SetUp() 92 uiViewGroup->SetPosition(0, 0, Screen::GetInstance().GetWidth(), 420); // 420: height in UIKitLayoutTestFlexLayout001() 103 Screen::GetInstance().GetWidth() - VIEW_DISTANCE_TO_LEFT_SIDE, in UIKitLayoutTestFlexLayout001() 112 …fTarget_->SetPosition(0, 0, Screen::GetInstance().GetWidth() - VIEW_DISTANCE_TO_LEFT_SIDE, 100); /… in UIKitLayoutTestFlexLayout001() 117 … flexController_->SetPosition(0, positionY_, Screen::GetInstance().GetWidth(), 250); // 250: height in UIKitLayoutTestFlexLayout001() 156 … uiViewGroup->SetPosition(0, positionY_, Screen::GetInstance().GetWidth(), 370); // 370: height in UIKitLayoutTestGridLayout001() 167 Screen::GetInstance().GetWidth() - VIEW_DISTANCE_TO_LEFT_SIDE, in UIKitLayoutTestGridLayout001() 176 …gTarget_->SetPosition(0, 0, Screen::GetInstance().GetWidth() - VIEW_DISTANCE_TO_LEFT_SIDE, 100); /… in UIKitLayoutTestGridLayout001() 178 …gridController_->SetPosition(0, 160, Screen::GetInstance().GetWidth(), 150); // 160: y-coordinate;… in UIKitLayoutTestGridLayout001()
|