Home
last modified time | relevance | path

Searched refs:rect (Results 751 - 775 of 2377) sorted by relevance

1...<<31323334353637383940>>...96

/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_cutout_controller_test.cpp188 DMRect rect = {-1, -1, 100, 100}; in HWTEST_F() local
189 boundingRects.push_back(rect); in HWTEST_F()
221 DMRect rect = controller->CalcCutoutBoundingRect(svgPath); in HWTEST_F() local
223 ASSERT_NE(rect, emptyRect); in HWTEST_F()
284 DMRect rect = {1, 1, 100, 100}; in HWTEST_F() local
285 dmRects.emplace_back(rect); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_paint.cpp196 bool SkiaPaint::GetFillPath(const Pen& pen, const Path& src, Path& dst, const Rect* rect, const Matrix& matrix) in GetFillPath() argument
206 if (!rect) { in GetFillPath()
210 SkRect skRect = SkRect::MakeLTRB(rect->GetLeft(), rect->GetTop(), rect->GetRight(), rect->GetBottom()); in GetFillPath()
/foundation/window/window_manager/window_scene/test/unittest/
H A Dsub_session_lifecycle_test.cpp158 WSRect rect; in HWTEST_F() local
159 subSession_->UpdatePointerArea(rect); in HWTEST_F()
308 WSRect rect; in HWTEST_F() local
309 subSession_->UpdatePointerArea(rect); in HWTEST_F()
321 WSRect rect; in HWTEST_F() local
322 subSession_->UpdatePointerArea(rect); in HWTEST_F()
/foundation/window/window_manager/wm/src/zidl/
H A Dwindow_stub.cpp48 TLOGE(WmsLogTag::WMS_LAYOUT, "read rect failed"); in OnRemoteRequest()
51 Rect rect { posX, posY, width, height }; in OnRemoteRequest()
80 UpdateWindowRect(rect, decoStatus, reason, transaction); in OnRemoteRequest()
82 UpdateWindowRect(rect, decoStatus, reason); in OnRemoteRequest()
191 struct Rect rect { posX, posY, width, height }; in OnRemoteRequest() struct
204 UpdateOccupiedAreaAndRect(info, rect, transaction); in OnRemoteRequest()
206 UpdateOccupiedAreaAndRect(info, rect); in OnRemoteRequest()
H A Dwindow_proxy.cpp30 WMError WindowProxy::UpdateWindowRect(const struct Rect& rect, bool decoStatus, WindowSizeChangeReason reason, in UpdateWindowRect() argument
40 if (!(data.WriteInt32(rect.posX_) && data.WriteInt32(rect.posY_) && in UpdateWindowRect()
41 data.WriteUint32(rect.width_) && data.WriteUint32(rect.height_))) { in UpdateWindowRect()
314 WMError WindowProxy::UpdateOccupiedAreaAndRect(const sptr<OccupiedAreaChangeInfo>& info, const Rect& rect, in UpdateOccupiedAreaAndRect() argument
329 if (!(data.WriteInt32(rect.posX_) && data.WriteInt32(rect.posY_) && in UpdateOccupiedAreaAndRect()
330 data.WriteUint32(rect.width_) && data.WriteUint32(rect in UpdateOccupiedAreaAndRect()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/
H A Ddc_stream.h201 struct rect src; /* composition area */
202 struct rect dst; /* stream addressable area */
312 struct rect src;
313 struct rect dst;
558 struct rect *rect,
/third_party/mesa3d/src/gallium/targets/d3d10sw/tests/
H A Dtri.cpp72 RECT rect = {0, 0, WindowWidth, WindowHeight}; in main() local
73 AdjustWindowRect(&rect, dwStyle, FALSE); in main()
79 rect.right - rect.left, in main()
80 rect.bottom - rect.top, in main()
/third_party/skia/src/gpu/
H A DGrOpFlushState.cpp106 SkIRect rect, in doUpload()
116 size_t tightRB = rect.width()*GrColorTypeBytesPerPixel(supportedWrite.fColorType); in doUpload()
121 tmpPixels.reset(new char[rect.height()*tightRB]); in doUpload()
124 GrImageInfo srcInfo(colorType, kAT, nullptr, rect.size()); in doUpload()
125 GrImageInfo tmpInfo(supportedWrite.fColorType, kAT, nullptr, rect.size()); in doUpload()
134 rect, in doUpload()
/third_party/skia/src/core/
H A DSkOverdrawCanvas.cpp112 void SkOverdrawCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument
113 fList[0]->onDrawRect(rect, this->overdrawPaint(paint)); in onDrawRect()
134 void SkOverdrawCanvas::onDrawRRect(const SkRRect& rect, const SkPaint& paint) { in onDrawRRect() argument
135 fList[0]->onDrawRRect(rect, this->overdrawPaint(paint)); in onDrawRRect()
214 void SkOverdrawCanvas::onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], in onDrawEdgeAAQuad() argument
219 fList[0]->onDrawRect(rect, fPaint); in onDrawEdgeAAQuad()
H A DSkBlurMF.cpp197 if (!prepare_to_draw_into_mask(rrect.rect(), mask)) { in draw_rrect_into_mask()
330 if (rect_exceeds(rrect.rect(), SkIntToScalar(32767))) { in filterRRectToNine()
336 srcM.fBounds = rrect.rect().roundOut(); in filterRRectToNine()
342 // special case for fast round rect blur in filterRRectToNine()
372 if (totalSmallWidth >= rrect.rect().width()) { in filterRRectToNine()
381 if (totalSmallHeight >= rrect.rect().height()) { in filterRRectToNine()
461 // special case for fast rect blur in filterRectsToNine()
474 * smallR is the smallest version of 'rect' that will still guarantee that in filterRectsToNine()
480 * pixels from the original rect. in filterRectsToNine()
485 * with our outer-rect (dst in filterRectsToNine()
931 SkRect rect; make_rect_blur() local
[all...]
H A DSkImageFilter.cpp68 skif::ParameterSpace<SkRect>(as_IFB(this)->getCropRect().rect())).roundOut(); in filterBounds()
72 // Nothing would be output by the filter, so return empty rect in filterBounds()
82 // Manually apply the crop rect for now, until cropping is performed by a dedicated SkIF. in filterBounds()
194 SkRect rect; in unflatten() local
195 buffer.readRect(&rect); in unflatten()
196 if (!buffer.isValid() || !buffer.validate(SkIsValidRect(rect))) { in unflatten()
205 fCropRect = CropRect(flags ? &rect : nullptr); in unflatten()
218 buffer.writeRect(fCropRect.rect()); in flatten()
267 mapping.paramToLayer(skif::ParameterSpace<SkRect>(fCropRect.rect())).roundOut(); in getInputBounds()
269 // Nothing would be output by the filter, so return empty rect in getInputBounds()
458 SkIRect rect = filter ? filter->filterBounds(src, ctm, dir, inputRect) : src; onFilterBounds() local
[all...]
/third_party/skia/tests/
H A DVkDrawableTest.cpp68 clearRect.rect.offset = { fWidth / 2, 0 };
69 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight };
149 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw() local
152 canvas->drawIRect(rect, paint); in ImportDraw()
240 SkIRect rect = SkIRect::MakeLTRB(0, DEV_H/2, DEV_W, DEV_H); in draw_drawable_test() local
241 canvas->drawIRect(rect, paint); in draw_drawable_test()
/third_party/skia/bench/
H A DShapesBench.cpp25 "rect, oval, rrect, mixed.");
28 "none, rect, oval, rrect, mixed.");
62 if (!strcmp(FLAGS_shapesType[0], "rect")) { in ShapesBench()
71 SkDebugf("Invalid shapesType \"%s\". Must be one of: rect, oval, rrect, mixed.", in ShapesBench()
77 } else if (!strcmp(FLAGS_innerShapesType[0], "rect")) { in ShapesBench()
87 "none, rect, oval, rrect, mixed.", FLAGS_innerShapesType[0]); in ShapesBench()
116 "none", "rect", "oval", "rrect", "mixed"
140 fOval.setOval(fRect.rect());
141 fRRect.setNinePatch(fRect.rect(), w / 8, h / 13, w / 11, h / 7);
146 fInnerOval.setOval(fInnerRect.rect());
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_select_overlay.cpp224 void TextSelectOverlay::OnHandleMoveDone(const RectF& rect, bool isFirst) in OnHandleMoveDone() argument
226 BaseTextSelectOverlay::OnHandleMoveDone(rect, isFirst); in OnHandleMoveDone()
293 void TextSelectOverlay::GetSelectAreaFromHandle(RectF& rect) in GetSelectAreaFromHandle() argument
302 rect = firstRect; in GetSelectAreaFromHandle()
312 rect = secondRect; in GetSelectAreaFromHandle()
465 void TextSelectOverlay::UpdateClipHandleViewPort(RectF& rect) in UpdateClipHandleViewPort() argument
489 rect.SetHeight(visibleRect.Bottom() - rect.Top()); in UpdateClipHandleViewPort()
496 rect.SetHeight(geoNode->GetFrameRect().Height() - rect in UpdateClipHandleViewPort()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dcore_canvas.cpp211 void CoreCanvas::DrawRect(const Rect& rect) in DrawRect() argument
213 DRAW_API_WITH_PAINT(DrawRect, rect); in DrawRect()
381 void CoreCanvas::ClipRect(const Rect& rect, ClipOp op, bool doAntiAlias) in ClipRect() argument
383 impl_->ClipRect(rect, op, doAntiAlias); in ClipRect()
386 void CoreCanvas::ClipIRect(const RectI& rect, ClipOp op) in ClipIRect() argument
388 impl_->ClipIRect(rect, op); in ClipIRect()
396 void CoreCanvas::ClipRoundRect(const Rect& rect, std::vector<Point>& pts, bool doAntiAlias) in ClipRoundRect() argument
398 impl_->ClipRoundRect(rect, pts, doAntiAlias); in ClipRoundRect()
421 bool CoreCanvas::QuickReject(const Rect& rect) in QuickReject() argument
423 return impl_->QuickReject(rect); in QuickReject()
[all...]
/foundation/window/window_manager/previewer/include/
H A Dwm_common.h614 static inline bool ReadParcel(Parcel& parcel, Rect& rect) in ReadParcel() argument
616 return parcel.ReadInt32(rect.posX_) && parcel.ReadInt32(rect.posY_) && in ReadParcel()
617 parcel.ReadUint32(rect.width_) && parcel.ReadUint32(rect.height_); in ReadParcel()
620 static inline bool WriteParcel(Parcel& parcel, const Rect& rect) in WriteParcel() argument
622 return parcel.WriteInt32(rect.posX_) && parcel.WriteInt32(rect.posY_) && in WriteParcel()
623 parcel.WriteUint32(rect.width_) && parcel.WriteUint32(rect in WriteParcel()
[all...]
/foundation/window/window_manager/wmserver/src/
H A Ddrag_controller.cpp330 bool MoveDragController::CheckWindowRect(DisplayId displayId, float vpr, const Rect& rect) in CheckWindowRect() argument
339 return true; // If limitRect is empty, we can't use limitRect to check window rect in CheckWindowRect()
342 if ((rect.posX_ > static_cast<int32_t>(limitRect.posX_ + limitRect.width_ - titleBarHeight)) || in CheckWindowRect()
343 (rect.posX_ + static_cast<int32_t>(rect.width_) < in CheckWindowRect()
345 (rect.posY_ < limitRect.posY_) || in CheckWindowRect()
346 (rect.posY_ > static_cast<int32_t>(limitRect.posY_ + limitRect.height_ - titleBarHeight))) { in CheckWindowRect()
347 WLOGFD("[WMS] Invalid window rect, id: %{public}u, rect: [%{public}d, %{public}d, %{public}d, %{public}d]", in CheckWindowRect()
348 windowProperty_->GetWindowId(), rect in CheckWindowRect()
[all...]
/third_party/skia/tools/debugger/
H A DDebugCanvas.cpp99 // circumvent this we create a wide open clip here (an empty clip rect in DebugCanvas()
102 // rounded out. The following code creates a nearly maximal rect that will in DebugCanvas()
363 void DebugCanvas::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) {
364 this->addDrawCommand(new ClipRectCommand(rect, op, kSoft_ClipEdgeStyle == edgeStyle));
396 void DebugCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) {
406 fnextDrawPictureDirtyRect = rect.roundOut();
418 fAndroidClip = rect;
420 this->addDrawCommand(new DrawAnnotationCommand(rect, key, sk_ref_sp(value)));
514 void DebugCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) {
516 addDrawCommand(new DrawRectCommand(rect, pain
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c687 struct v4l2_rect *rect = &sel->r; in vidioc_s_selection() local
707 if (rect->left != 0 || rect->top != 0 || in vidioc_s_selection()
708 round_up(rect->width, MB_DIM) != ctx->src_fmt.width || in vidioc_s_selection()
709 round_up(rect->height, MB_DIM) != ctx->src_fmt.height) { in vidioc_s_selection()
711 rect->left = 0; in vidioc_s_selection()
712 rect->top = 0; in vidioc_s_selection()
713 rect->width = ctx->src_fmt.width; in vidioc_s_selection()
714 rect->height = ctx->src_fmt.height; in vidioc_s_selection()
717 rect in vidioc_s_selection()
[all...]
/third_party/vk-gl-cts/modules/egl/
H A DteglSwapBuffersWithDamageTests.cpp103 ColoredRect rect; member
108 , rect (rect_) in DrawCommand()
192 const ColoredRect& coloredRect = frame.draws[drawNdx].rect; in render()
658 const ColoredRect rect (IVec2(0, frameNdx*frameDiff+rectNdx*rectHeight), IVec2(width, frameNdx*frameDiff+(rectNdx+1)*rectHeight), color); in generateFrameSequence()
659 const DrawCommand drawCommand (frameDrawType[rectNdx], rect); in generateFrameSequence()
673 const ColoredRect& rect = frame.draws[drawNdx].rect; in getDamageRegion() local
674 damageRegion.push_back(rect.bottomLeft.x()); in getDamageRegion()
675 damageRegion.push_back(rect.bottomLeft.y()); in getDamageRegion()
676 damageRegion.push_back(rect in getDamageRegion()
[all...]
/foundation/arkui/ace_engine/frameworks/component_test/core/
H A Dcomponent_test_component_impl.cpp54 constexpr char INSPECTOR_RECT[] = "$rect";
96 NG::RectF rect = frameNode->GetTransformRectRelativeToWindow(); in PinchOutImpl() local
98 float widthScale = context->GetRootWidth() * viewScale / rect.Width(); in PinchOutImpl()
99 float heightScale = context->GetRootHeight() * viewScale / rect.Height(); in PinchOutImpl()
106 PinchAction pinchAction(rect, scale); in PinchOutImpl()
550 auto rect = frameNode->GetTransformRectRelativeToWindow(); in GetInspectorInfoImpl() local
551 jsonNode->Put(INSPECTOR_RECT, rect.ToBounds().c_str()); in GetInspectorInfoImpl()
612 NG::RectF rect = frameNode->GetTransformRectRelativeToWindow(); in SetEffective() local
613 effective_ = screenRect.IntersectRectT(rect); in SetEffective()
670 NG::RectF rect; in NodeRectToString() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_canvas_drawing_render_node_drawable.cpp163 void RSCanvasDrawingRenderNodeDrawable::DrawRenderContent(Drawing::Canvas& canvas, const Drawing::Rect& rect) in DrawRenderContent() argument
165 DrawContent(*canvas_, rect); in DrawRenderContent()
182 Flush(rect.GetWidth(), rect.GetHeight(), ctx, nodeId_, in DrawRenderContent()
277 auto rect = GetRenderParams()->GetBounds(); in PostPlaybackInCorrespondThread()
278 DrawContent(*canvas_, rect); in PostPlaybackInCorrespondThread()
508 std::shared_ptr<Media::PixelMap> pixelmap, const Drawing::Rect* rect) in WriteSkImageToPixelmap()
510 if (image == nullptr || pixelmap == nullptr || rect == nullptr) { in WriteSkImageToPixelmap()
515 rect->GetLeft(), rect in WriteSkImageToPixelmap()
507 WriteSkImageToPixelmap(std::shared_ptr<Drawing::Image> image, Drawing::ImageInfo info, std::shared_ptr<Media::PixelMap> pixelmap, const Drawing::Rect* rect) WriteSkImageToPixelmap() argument
519 GetPixelmap(const std::shared_ptr<Media::PixelMap> pixelmap, const Drawing::Rect* rect, const uint64_t tid, std::shared_ptr<Drawing::DrawCmdList> drawCmdList) GetPixelmap() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawScissorTests.cpp181 const VkClearRect rect = in addCommands() local
183 makeRect2D(m_quad.m_x, m_quad.m_y, m_quad.m_width, m_quad.m_height), // VkRect2D rect in addCommands()
188 vk.cmdClearAttachments(cmdBuffer, 1u, &attachment, 1u, &rect); in addCommands()
836 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); in createTests() local
841 scissors.push_back(rect); in createTests()
842 rect.offset.x += 10; in createTests()
843 rect.offset.y += 10; in createTests()
844 scissors.push_back(rect); in createTests()
845 rect.offset.x += 10; in createTests()
846 rect in createTests()
864 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); createTests() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawScissorTests.cpp181 const VkClearRect rect = in addCommands() local
183 makeRect2D(m_quad.m_x, m_quad.m_y, m_quad.m_width, m_quad.m_height), // VkRect2D rect in addCommands()
188 vk.cmdClearAttachments(cmdBuffer, 1u, &attachment, 1u, &rect); in addCommands()
836 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); in createTests() local
841 scissors.push_back(rect); in createTests()
842 rect.offset.x += 10; in createTests()
843 rect.offset.y += 10; in createTests()
844 scissors.push_back(rect); in createTests()
845 rect.offset.x += 10; in createTests()
846 rect in createTests()
864 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); createTests() local
[all...]
/third_party/skia/src/gpu/dawn/
H A DGrDawnGpu.cpp182 SkIRect rect, in onWritePixels()
192 this->uploadTextureData(srcColorType, texels, mipLevelCount, rect, texture->texture()); in onWritePixels()
200 SkIRect rect, in onTransferPixelsTo()
211 SkIRect rect, in onTransferPixelsFrom()
357 int mipLevelCount, const SkIRect& rect, in uploadTextureData()
359 uint32_t x = rect.x(); in uploadTextureData()
360 uint32_t y = rect.y(); in uploadTextureData()
361 uint32_t width = rect.width(); in uploadTextureData()
362 uint32_t height = rect.height(); in uploadTextureData()
621 SkIRect rect, in onReadPixels()
181 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument
199 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType textureColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t bufferOffset, size_t rowBytes) onTransferPixelsTo() argument
210 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument
356 uploadTextureData(GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, const SkIRect& rect, wgpu::Texture texture) uploadTextureData() argument
620 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument
[all...]

Completed in 36 milliseconds

1...<<31323334353637383940>>...96