/external/skia/gm/ |
rrect.cpp | 24 SkVector radii[4]; local 26 radii[i] = src.radii((SkRRect::Corner)i); 29 radii[i].fX -= dx; 30 radii[i].fY -= dy; 32 dst->setRectRadii(r, radii); 44 SkVector radii[4]; local 46 radii[i] = src.radii((SkRRect::Corner)i); 48 dst->setRectRadii(r, radii); 60 SkVector radii[4]; local 88 SkVector radii[4]; local 145 SkVector radii[4] = { variable [all...] |
drrect.cpp | 34 SkVector radii[4] = { variable 44 outers[3].setRectRadii(r, radii); 53 inners[4].setRectRadii(r, radii);
|
blurroundrect.cpp | 39 SkVector radii[4]; variable 40 radii[0].set(SkIntToScalar(30), SkIntToScalar(30)); 41 radii[1].set(SkIntToScalar(10), SkIntToScalar(10)); 42 radii[2].set(SkIntToScalar(30), SkIntToScalar(30)); 43 radii[3].set(SkIntToScalar(10), SkIntToScalar(10)); 45 fRRect.setRectRadii(r, radii); 117 // Simpler blurred RR test cases where all the radii are the same. 181 // Rounded rect with two opposite corners with large radii, the other two
|
pathcontourstart.cpp | 67 const SkVector radii[4] = { {15, 15}, {15, 15}, {15, 15}, {15, 15}}; 68 rrect.setRectRadii(rect, radii);
|
roundrects.cpp | 290 // strokes and radii 292 SkScalar radii[][2] = { variable 305 circleRect.setRectXY(rect, radii[i][0], radii[i][1]);
|
blurrect.cpp | 180 const float radii[] = {20, 5, 10}; local 196 for (size_t j = 0 ; j < SK_ARRAY_COUNT(radii) ; j++) { 197 float radius = radii[j];
|
rrects.cpp | 207 // Radii for the various test cases. Order is UL, UR, LR, LL 237 // over-sized radii 262 // nine patch elliptical, small radii
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
PaintDrawable.java | 45 float[] radii = null; local 47 radii = new float[8]; 49 radii[i] = radius; 52 setCornerRadii(radii); 56 * Specify radii for each of the 4 corners. For each corner, the array 59 * @param radii the x and y radii of the corners 61 public void setCornerRadii(float[] radii) { 62 if (radii == null) { 67 setShape(new RoundRectShape(radii, null, null)) [all...] |
/external/skia/include/core/ |
SkRRect.h | 19 // add validate method (all radii positive, all radii sums < rect size, etc.) 38 radii for each corner. It does not have a constructor so must be 44 If either of a corner's radii are 0 the corner will be square. 45 Negative radii are not allowed (they are clamped to zero). 62 //!< The RR is actually a (non-empty) oval (i.e., all x radii are equal 63 //!< and >= width/2 and all the y radii are equal and >= height/2 66 //!< The RR is non-empty and all the x radii are equal & all y radii 68 //!< the curves) nor a rect (i.e., both radii are non-zero 211 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect [all...] |
/external/skia/samplecode/ |
SampleClock.cpp | 57 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; variable 58 rrect.setRectRadii(rect, radii); 80 radii[0] = SkPoint::Make(2.5f,2.5f); 81 radii[1] = SkPoint::Make(2.5f,2.5f); 82 radii[2] = SkPoint::Make(2.5f,2.5f); 83 radii[3] = SkPoint::Make(2.5f,2.5f); 84 rrect.setRectRadii(rect, radii); 120 radii[0] = SkPoint::Make(7,7); 121 radii[1] = SkPoint::Make(7,7); 122 radii[2] = SkPoint::Make(7,7) [all...] |
SamplePathFuzz.cpp | 355 SkVector radii[4]; local 356 makeVectorArray(SK_ARRAY_COUNT(radii), radii); local 357 rrect.setRectRadii(rect, radii); 391 SkScalar radii[8]; local 392 makeScalarArray(SK_ARRAY_COUNT(radii), radii); local 394 path.addRoundRect(rect, radii, dir);
|
/external/skia/tests/ |
RRectInPathTest.cpp | 147 SkVector radii[4] = { local 151 rr.setRectRadii(r, radii); 205 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } }; local 206 rr2.setRectRadii(rect, radii); 293 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; local 296 rr2.setRectRadii(rect, radii); 328 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local 331 rr2.setRectRadii(rect, radii); 338 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local 340 rr1.setRectRadii(rect, radii); 359 SkVector radii[4]; local 369 const SkVector radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 100, 100 } }; local [all...] |
RoundRectTest.cpp | 25 SkVector radii[4] = { local 29 rr.setRectRadii(r, radii); 31 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + 32 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= 66 static const SkVector radii[4] = { { 0, 1 }, { 2, 3 }, { 4, 5 }, { 6, 7 } }; local 83 r.setRectRadii(oooRects[i], radii); 100 r.setRectRadii(emptyRects[i], radii); 141 // This test doesn't hold if the radii will be rescaled by SkRRect 146 REPORTER_ASSERT(reporter, rquad[i] == rr.radii((SkRRect::Corner) i)); 150 SkVector radii[4] = { { l, t }, { r, t }, { r, b }, { l, b } } local 284 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; local 324 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local 338 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local 687 SkVector radii[4] = { { 0, SkIntToScalar(1) }, local [all...] |
DrawPathTest.cpp | 317 // This is a simplified version from the bug. RRect radii not properly scaled. 323 SkVector radii[4] = { local 327 rr.setRectRadii(r, radii); 332 // RRect radii not properly scaled. 338 SkVector radii[4] = { local 342 rr.setRectRadii(r, radii);
|
/external/skia/src/core/ |
SkRRect.cpp | 46 // TODO: assert that all the x&y radii are already W/2 & H/2 92 // If the left and (by equality check above) right radii are zero then it is a rect. 115 // radii is huge while the other is small, single precision math can completely 124 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { 133 if (!SkScalarsAreFinite(&radii[0].fX, 8)) { 138 memcpy(fRadii, radii, sizeof(fRadii)); 142 // Clamp negative radii to zero 146 // the radii is 0 the corner is square. However, the other radii 166 // Proportionally scale down all radii to fit. Find the minimum rati [all...] |
/external/skia/src/gpu/effects/ |
GrRRectEffect.cpp | 21 // The effects defined here only handle rrect radii >= kRadiusMin. 310 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; 317 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; 324 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX; 331 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; 338 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; 345 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX; 352 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX; 359 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX; 459 // half the time create a four-radii rrect [all...] |
/external/autotest/client/site_tests/firmware_TouchMTB/geometry/ |
two_farthest_clusters.py | 9 - get_radii_of_two_minimal_enclosing_circles(): Get the radii of the 65 """Get the radii of the two minimal enclosing circles from points.
|
/external/skia/tools/lua/ |
classify_rrect_clips.lua | 8 local x, y = rrect:radii(0) 21 local x, y = rrect:radii(i-1) 59 local x, y = rrect:radii(0)
|
/external/skia/bench/ |
BlurRoundRectBench.cpp | 89 // Same radii, much smaller rectangle 91 // Other radii options
|
/external/skia/src/utils/ |
SkDumpCanvas.cpp | 50 SkVector radii[4] = { local 51 rrect.radii(SkRRect::kUpperLeft_Corner), 52 rrect.radii(SkRRect::kUpperRight_Corner), 53 rrect.radii(SkRRect::kLowerRight_Corner), 54 rrect.radii(SkRRect::kLowerLeft_Corner), 57 radii[0].x(), radii[0].y(), 58 radii[1].x(), radii[1].y(), 59 radii[2].x(), radii[2].y() [all...] |
/external/ImageMagick/MagickCore/ |
paint.c | 564 gradient->radii.x=(double) MagickMax(image->columns,image->rows)/2.0; 565 gradient->radii.y=gradient->radii.x; 571 gradient->radii.x=(double) MagickMax(image->columns,image->rows)/2.0; 572 gradient->radii.y=gradient->radii.x; 576 gradient->radii.x=(double) (sqrt(image->columns*image->columns+ 578 gradient->radii.y=gradient->radii.x; 582 gradient->radii.x=(double) image->columns/2.0 [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/ |
DistanceInput.java | 31 * You have to option to use the shape radii
|
/external/skia/tools/debugger/ |
SkObjectParser.cpp | 303 mRRect->append(") radii: ("); 305 const SkVector& radii = rrect.radii((SkRRect::Corner) i); local 306 mRRect->appendScalar(radii.fX); 308 mRRect->appendScalar(radii.fY);
|
/external/ImageMagick/ImageMagick/script/ |
gradient.html | 112 <td><code>-define gradient:radii=<var>x</var>,<var>y</var></code></td> 113 <td>Specifies the x and y radii of the gradient. If the x radius and the y 157 radial gradient for rectangular shaped images of radii equal to half the 192 convert -size 256x128 -define gradient:radii=128,128 radial-gradient:black-white radial_gradient_maximum.png 198 convert -size 256x128 -define gradient:radii=64,64 radial-gradient:black-white radial_gradient_minimum.png 209 convert -size 256x128 -define gradient:radii=128,64 radial-gradient:black-white radial_gradient_ellipse.png 214 convert -size 256x256 -define gradient:radii=128,64 -define gradient:angle=45 radial-gradient:black-white radial_gradient_ellipse_angle45.png
|
/external/ImageMagick/www/ |
gradient.html | 116 <td><code>-define gradient:radii=<var>x</var>,<var>y</var></code></td> 117 <td>Specifies the x and y radii of the gradient. If the x radius and the y 161 radial gradient for rectangular shaped images of radii equal to half the 196 convert -size 256x128 -define gradient:radii=128,128 radial-gradient:black-white radial_gradient_maximum.png 202 convert -size 256x128 -define gradient:radii=64,64 radial-gradient:black-white radial_gradient_minimum.png 213 convert -size 256x128 -define gradient:radii=128,64 radial-gradient:black-white radial_gradient_ellipse.png 218 convert -size 256x256 -define gradient:radii=128,64 -define gradient:angle=45 radial-gradient:black-white radial_gradient_ellipse_angle45.png
|