HomeSort by relevance Sort by last modified time
    Searched refs:rect (Results 201 - 225 of 1930) sorted by null

1 2 3 4 5 6 7 891011>>

  /external/skia/gm/
roundrects.cpp 143 const SkRect rect = SkRect::MakeLTRB(-20, -30, 20, 30); variable
145 circleRect.setRectXY(rect, 5, 5);
174 canvas->drawRect(rect, rectPaint);
187 SkRect rect = SkRect::MakeLTRB(-20, -60, 20, 60); variable
189 ellipseRect.setRectXY(rect, 5, 10);
199 canvas->drawRect(rect, rectPaint);
206 SkRect rect = SkRect::MakeLTRB(-80, -30, 80, 30); variable
208 ellipseRect.setRectXY(rect, 20, 5);
219 canvas->drawRect(rect, rectPaint);
226 SkRect rect = SkRect::MakeLTRB(0, -60, 1, 60) variable
244 SkRect rect = SkRect::MakeLTRB(-80, -1, 80, 0); variable
    [all...]
shapes_as_paths.cpp 103 * Iterates over a variety of rect shapes, paint parameters, and matrices, calling two different
156 for (const SkRect& rect : kRects) {
171 f1(surface->getCanvas(), rect, paint);
179 f2(surface->getCanvas(), rect, paint);
198 // Drawing a rect vs. adding it to a path and drawing the path, should produce same results.
199 auto rectDrawFunc = [](SkCanvas* canvas, const SkRect& rect, const SkPaint& paint) {
200 canvas->drawRect(rect, paint);
202 auto pathDrawFunc = [](SkCanvas* canvas, const SkRect& rect, const SkPaint& paint) {
204 path.addRect(rect);
213 auto ovalDrawFunc = [](SkCanvas* canvas, const SkRect& rect, const SkPaint& paint)
    [all...]
matrixconvolution.cpp 110 SkImageFilter::CropRect rect(SkRect::Make(fBitmap.bounds()));
112 this->draw(canvas, x, 10, kernelOffset, MCIF::kClamp_TileMode, true, &rect);
113 this->draw(canvas, x, 110, kernelOffset, MCIF::kClampToBlack_TileMode, true, &rect);
114 this->draw(canvas, x, 210, kernelOffset, MCIF::kRepeat_TileMode, true, &rect);
123 this->draw(canvas, 410, 10, kernelOffset, MCIF::kClamp_TileMode, false, &rect);
124 this->draw(canvas, 410, 110, kernelOffset, MCIF::kClampToBlack_TileMode, false, &rect);
125 this->draw(canvas, 410, 210, kernelOffset, MCIF::kRepeat_TileMode, false, &rect);
  /external/skia/src/gpu/effects/
GrConvexPolyEffect.cpp 22 static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType edgeType, const SkRect& rect) {
23 return sk_sp<GrFragmentProcessor>(new AARectEffect(edgeType, rect));
33 AARectEffect(GrPrimitiveEdgeType edgeType, const SkRect& rect)
35 , fRect(rect)
60 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(), local
69 fp = AARectEffect::Make(edgeType, rect);
100 // The rect uniform's xyzw refer to (left + 0.5, top + 0.5, right - 0.5, bottom - 0.5),
105 "rect",
141 const SkRect& rect = aare.getRect(); local
142 if (rect != fPrevRect)
    [all...]
  /frameworks/base/core/jni/android/graphics/
GraphicBuffer.cpp 175 Rect rect(Rect::EMPTY_RECT);
177 rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
178 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
179 rect.right = GET_INT(dirtyRect, gRectClassInfo.right);
180 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom);
182 rect.set(Rect(buffer->getWidth(), buffer->getHeight()));
186 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits)
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/legacy/
ParameterUtils.java 21 import android.graphics.Rect;
51 public static final Rect NORMALIZED_RECTANGLE_DEFAULT = new Rect(
58 new Camera.Area(new Rect(NORMALIZED_RECTANGLE_DEFAULT),
61 public static final Rect RECTANGLE_EMPTY =
62 new Rect(/*left*/0, /*top*/0, /*right*/0, /*bottom*/0);
73 public final Rect previewCrop;
75 public final Rect reportedCrop;
77 public ZoomData(int zoomIndex, Rect previewCrop, Rect reportedCrop)
126 public final Rect rect; field in class:ParameterUtils.WeightedRectangle
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
EmbossMaskFilterTest.java 29 import android.graphics.Rect;
67 Rect top = new Rect(0, 0, BITMAP_WIDTH, CENTER_Y);
68 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT);
69 Rect left = new Rect(0, 0, CENTER_X, BITMAP_HEIGHT);
70 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT);
90 private long brightness(Bitmap b, Rect rect)
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
DynamicDrawableSpanTest.java 23 import android.graphics.Rect;
60 Rect rect = dynamicDrawableSpan.getDrawable().getBounds(); local
61 assertEquals(rect.right, dynamicDrawableSpan.getSize(null, null, 0, 0, fm));
63 assertEquals(-rect.bottom, fm.ascent);
67 assertEquals(-rect.bottom, fm.top);
69 assertEquals(rect.right, dynamicDrawableSpan.getSize(null, null, 0, 0, null));
  /external/pdfium/core/fpdfapi/font/
cpdf_font.cpp 242 FX_RECT rect = GetCharBBox(i); local
243 if (rect.left == rect.right) {
247 m_FontBBox = rect;
250 if (m_FontBBox.top < rect.top) {
251 m_FontBBox.top = rect.top;
253 if (m_FontBBox.right < rect.right) {
254 m_FontBBox.right = rect.right;
256 if (m_FontBBox.left > rect.left) {
257 m_FontBBox.left = rect.left
267 FX_RECT rect = GetCharBBox('A'); local
    [all...]
  /external/skia/src/core/
SkClipStackDevice.cpp 30 void SkClipStackDevice::onClipRect(const SkRect& rect, SkClipOp op, bool aa) {
31 fClipStack.clipRect(rect, this->ctm(), op, aa);
59 SkIRect rect = clipRestriction->makeOffset(-origin.x(), -origin.y()); local
60 fClipStack.setDeviceClipRestriction(rect);
61 fClipStack.clipDevRect(rect, SkClipOp::kIntersect);
SkMatrixPriv.h 17 * Attempt to map the rect through the inverse of the matrix. If it is not invertible,
69 static void SetMappedRectFan(const SkMatrix& mx, const SkRect& rect, SkPoint quad[4]) {
71 SkScalar l = rect.fLeft;
72 SkScalar t = rect.fTop;
73 SkScalar r = rect.fRight;
74 SkScalar b = rect.fBottom;
  /external/skia/tests/
InfRectTest.cpp 51 SkRect rect; local
52 rect.set(l, t, r, b);
53 REPORTER_ASSERT(reporter, !rect.isFinite());
56 // Tests that isFinite() will reject any rect with +/-inf values
67 SkRect rect = SkRect::MakeXYWH(small, small, big, big); local
68 REPORTER_ASSERT(reporter, rect.isFinite());
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
ImmutablesRepresenter.java 54 Rectangle rect = (Rectangle) data; local
56 Arrays.asList(new Object[] { rect.x, rect.y, rect.width, rect.height }), true);
  /frameworks/base/libs/hwui/
Snapshot.h 33 #include "Rect.h"
52 bool areaRequiresRoundRectClip(const Rect& rect) const {
53 return rect.intersects(dangerRects[0])
54 || rect.intersects(dangerRects[1])
55 || rect.intersects(dangerRects[2])
56 || rect.intersects(dangerRects[3]);
61 Rect dangerRects[4];
62 Rect innerRect;
111 void clip(const Rect& localClip, SkClipOp op)
    [all...]
  /hardware/qcom/display/msm8084/libqdutils/
display_config.cpp 95 int getDisplayVisibleRegion(int dpy, hwc_rect_t &rect) {
105 rect.left = outParcel.readInt32();
106 rect.top = outParcel.readInt32();
107 rect.right = outParcel.readInt32();
108 rect.bottom = outParcel.readInt32();
  /hardware/intel/img/psb_video/src/x11/
psb_coverlay.c 104 pCurrent->rect = *pRect;
138 if (psFirst->rect.i32Left < 0)
139 psFirst->rect.i32Left = 0;
140 else if (psFirst->rect.i32Left > display_width)
141 psFirst->rect.i32Left = display_width;
143 if (psFirst->rect.i32Right < 0)
144 psFirst->rect.i32Right = 0;
145 else if (psFirst->rect.i32Right > display_width)
146 psFirst->rect.i32Right = display_width;
148 if (psFirst->rect.i32Top < 0
    [all...]
  /external/skia/include/core/
SkRRect.h 21 // add heart rect computation (max rect inside RR)
22 // add 9patch rect computation
36 The SkRRect class represents a rounded rect with a potentially different
61 //!< The RR is actually a (non-empty) rect (i.e., at least one radius
71 //!< the curves) nor a rect (i.e., both radii are non-zero)
76 //!< neither an rect, oval, nor a simple RR. It is called "nine patch"
78 //!< rect with edges that divide the RR into an 9 rectangular patches:
130 * Set this RR to match the supplied rect. All radii will be 0.
132 void setRect(const SkRect& rect) {
219 const SkRect& rect() const { return fRect; } function in class:SkRRect
    [all...]
  /external/libvncserver/libvncserver/
ultra.c 45 rfbFramebufferUpdateRectHeader rect; local
116 rect.r.x = Swap16IfLE(x);
117 rect.r.y = Swap16IfLE(y);
118 rect.r.w = Swap16IfLE(w);
119 rect.r.h = Swap16IfLE(h);
120 rect.encoding = Swap32IfLE(rfbEncodingUltra);
122 memcpy(&cl->updateBuf[cl->ublen], (char *)&rect,
  /external/mesa3d/src/intel/vulkan/
genX_state.c 60 anv_batch_emit(&batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
61 rect.ClippedDrawingRectangleYMin = 0;
62 rect.ClippedDrawingRectangleXMin = 0;
63 rect.ClippedDrawingRectangleYMax = UINT16_MAX;
64 rect.ClippedDrawingRectangleXMax = UINT16_MAX;
65 rect.DrawingRectangleOriginY = 0;
66 rect.DrawingRectangleOriginX = 0;
  /external/mesa3d/src/mesa/state_tracker/
st_atom_scissor.c 118 const struct gl_scissor_rect *rect = &scissor->WindowRects[i]; local
119 new_rects[i].minx = MAX2(rect->X, 0);
120 new_rects[i].miny = MAX2(rect->Y, 0);
121 new_rects[i].maxx = MAX2(rect->X + rect->Width, 0);
122 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0);
  /external/pdfium/core/fxge/ge/
cfx_cliprgn.cpp 20 void CFX_ClipRgn::Reset(const FX_RECT& rect) {
22 m_Box = rect;
26 void CFX_ClipRgn::IntersectRect(const FX_RECT& rect) {
28 m_Box.Intersect(rect);
32 IntersectMaskRect(rect, m_Box, m_Mask);
37 void CFX_ClipRgn::IntersectMaskRect(FX_RECT rect,
42 m_Box = rect;
  /external/python/cpython2/Lib/ctypes/test/
test_win32.py 85 class RECT(Structure):
98 rect = RECT(left, top, right, bottom)
100 PointInRect.argtypes = [POINTER(RECT), POINT]
101 self.assertEqual(1, PointInRect(byref(rect), pt))
104 ReturnRect.argtypes = [c_int, RECT, POINTER(RECT), POINT, RECT,
105 POINTER(RECT), POINT, RECT]
    [all...]
  /external/skia/debugger/QT/
SkListWidget.cpp 18 QRect r = option.rect;
70 /* option.rect is a struct that Qt uses as a target to draw into. Following
74 * widget. A (x1,y1,0,0) rect would mean that the item being drawn would
84 r = option.rect.adjusted(5, 10, -10, -10);
88 r = option.rect.adjusted(19, 10, -10, -10);
93 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace+kTimeSpace+indent, 0, -10, -7);
96 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace+indent, 0, -10, -7);
102 r = option.rect.adjusted(kImageSpace, 0, -10, -7);
108 r = option.rect.adjusted(kImageSpace+kCommandNumberSpace, 0, -10, -7);
  /external/skia/src/gpu/ops/
GrNonAAFillRectOp.cpp 26 coords and just duplicate the positions when the caller hasn't provided a local coord rect,
27 but we haven't seen a use case which frequently switches between local rect and no local
28 rect draws.
46 // the local rect on the cpu (in case the localMatrix also has perspective).
47 // Otherwise, if we have a local rect, then we apply the localMatrix directly to the localRect
71 const SkRect& rect,
75 positions->setRectFan(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, vertexStride)
409 SkRect rect = GrTest::TestRect(random); local
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
RecyclerViewParallax.java 23 import android.graphics.Rect;
169 Rect rect = new Rect( local
171 recyclerView.offsetDescendantRectToMyCoords(trackingView, rect);
186 rect.offset((int) tx, (int) ty);
188 source.setIntPropertyValue(getIndex(), rect.top + mOffset
189 + (int) (mFraction * rect.height()));
191 source.setIntPropertyValue(getIndex(), rect.left + mOffset
192 + (int) (mFraction * rect.width()))
    [all...]

Completed in 759 milliseconds

1 2 3 4 5 6 7 891011>>