/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_input_test.cpp | 90 std::vector<Rect> rects; in HWTEST_F() local 95 rects.emplace_back(Rect{ hotAreaWidth * i, hotAreaHeight * i, hotAreaWidth, hotAreaHeight }); in HWTEST_F() 97 ASSERT_EQ(WMError::WM_OK, window->SetTouchHotAreas(rects)); in HWTEST_F() 99 ASSERT_EQ(rects.size(), requestedTouchHotAreas.size()); in HWTEST_F() 100 for (uint32_t i = 0; i < rects.size(); ++i) { in HWTEST_F() 101 ASSERT_TRUE(rects[i] == requestedTouchHotAreas[i]); in HWTEST_F() 104 rects.clear(); in HWTEST_F() 105 rects.emplace_back(Rect{ 0, 0, hotAreaWidth, hotAreaHeight }); in HWTEST_F() 106 ASSERT_EQ(WMError::WM_OK, window->SetTouchHotAreas(rects)); in HWTEST_F() 108 ASSERT_EQ(rects in HWTEST_F() 138 std::vector<Rect> rects; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
H A D | rs_surface_frame_ohos_vulkan.cpp | 38 std::vector<Drawing::RectI> rects; in SetDamageRegion() local 40 rects.push_back(rect); in SetDamageRegion() 41 surface_->SetDrawingArea(rects); in SetDamageRegion() 45 void RSSurfaceFrameOhosVulkan::SetDamageRegion(const std::vector<RectI>& rects) in SetDamageRegion() argument 53 for (auto &rect : rects) { in SetDamageRegion()
|
H A D | rs_surface_frame_ohos_gl.cpp | 36 void RSSurfaceFrameOhosGl::SetDamageRegion(const std::vector<RectI> &rects) in SetDamageRegion() argument 38 renderContext_->DamageFrame(rects); in SetDamageRegion()
|
H A D | rs_surface_frame_ohos_gl.h | 41 void SetDamageRegion(const std::vector<RectI> &rects) override;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohos_fuzzer/ |
H A D | rssurfaceohos_fuzzer.cpp | 80 std::vector<RectI> rects; in RSSurfaceOhosFuzzTest() local 81 rects.emplace_back(r1); in RSSurfaceOhosFuzzTest() 82 rects.emplace_back(r2); in RSSurfaceOhosFuzzTest() 83 rects.emplace_back(r3); in RSSurfaceOhosFuzzTest() 84 rects.emplace_back(r4); in RSSurfaceOhosFuzzTest() 85 rsSurfaceFrameOhosRaster.SetDamageRegion(rects); in RSSurfaceOhosFuzzTest()
|
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | buffer_converter.cpp | 57 int32_t ConvertYUV420SP(uint8_t *dst, uint8_t *src, AVCodecRect *rects, int32_t capacity) in ConvertYUV420SP() argument 59 AVCodecRect &dstRect = rects[0]; in ConvertYUV420SP() 60 AVCodecRect &srcRect = rects[1]; in ConvertYUV420SP() 61 AVCodecRect &rect = rects[2]; // 2: index in ConvertYUV420SP() 87 int32_t ConvertYUV420P(uint8_t *dst, uint8_t *src, AVCodecRect *rects, int32_t capacity) in ConvertYUV420P() argument 89 AVCodecRect &dstRect = rects[0]; in ConvertYUV420P() 90 AVCodecRect &srcRect = rects[1]; in ConvertYUV420P() 91 AVCodecRect &rect = rects[2]; // 2: index in ConvertYUV420P() 132 int32_t ConverteRGBA8888(uint8_t *dst, uint8_t *src, AVCodecRect *rects, int32_t capacity) in ConverteRGBA8888() argument 134 AVCodecRect &dstRect = rects[ in ConverteRGBA8888() 195 AVCodecRect rects[3] = {usrRect_, hwRect_, rect_}; // 1:dstRect, 2:srcRect, 3:rect ReadFromBuffer() local 219 AVCodecRect rects[3] = {hwRect_, usrRect_, rect_}; // 1:dstRect, 2:srcRect, 3:rect WriteToBuffer() local [all...] |
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | display_info_utils.cpp | 36 std::vector<Rect> rects; in GetDisplayInfo() local 44 rects.insert(rects.end(), rect); in GetDisplayInfo() 54 displayInfo_->SetCurrentFoldCreaseRegion(rects); in GetDisplayInfo()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | paragraph_manager.cpp | 326 std::vector<RectF> rects; in GetRects() local 333 info.paragraph->GetTightRectsForRange(relativeStart, end - info.start, rects); in GetRects() 335 info.paragraph->GetRectsForRange(relativeStart, end - info.start, rects); in GetRects() 338 for (auto&& rect : rects) { in GetRects() 341 res.insert(res.end(), rects.begin(), rects.end()); in GetRects() 358 std::vector<RectF> rects; in GetParagraphsRects() local 361 info.paragraph->GetTightRectsForRange(relativeStart, end - info.start, rects); in GetParagraphsRects() 363 info.paragraph->GetRectsForRange(relativeStart, end - info.start, rects); in GetParagraphsRects() 366 for (auto&& rect : rects) { in GetParagraphsRects() 403 std::vector<RectF> rects; GetPlaceholderRects() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_paint_method.cpp | 134 auto rects = pManager->GetParagraphsRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier() local 135 selectedRects = CalculateSelectedRect(rects, contentRect.Width()); in UpdateOverlayModifier() 162 auto rects = info.first; in CalculateSelectedRect() local 163 TextBase::CalculateSelectedRect(rects, contentWidth, info.second); in CalculateSelectedRect() 164 result.insert(result.end(), rects.begin(), rects.end()); in CalculateSelectedRect()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | window_node.cpp | 178 void WindowNode::SetTouchHotAreas(const std::vector<Rect>& rects) in SetTouchHotAreas() argument 180 touchHotAreas_ = rects; in SetTouchHotAreas() 183 void WindowNode::SetPointerHotAreas(const std::vector<Rect>& rects) in SetPointerHotAreas() argument 185 pointerHotAreas_ = rects; in SetPointerHotAreas() 380 void WindowNode::GetTouchHotAreas(std::vector<Rect>& rects) const in GetTouchHotAreas() 382 rects = touchHotAreas_; in GetTouchHotAreas() 385 void WindowNode::GetPointerHotAreas(std::vector<Rect>& rects) const in GetPointerHotAreas() 387 rects = pointerHotAreas_; in GetPointerHotAreas()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/ |
H A D | rs_dirty_rects_dfx.cpp | 370 std::vector<RectI> rects; in DrawAllSurfaceDirtyRegionForDFX() local 372 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in DrawAllSurfaceDirtyRegionForDFX() 374 DrawDirtyRegionForDFX(rects); in DrawAllSurfaceDirtyRegionForDFX() 417 std::vector<RectI> rects; in DrawTargetSurfaceDirtyRegionForDFX() local 419 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in DrawTargetSurfaceDirtyRegionForDFX() 426 rects.emplace_back(intersectRegion); in DrawTargetSurfaceDirtyRegionForDFX() 428 DrawDirtyRegionForDFX(rects); in DrawTargetSurfaceDirtyRegionForDFX() 447 std::vector<RectI> rects; in DrawTargetSurfaceVisibleRegionForDFX() local 449 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in DrawTargetSurfaceVisibleRegionForDFX() 451 DrawDirtyRegionForDFX(rects); in DrawTargetSurfaceVisibleRegionForDFX() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/backend/ |
H A D | rs_surface_frame_ohos_vulkan_test.cpp | 70 std::vector<OHOS::Rosen::RectI> rects;
in HWTEST_F() local 71 rsSurfaceFrameOhosVulkan->SetDamageRegion(rects);
in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsdirtyregionmanager_fuzzer/ |
H A D | rsdirtyregionmanager_fuzzer.cpp | 78 std::vector<RectI> rects;
in DoSomethingInterestingWithMyAPI() local 79 rects.push_back(myRect);
in DoSomethingInterestingWithMyAPI() 87 rsDirtyRegionManager.UpdateVisitedDirtyRects(rects);
in DoSomethingInterestingWithMyAPI()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | filltypes.cpp | 90 OH_Drawing_Rect* rects = OH_Drawing_RectCreate(x - r, y - r, x + r, y + r); in OnTestFunction() local 95 OH_Drawing_PathAddArc(path, rects, startAngle, sweepAngle); in OnTestFunction() 110 OH_Drawing_RectDestroy(rects); in OnTestFunction()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_base_testone_ng.cpp | 237 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 263 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { -400.0, -400.0, 200.0, 200.0 } } }; in HWTEST_F() 582 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 611 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 640 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 669 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 698 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 727 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 756 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects = { { 0.0, 0.0, 200.0, 200.0 } } }; in HWTEST_F() 785 TestParagraphRect paragraphRect = { .start = 0, .end = 6, .rects in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_field_pattern_testthree.cpp | 197 std::vector<RectF> rects { RectF(0, 0, 20, 20) }; in HWTEST_F() 198 EXPECT_CALL(*paragraph, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 215 std::vector<RectF> rects { RectF(10, 10, 20, 20), RectF(0, 0, 20, 20) }; in HWTEST_F() 216 EXPECT_CALL(*paragraph, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 249 std::vector<RectF> rects { RectF(10, 10, 20, 20), RectF(0, 0, 20, 20) }; in HWTEST_F() 250 EXPECT_CALL(*paragraph, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 275 std::vector<RectF> rects { RectF(10, 10, 20, 20), RectF(0, 0, 20, 20) }; in HWTEST_F() 276 EXPECT_CALL(*paragraph, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/ |
H A D | text_drag_test_ng.cpp | 207 std::vector<RectF> rects; // return null select range in HWTEST_F() local 208 EXPECT_CALL(*paragraph_, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 245 std::vector<RectF> rects { RectF(40, 40, 60, 80) }; in HWTEST_F() 246 EXPECT_CALL(*paragraph_, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 284 std::vector<RectF> rects { RectF(40, 40, 60, 60), RectF(100, 100, 60, 100)}; in HWTEST_F() 285 EXPECT_CALL(*paragraph_, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F() 322 std::vector<RectF> rects { RectF(80, 40, 20, 60) }; in HWTEST_F() 323 EXPECT_CALL(*paragraph_, GetRectsForRange(_, _, _)).WillRepeatedly(SetArgReferee<2>(rects)); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_occlusion_region_test.cpp | 463 Region::Rects rects; in HWTEST_F() local 469 rects.preRects.push_back(Rect { 0, 0, 100, 50 }); in HWTEST_F() 470 rects.preRects.push_back(Rect { 150, 0, 100, 50 }); in HWTEST_F() 471 rects.preRects.push_back(Rect { 150, 0, 250, 50 }); in HWTEST_F() 472 rects.curY = 100; in HWTEST_F() 473 rects.preY = 50; in HWTEST_F() 481 region.UpdateRects(rects, ranges, indexAt, resultRegion); in HWTEST_F() 482 EXPECT_EQ(rects.preRects[0], (Rect { 0, 0, 100, 100 })); in HWTEST_F()
|
/foundation/window/window_manager/wmserver/include/ |
H A D | window_node.h | 87 void SetTouchHotAreas(const std::vector<Rect>& rects); 88 void SetPointerHotAreas(const std::vector<Rect>& rects); 131 void GetTouchHotAreas(std::vector<Rect>& rects) const; 132 void GetPointerHotAreas(std::vector<Rect>& rects) const;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/dfx/ |
H A D | rs_dirty_rects_dfx_test.cpp | 181 std::vector<RectI> rects; in HWTEST_F() local 183 rects.emplace_back(rect.left_, rect.top_, rect.right_ - rect.left_, rect.bottom_ - rect.top_); in HWTEST_F() 185 rsDirtyRectsDfx_->DrawDirtyRegionForDFX(rects); in HWTEST_F() 190 rects = dirtyManager->GetMergedDirtyRegions(); in HWTEST_F() 191 rsDirtyRectsDfx_->DrawDirtyRegionForDFX(rects); in HWTEST_F()
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_occlusion_region_test.cpp | 338 Region::Rects rects; in HWTEST_F() local 339 rects.preRects = { in HWTEST_F() 353 region->UpdateRects(rects, ranges, indexAt, regionRes); in HWTEST_F() 356 ASSERT_EQ(3, rects.preRects.size()); in HWTEST_F() 357 for (uint32_t i = 0; i < rects.preRects.size(); ++i) { in HWTEST_F() 358 ASSERT_EQ(resultPreRectsLeft[i], rects.preRects[i].left_); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_pattern.cpp | 446 std::vector<Rect> rects; in StartEnteringTransitionEffects() 450 rects.emplace_back(rect); in StartEnteringTransitionEffects() 455 rects.emplace_back(parentWindowRect); in StartEnteringTransitionEffects() 456 rects.emplace_back(rect); in StartEnteringTransitionEffects() 459 subWindowMgr->SetHotAreas(rects, popupId, pattern->GetContainerId()); in StartEnteringTransitionEffects() 560 std::vector<Rect> rects; in StartAlphaEnteringAnimation() 564 rects.emplace_back(rect); in StartAlphaEnteringAnimation() 569 rects.emplace_back(parentWindowRect); in StartAlphaEnteringAnimation() 570 rects.emplace_back(rect); in StartAlphaEnteringAnimation() 573 subWindowMgr->SetHotAreas(rects, popupI in StartAlphaEnteringAnimation() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceframeohosgl_fuzzer/ |
H A D | rssurfaceframeohosgl_fuzzer.cpp | 75 std::vector<RectI> rects;
in DoSetDamageRegion() local 76 g_rsSurfaceFrameOhosGl->SetDamageRegion(rects);
in DoSetDamageRegion()
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/ |
H A D | egl_wrapper_display.h | 109 EGLBoolean SwapBuffersWithDamageKHR(EGLSurface draw, EGLint *rects, EGLint nRects); 110 EGLBoolean SetDamageRegionKHR(EGLSurface surf, EGLint *rects, EGLint nRects); 116 EGLBoolean SwapBuffersWithDamageEXT(EGLSurface surface, const EGLint *rects, EGLint nRects);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/drawing/ |
H A D | rs_surface_frame.h | 34 virtual void SetDamageRegion(const std::vector<RectI> &rects) {}; in SetDamageRegion() argument
|