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

1 2 3 4 5 6 7 8 9

  /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/skia/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);
gaussianedge.cpp 134 rrects[1].inset(blurRad/2.0f, blurRad/2.0f);
137 SkScalar inset = kRRRad - 0.5f; local
138 rrects[1].inset(inset, inset);
139 SkScalar pad = blurRad/2.0f - inset;
151 rrects[2].inset(blurRad/2.0f, blurRad/2.0f);
154 SkScalar inset = kRRRad - 0.5f; local
155 rrects[2].inset(inset, inset)
    [all...]
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 35 virtual SkPath asPath(SkScalar inset) const = 0;
71 SkPath asPath(SkScalar inset) const override {
73 tmp.inset(inset, inset);
114 SkPath asPath(SkScalar inset) const override {
116 tmp.inset(inset, inset);
177 SkPath asPath(SkScalar inset) const override {
    [all...]
drrect.cpp 47 r.inset(25, 25);
rrect.cpp 19 r.inset(dx, dy);
39 r.inset(dx, dy);
55 r.inset(dx, dy);
83 r.inset(dx, dy);
  /external/skia/src/gpu/ops/
GrAAStrokeRectOp.cpp 69 devInside->inset(rx, ry);
91 devOutside->inset(0, ry);
417 static void setup_scale(int* scale, SkScalar inset) {
418 if (inset < SK_ScalarHalf) {
419 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf));
452 SkScalar inset; local
454 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight);
455 inset = SkMinScalar(inset, devInside.fLeft - devOutside.fLeft)
471 SkScalar inset; local
    [all...]
GrAAFillRectOp.cpp 60 SkScalar inset; local
63 inset = SkMinScalar(devRect.width(), SK_Scalar1);
64 inset = SK_ScalarHalf * SkMinScalar(inset, devRect.height());
67 set_inset_fan(fan1Pos, vertexStride, devRect, inset, inset);
78 inset = SkMinScalar(len1 * rect.width(), SK_Scalar1);
79 inset = SK_ScalarHalf * SkMinScalar(inset, len2 * rect.height());
85 // Now create the inset points and then outset the origina
    [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/v7/cardview/src/android/support/v7/widget/
RoundRectDrawableWithShadow.java 249 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; local
250 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0;
251 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0;
254 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset);
258 mCardBounds.width() - 2 * inset, -mCornerRadius,
264 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset);
269 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize,
275 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);
ShapeDrawable1.java 82 RectF inset = new RectF(6, 6, 6, 6); local
97 mDrawables[3] = new ShapeDrawable(new RoundRectShape(outerR, inset,
99 mDrawables[4] = new ShapeDrawable(new RoundRectShape(outerR, inset,
  /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);
  /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...]
  /external/skia/include/core/
SkRRect.h 245 * Call inset on the bounds, and adjust the radii to reflect what happens
247 * otherwise we grow/shrink the radii by the amount of the inset. If a
252 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
254 void inset(SkScalar dx, SkScalar dy) { function in class:SkRRect
255 this->inset(dx, dy, this);
261 * otherwise we grow/shrink the radii by the amount of the inset. If a
267 this->inset(-dx, -dy, dst);
270 this->inset(-dx, -dy, this);
  /external/skia/bench/
RegionBench.cpp 39 r.inset(r.width()/4, r.height()/4);
43 r.inset(r.width()/4, r.height()/4);
53 r.inset(r.width()/4, r.height()/4);
  /external/skia/samplecode/
SampleAAClip.cpp 81 bounds.inset(SK_ScalarHalf, SK_ScalarHalf);
106 r.inset(20, 20);
  /frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
SetupWizardRecyclerLayout.java 142 * Sets the start inset of the divider. This will use the default divider drawable set in the
143 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
145 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
151 public void setDividerInset(int inset) {
152 mRecyclerMixin.setDividerInset(inset);
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
GlifListLayout.java 116 * Sets the start inset of the divider. This will use the default divider drawable set in the
117 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
119 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
125 public void setDividerInset(int inset) {
126 mListMixin.setDividerInset(inset);
SetupWizardListLayout.java 108 * Sets the start inset of the divider. This will use the default divider drawable set in the
109 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
111 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
117 public void setDividerInset(int inset) {
118 mListMixin.setDividerInset(inset);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
RoundedLine.java 87 mArc1.inset(-r1, -r1);
89 mArc2.inset(-r2, -r2);

Completed in 566 milliseconds

1 2 3 4 5 6 7 8 9