/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_pattern.cpp | 196 auto rect = host->GetGeometryNode()->GetFrameRect(); 200 caretCaretMetric = CaretMetricsF(OffsetF(0.0f, rect.Height()), 0.0f); 386 for (auto&& rect : selectedRects) { in ShowShadow() 387 if (!rect.IsInRegion(textOffset)) { in ShowShadow() 440 auto longPressFunc = [](RefPtr<SpanItem> item, GestureEvent& info, const RectF& rect, in HandleSpanLongPressEvent() 442 if (rect.IsInRegion(textOffset)) { in HandleSpanLongPressEvent() 460 for (auto&& rect : selectedRects) { in HandleSpanLongPressEvent() 461 CHECK_NULL_VOID(!longPressFunc(item, info, rect, textOffset)); in HandleSpanLongPressEvent() 955 for (auto&& rect : selectedRects) { in CalculateClickedSpanPosition() 956 if (!rect in CalculateClickedSpanPosition() 3506 ProcessBoundRectByTextShadow(RectF& rect) ProcessBoundRectByTextShadow() argument 3539 ProcessBoundRectByTextMarquee(RectF& rect) ProcessBoundRectByTextMarquee() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/ |
H A D | rs_uni_render_visitor_test.cpp | 887 Occlusion::Rect rect{0, 80, 2560, 1600}; in HWTEST_F() 888 Occlusion::Region region{rect}; in HWTEST_F() 956 Occlusion::Rect rect{0, 80, 2560, 1600}; in HWTEST_F() 957 Occlusion::Region region{rect}; in HWTEST_F() 2205 * @tc.desc: Test UpdateDstRect with empty rect 2483 * @tc.desc: Test RSUniRenderVisitorTest.UpdateHwcNodeEnableByFilterRect with intersect rect 2501 RectI rect{left, top, width, height}; in HWTEST_F() 2502 surfaceNode2->SetDstRect(rect); in HWTEST_F() 2507 rsUniRenderVisitor->UpdateHwcNodeEnableByFilterRect(surfaceNode1, rect); in HWTEST_F() 2513 * @tc.desc: Test RSUniRenderVisitorTest.UpdateHwcNodeEnableByFilterRect with empty rect [all...] |
/third_party/skia/src/gpu/gl/ |
H A D | GrGLGpu.cpp | 825 SkIRect rect, in onWritePixels() 861 rect, in onWritePixels() 868 SkIRect rect, in onTransferPixelsTo() 892 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect)); in onTransferPixelsTo() 895 const size_t trimRowBytes = rect.width() * bpp; in onTransferPixelsTo() 919 rect.left(), in onTransferPixelsTo() 920 rect.top(), in onTransferPixelsTo() 921 rect.width(), in onTransferPixelsTo() 922 rect.height(), in onTransferPixelsTo() 935 SkIRect rect, in onTransferPixelsFrom() 824 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument 867 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType textureColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset, size_t rowBytes) onTransferPixelsTo() argument 934 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument 2143 readOrTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* offsetOrPtr, int rowWidthInPixels) readOrTransferPixelsFrom() argument 2206 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | offscreen_canvas_paint_method.cpp | 165 auto rect = RSRect(scaledLeft, scaledTop, dirtyWidth + scaledLeft, dirtyHeight + scaledTop); in GetImageData() local 166 bool ret = bitmap_.ExtractSubset(subBitmap, rect); in GetImageData()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_model_ng.cpp | 259 void ScrollableModelNG::SetContentClip(FrameNode* frameNode, ContentClipMode mode, const RefPtr<ShapeRect>& rect) in SetContentClip() argument 261 ACE_UPDATE_NODE_PAINT_PROPERTY(ScrollablePaintProperty, ContentClip, std::make_pair(mode, rect), frameNode); in SetContentClip()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/screen/ |
H A D | screen_pattern.cpp | 227 Rosen::Rect rect = { screenBounds.rect_.left_, screenBounds.rect_.top_, in OnDirtyLayoutWrapperSwap() local 233 rootScene->UpdateViewportConfig(rect, Rosen::WindowSizeChangeReason::UNDEFINED); in OnDirtyLayoutWrapperSwap()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_pattern.h | 159 void SetChildRect(const RectF& rect) in SetChildRect() argument 161 childRect_ = rect; in SetChildRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_overlay_modifier.cpp | 159 RSRect rect(previewTextRect.Left(), previewTextRect.Bottom() - previewTextUnderlineWidth, in PaintPreviewTextDecoration() 161 drawingContext.canvas.DrawRoundRect(RSRoundRect(rect, roundRectRadius, roundRectRadius)); in PaintPreviewTextDecoration()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | paragraph_manager_test_ng.cpp | 73 RectF rect = RectF(10, 10, 40, 20); in ConstructParagraphs() local 74 selectedRects.emplace_back(rect); in ConstructParagraphs() 285 * @tc.expected: the position of the rect is in the first paragraph. in HWTEST_F() 297 * @tc.expected: the position of the rect is spans two paragraphs. in HWTEST_F() 308 * @tc.expected: the position of the rect is in the last paragraph. in HWTEST_F()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/bufferqueue_fuzzer/ |
H A D | bufferqueue_fuzzer.cpp | 111 OHOS::Rect rect = GetData<OHOS::Rect>(); in BufferQueueFuzzTest1() local 113 BufferFlushConfigWithDamages flushConfig = {.damages = { rect }, .timestamp = timestamp}; in BufferQueueFuzzTest1()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/nativewindow_fuzzer/ |
H A D | nativewindow_fuzzer.cpp | 133 Region::Rect rect = GetData<Region::Rect>(); in NativeWindowFuzzTest() local 134 Region region = {.rects = &rect, .rectNumber = 1}; in NativeWindowFuzzTest()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/bufferqueueproducer_fuzzer/ |
H A D | bufferqueueproducer_fuzzer.cpp | 159 OHOS::Rect rect = GetData<OHOS::Rect>(); in DoSomethingInterestingWithMyAPI() local 161 BufferFlushConfigWithDamages flushConfig = {.damages = { rect }, .timestamp = timestamp}; in DoSomethingInterestingWithMyAPI()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/ |
H A D | rs_gpu_overdraw_canvas_listener.cpp | 95 void RSGPUOverdrawCanvasListener::DrawRect(const Drawing::Rect& rect) in DrawRect() argument 101 overdrawCanvas_->DrawRect(rect); in DrawRect() 179 // need know canvas rect region in DrawBackground() 186 // need know shadow rect region in DrawShadow() 193 // need know shadow rect region in DrawShadowStyle() 243 // need know picture rect region in DrawPicture() 248 // need know canvas rect region in Clear()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/ |
H A D | rs_drawable_test.cpp | 153 RectF rect = {1.0, 2.0, 3.0, 4.0}; in HWTEST_F() local 154 properties.clipRRect_ = std::make_optional<RRect>(rect, 1.0, 2.0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_static_factory.cpp | 151 bool SkiaStaticFactory::GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix) in GetFillPath() argument 153 return SkiaPaint::GetFillPath(pen, src, dst, rect, matrix); in GetFillPath()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/ |
H A D | image_filter_test.cpp | 298 Rect rect {0, 0, 100.0f, 100.0f}; in HWTEST_F() 299 auto imageFilter = ImageFilter::CreateShaderImageFilter(effect, rect); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render/render_base/unittest/draw/ |
H A D | rs_draw_test.cpp | 153 RectF rect = {1.0, 2.0, 3.0, 4.0}; in HWTEST_F() local 154 properties.clipRRect_ = std::make_optional<RRect>(rect, 1.0, 2.0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_util.h | 86 static void DrawRectForDfx(RSPaintFilterCanvas& canvas, const RectI& rect, Drawing::Color color, 125 static SecRectInfo GenerateSecRectInfoFromNode(RSRenderNode& node, RectI rect);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/render_context/ |
H A D | render_context_test.cpp | 412 RectI rect{0, 0, 1, 1}; in HWTEST_F() 413 auto rects = {rect}; in HWTEST_F()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/mode/ |
H A D | slow_motion_session_napi.cpp | 258 Rect rect = (Rect) {topLeftX, topLeftY, width, height}; in SetSlowMotionDetectionArea() local 262 slowMotionSessionNapi->slowMotionSession_->SetSlowMotionDetectionArea(rect); in SetSlowMotionDetectionArea()
|
/foundation/window/window_manager/interfaces/innerkits/dm/ |
H A D | display_manager.h | 229 * @param rect user select area.
233 std::shared_ptr<Media::PixelMap> GetSnapshotByPicker(Media::Rect &rect, DmErrorCode* errorCode = nullptr);
239 * @param rect Rect of screenshot.
245 std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayId, const Media::Rect &rect,
|
/foundation/window/window_manager/test/fuzztest/window_scene/sessioninterface_fuzzer/ |
H A D | sessioninterface_fuzzer.cpp | 201 WSRect rect = source.GetObject<WSRect>(); in ProxyInterfaceFuzzTestPart1() local 203 proxy->UpdateSessionRect(rect, reason); in ProxyInterfaceFuzzTestPart1()
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_utils.h | 174 napi_value CreateJsSessionRect(napi_env env, const T& rect); 186 bool ConvertRectInfoFromJs(napi_env env, napi_value jsObject, WSRect& rect);
|
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scb_system_session_test.cpp | 144 WSRect rect = {0, 0, 0, 0}; in HWTEST_F() local 145 scbSystemSession_->UpdatePointerArea(rect); in HWTEST_F()
|
/foundation/window/window_manager_lite/test/ |
H A D | sample_window.cpp | 49 config.rect = rootView->GetRect(); in CreateDefaultWindow() 50 config.rect.SetPosition(x, y); in CreateDefaultWindow()
|