HomeSort by relevance Sort by last modified time
    Searched refs:inset (Results 1 - 25 of 320) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/src/utils/
SkInsetConvexPolygon.h 17 * Generates a polygon that is inset a given distance from the boundary of a given convex polygon.
22 * @param insetDistanceFunc How far we wish to inset the polygon for a given index in the array.
24 * @param insetPolygon The resulting inset polygon, if any.
25 * @return true if an inset polygon exists, false otherwise.
32 SkScalar inset,
35 [inset](int) { return inset; },
  /external/skqp/src/utils/
SkInsetConvexPolygon.h 17 * Generates a polygon that is inset a given distance from the boundary of a given convex polygon.
22 * @param insetDistanceFunc How far we wish to inset the polygon for a given index in the array.
24 * @param insetPolygon The resulting inset polygon, if any.
25 * @return true if an inset polygon exists, false otherwise.
32 SkScalar inset,
35 [inset](int) { return inset; },
  /frameworks/base/services/core/java/com/android/server/wm/utils/
WmDisplayCutout.java 58 * @return a copy of this instance which has been inset
61 public WmDisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) { method in class:WmDisplayCutout
62 DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom);
87 return inset(frame.left, frame.top,
123 int inset = 0; local
130 inset = Math.max(inset, boundingRect.bottom);
135 inset = Math.max(inset, display.getHeight() - boundingRect.top);
140 inset = Math.max(inset, boundingRect.right)
    [all...]
  /frameworks/layoutlib/bridge/src/android/view/
RectShadowPainter.java 95 shadowRect.inset(-shadowSize, -shadowSize);
97 RectF inset = new RectF(outline); local
98 inset.inset(radius, radius);
104 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height());
106 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0);
108 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2);
110 edgeShadowRect.set(-shadowSize, 0, 0, inset.width());
111 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1);
112 // bottom shadow. This needs an inset so that blank doesn't appear when the content i
    [all...]
  /external/skia/include/effects/
SkMagnifierImageFilter.h 17 static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset,
26 SkScalar inset,
  /external/skqp/include/effects/
SkMagnifierImageFilter.h 17 static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset,
26 SkScalar inset,
  /external/skia/gm/
