/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);
|
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];
|
roundrects.cpp | 290 // strokes and radii 292 SkScalar radii[][2] = { variable 305 circleRect.setRectXY(rect, radii[i][0], radii[i][1]);
|
shapes.cpp | 46 SkVector radii[4] = {{4, 6}, {12, 8}, {24, 16}, {32, 48}}; local 47 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii);
|
skbug_257.cpp | 101 SkVector radii[4] = {{40, 40}, {40, 40}, {40, 40}, {40, 40}}; local 102 rrect.setRectRadii(rect, radii);
|
/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);
|
/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/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/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/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...] |
SkParsePath.cpp | 167 SkPoint radii; local 169 if ((data = find_points(data, &radii, 1, false, nullptr)) 178 path.arcTo(radii, angle, (SkPath::ArcSize) SkToBool(largeArc),
|
/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)
|
/frameworks/base/graphics/java/android/graphics/ |
Path.java | 637 * @param radii Array of 8 values, 4 pairs of [X,Y] radii 640 public void addRoundRect(RectF rect, float[] radii, Direction dir) { 644 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); 652 * @param radii Array of 8 values, 4 pairs of [X,Y] radii 655 public void addRoundRect(float left, float top, float right, float bottom, float[] radii, 657 if (radii.length < 8) { 658 throw new ArrayIndexOutOfBoundsException("radii[] needs 8 values"); 661 native_addRoundRect(mNativePath, left, top, right, bottom, radii, dir.nativeInt) [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/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);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
PaintDrawableTest.java | 82 float[] radii = { local 98 paintDrawable.setCornerRadii(radii);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ShadowCardDrag.java | 158 float radii[] = new float[] {r, r, r, r, r, r, r, r}; local 159 mShapes.add(new RoundRectShape(radii, null, null));
|