/external/skia/tests/ |
D | StrokerTest.cpp | 220 quad[0].fX = r.nextRangeF(0, 500); in DEF_TEST() 221 quad[0].fY = r.nextRangeF(0, 500); in DEF_TEST() 224 quad[1].fX = r.nextRangeF(0, 500); in DEF_TEST() 225 quad[1].fY = r.nextRangeF(0, 500); in DEF_TEST() 228 quad[2].fX = r.nextRangeF(0, 500); in DEF_TEST() 229 quad[2].fY = r.nextRangeF(0, 500); in DEF_TEST() 234 p.setStrokeWidth(r.nextRangeF(0, 500)); in DEF_TEST() 272 cubic[0].fX = r.nextRangeF(0, 500); in DEF_TEST() 273 cubic[0].fY = r.nextRangeF(0, 500); in DEF_TEST() 276 cubic[1].fX = r.nextRangeF(0, 500); in DEF_TEST() [all …]
|
D | PathOpsTightBoundsTest.cpp | 21 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines() 23 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines() 66 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads() 69 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads() 71 path.quadTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax), in testTightBoundsQuads() 72 ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
|
D | PathOpsCubicLineIntersectionIdeas.cpp | 147 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST() 149 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 150 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 151 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)} in DEF_TEST() 154 double t = ran.nextRangeF(0, 1); in DEF_TEST()
|
D | RTreeTest.cpp | 19 rect.fLeft = rand.nextRangeF(0, 1000); in random_rect() 20 rect.fRight = rand.nextRangeF(0, 1000); in random_rect() 21 rect.fTop = rand.nextRangeF(0, 1000); in random_rect() 22 rect.fBottom = rand.nextRangeF(0, 1000); in random_rect()
|
D | PathOpsAngleIdeas.cpp | 576 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST() 577 SkDQuad quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 578 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST() 582 SkDQuad quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 583 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST() 606 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST() 607 SkDQuad quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 608 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST() 612 SkDQuad quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST() 613 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
|
D | PathOpsAngleTest.cpp | 40 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST() 42 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST() 75 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST() 76 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST() 78 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST() 80 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
|
D | MatrixTest.cpp | 596 SkScalar rot0 = rand.nextRangeF(-180, 180); in test_matrix_decomposition() 597 SkScalar sx = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition() 598 SkScalar sy = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition() 599 SkScalar rot1 = rand.nextRangeF(-180, 180); in test_matrix_decomposition() 686 randTriples[i] = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous() 692 mats[i].set(j, rand.nextRangeF(-3000.f, 3000.f)); in test_matrix_homogeneous()
|
/external/skia/bench/ |
D | RTreeBench.cpp | 84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw() 86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw() 102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects() 110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects() 117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() 118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects() [all …]
|
D | MatrixBench.cpp | 151 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup() 152 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onDelayedSetup() 153 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup() 154 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onDelayedSetup()
|
D | HairlinePathBench.cpp | 166 float weight = randWeight.nextRangeF(0.0f, 2.0f); in makePath()
|
/external/skia/gm/ |
D | beziereffects.cpp | 157 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 158 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 159 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 160 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw() 300 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 301 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 302 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw() 304 SkScalar weight = rand.nextRangeF(0.f, 2.f); in onDraw() 538 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 539 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() [all …]
|
D | ovals.cpp | 131 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in genColor() 132 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in genColor() 133 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in genColor()
|
D | roundrects.cpp | 23 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color() 24 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in gen_color() 25 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in gen_color()
|
/external/skia/samplecode/ |
D | SampleHT.cpp | 54 fR = SkRect::MakeXYWH(rand.nextRangeF(0, 640), rand.nextRangeF(0, 480), in HTDrawable() 55 rand.nextRangeF(20, 200), rand.nextRangeF(20, 200)); in HTDrawable()
|
D | SampleAnimatedText.cpp | 138 fRotation += (1.0f + gRand.nextRangeF(-0.1f, 0.1f)); in onAnimate() 139 fScale += (fScaleInc + gRand.nextRangeF(-0.025f, 0.025f)); in onAnimate()
|
D | SamplePathFuzz.cpp | 283 SkScalar width = fRand.nextRangeF(0, 10); in makePaint() 553 scalar = fRand.nextRangeF(fFloatMin, fFloatMax); in makeScalar()
|
/external/skia/tools/ |
D | random_parse_path.cpp | 78 SkScalar coord = rand->nextRangeF(0, 100); in MakeRandomParsePathPiece() 87 atom.appendScalar(rand->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
|
/external/skia/fuzz/ |
D | FuzzParsePath.cpp | 83 SkScalar coord = fuzz->nextRangeF(0, 100); in MakeRandomParsePathPiece() 92 atom.appendScalar(fuzz->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
|
D | Fuzz.h | 31 float nextRangeF(float min, float max);
|
D | fuzz.cpp | 414 float Fuzz::nextRangeF(float min, float max) { in nextRangeF() function in Fuzz
|
/external/skia/src/gpu/effects/ |
D | GrOvalEffect.cpp | 84 SkScalar radius = d->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 251 SkScalar rx = d->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 252 SkScalar ry = d->fRandom->nextRangeF(0.f, 1000.f); in TestCreate()
|
D | GrRRectEffect.cpp | 116 SkScalar r = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate() 451 r[SkRRect::kUpperLeft_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate() 454 r[SkRRect::kUpperLeft_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate() 460 r[SkRRect::kLowerRight_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate() 461 r[SkRRect::kLowerRight_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
|
/external/skia/include/utils/ |
D | SkRandom.h | 66 float nextRangeF(float min, float max) { in nextRangeF() function
|
/external/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 838 float sigma = d->fRandom->nextRangeF(3,8); in TestCreate() 839 float width = d->fRandom->nextRangeF(200,300); in TestCreate() 840 float height = d->fRandom->nextRangeF(200,300); in TestCreate() 1037 SkScalar r = d->fRandom->nextRangeF(1.f, 9.f); in TestCreate() 1038 SkScalar sigma = d->fRandom->nextRangeF(1.f,10.f); in TestCreate()
|
D | GrCircleBlurFragmentProcessor.cpp | 263 SkScalar sigma = d->fRandom->nextRangeF(1.f,10.f); in TestCreate()
|