draw_bitmap_rect_skbug4374.cpp 14 rect.inset(0.5, 1.5);
pathinterior.cpp 17 static SkRect inset(const SkRect& r) { function
19 rect.inset(r.width() / 8, r.height() / 8);
80 SkRect r = insetFirst ? inset(rect) : rect;
86 r = insetFirst ? rect : inset(rect);
reveal.cpp 34 virtual SkPath asPath(SkScalar inset) const = 0;
70 SkPath asPath(SkScalar inset) const override {
72 tmp.inset(inset, inset);
113 SkPath asPath(SkScalar inset) const override {
115 tmp.inset(inset, inset);
176 SkPath asPath(SkScalar inset) const override
    [all...]
  /external/skqp/gm/
draw_bitmap_rect_skbug4374.cpp 14 rect.inset(0.5, 1.5);
pathinterior.cpp 17 static SkRect inset(const SkRect& r) { function
19 rect.inset(r.width() / 8, r.height() / 8);
80 SkRect r = insetFirst ? inset(rect) : rect;
86 r = insetFirst ? rect : inset(rect);
reveal.cpp 34 virtual SkPath asPath(SkScalar inset) const = 0;
70 SkPath asPath(SkScalar inset) const override {
72 tmp.inset(inset, inset);
113 SkPath asPath(SkScalar inset) const override {
115 tmp.inset(inset, inset);
176 SkPath asPath(SkScalar inset) const override
    [all...]
  /external/skia/src/gpu/ops/
GrAAStrokeRectOp.cpp 70 devInside->inset(rx, ry);
92 devOutside->inset(0, ry);
421 static void setup_scale(int* scale, SkScalar inset) {
422 if (inset < SK_ScalarHalf) {
423 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf));
456 SkScalar inset; local
458 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight);
459 inset = SkMinScalar(inset, devInside.fLeft - devOutside.fLeft)
475 SkScalar inset; local
    [all...]
  /external/skqp/src/gpu/ops/
GrAAStrokeRectOp.cpp 70 devInside->inset(rx, ry);
92 devOutside->inset(0, ry);
421 static void setup_scale(int* scale, SkScalar inset) {
422 if (inset < SK_ScalarHalf) {
423 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf));
456 SkScalar inset; local
458 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight);
459 inset = SkMinScalar(inset, devInside.fLeft - devOutside.fLeft)
475 SkScalar inset; local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
FakeShadowDrawable.java 60 // updated value with inset
189 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; local
190 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0;
191 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0;
194 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset);
198 mCardBounds.width() - 2 * inset, -mCornerRadius,
204 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset);
209 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize
    [all...]
  /frameworks/support/cardview/src/main/java/androidx/cardview/widget/
RoundRectDrawableWithShadow.java 250 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; local
251 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0;
252 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0;
255 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset);
259 mCardBounds.width() - 2 * inset, -mCornerRadius,
265 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset);
270 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize,
276 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Regions.java 85 float inset = p.getStrokeWidth() * 0.5f; local
86 if (inset == 0) { // catch hairlines
87 inset = 0.5f;
89 c.drawRect(r.left + inset, r.top + inset,
90 r.right - inset, r.bottom - inset, p);
  /frameworks/base/graphics/java/android/graphics/drawable/
InsetDrawable.java 45 * <p>It can be defined in an XML file with the <code>&lt;inset></code> element. For more
70 * Creates a new inset drawable with the specified inset.
72 * @param drawable The drawable to inset.
73 * @param inset Inset in pixels around the drawable.
75 public InsetDrawable(@Nullable Drawable drawable, int inset) {
76 this(drawable, inset, inset, inset, inset)
191 final InsetValue inset = getInset(a, R.styleable.InsetDrawable_inset, new InsetValue()); local
    [all...]
  /external/skia/src/gpu/effects/
GrTextureDomain.h 70 // For Clamp mode, inset by half a texel.
71 SkScalar inset = (mode == kClamp_Mode && !texelRect.isEmpty()) ? SK_ScalarHalf : 0; local
72 return SkRect::MakeLTRB(texelRect.fLeft + inset, texelRect.fTop + inset,
73 texelRect.fRight - inset, texelRect.fBottom - inset);
  /external/skqp/src/gpu/effects/
GrTextureDomain.h 70 // For Clamp mode, inset by half a texel.
71 SkScalar inset = (mode == kClamp_Mode && !texelRect.isEmpty()) ? SK_ScalarHalf : 0; local
72 return SkRect::MakeLTRB(texelRect.fLeft + inset, texelRect.fTop + inset,
73 texelRect.fRight - inset, texelRect.fBottom - inset);
  /external/skia/src/effects/
SkMagnifierImageFilter.cpp 33 sk_sp<SkImageFilter> SkMagnifierImageFilter::Make(const SkRect& srcRect, SkScalar inset,
36 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) {
39 if (inset < 0) {
46 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset,
54 SkScalar inset,
59 , fInset(inset) {
60 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0);
162 // a square twice the size of the inset.
209 str->appendf("inset: %f", fInset);
  /external/skqp/src/effects/
SkMagnifierImageFilter.cpp 33 sk_sp<SkImageFilter> SkMagnifierImageFilter::Make(const SkRect& srcRect, SkScalar inset,
36 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) {
39 if (inset < 0) {
46 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset,
54 SkScalar inset,
59 , fInset(inset) {
60 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0);
162 // a square twice the size of the inset.
209 str->appendf("inset: %f", fInset);
  /frameworks/base/core/tests/coretests/src/android/view/
DisplayCutoutTest.java 95 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4);
102 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4);
112 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4);
122 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4);
132 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4);
142 DisplayCutout cutout = mCutoutTop.inset(0, 1000, 0, 0);
154 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4);
  /frameworks/base/graphics/java/android/graphics/drawable/shapes/
RoundRectShape.java 27 * Creates a rounded-corner rectangle. Optionally, an inset (rounded) rectangle
51 * @param inset A RectF that specifies the distance from the inner
58 * inset parameter is {@code null}, this parameter is
61 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset,
70 mInset = inset;
73 if (inset != null) {
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
InsetDrawableTest.java 305 float inset = .1f; local
318 assertEquals((int) (size * inset), bounds.left);
319 assertEquals((int) (size * inset), bounds.top);
320 assertEquals(size - (int) (size * inset), bounds.right);
321 assertEquals(size - (int) (size * inset), bounds.bottom);
326 float inset = .1f; local
329 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, inset);
331 assertEquals((int)(mPassDrawable.getIntrinsicWidth() / (1 - 2 * inset)),
333 assertEquals((int)(mPassDrawable.getIntrinsicHeight() / (1 - 2 * inset)),
341 assertEquals((int)(insetDrawable.getIntrinsicWidth() * inset), r.left)
    [all...]

Completed in 871 milliseconds

1 2 3 4 5 6 7 8 91011>>