/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 | 589 SkScalar rot0 = rand.nextRangeF(-180, 180); in test_matrix_decomposition() 590 SkScalar sx = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition() 591 SkScalar sy = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition() 592 SkScalar rot1 = rand.nextRangeF(-180, 180); in test_matrix_decomposition() 673 randTriples[i] = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous() 679 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 onPreDraw() 152 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onPreDraw() 153 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onPreDraw() 154 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onPreDraw()
|
D | HairlinePathBench.cpp | 165 float weight = randWeight.nextRangeF(0.0f, 2.0f); in makePath()
|
/external/skia/gm/ |
D | beziereffects.cpp | 150 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 151 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 152 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 153 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw() 298 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 299 {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() 302 SkScalar weight = rand.nextRangeF(0.f, 2.f); in onDraw() 539 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw() 540 {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 | 132 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in genColor() 133 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in genColor() 134 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in genColor()
|
/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 | SamplePathFuzz.cpp | 282 SkScalar width = fRand.nextRangeF(0, 10); in makePaint() 552 scalar = fRand.nextRangeF(fFloatMin, fFloatMax); in makeScalar()
|
/external/skia/src/gpu/effects/ |
D | GrOvalEffect.cpp | 86 SkScalar radius = random->nextRangeF(0.f, 1000.f); in TestCreate() 268 SkScalar rx = random->nextRangeF(0.f, 1000.f); in TestCreate() 269 SkScalar ry = random->nextRangeF(0.f, 1000.f); in TestCreate()
|
D | GrRRectEffect.cpp | 117 SkScalar r = random->nextRangeF(kRadiusMin, 9.f); in TestCreate() 455 r[SkRRect::kUpperLeft_Corner].fX = random->nextRangeF(kRadiusMin, 9.f); in TestCreate() 458 r[SkRRect::kUpperLeft_Corner].fY = random->nextRangeF(kRadiusMin, 9.f); in TestCreate() 464 r[SkRRect::kLowerRight_Corner].fX = random->nextRangeF(kRadiusMin, 9.f); in TestCreate() 465 r[SkRRect::kLowerRight_Corner].fY = random->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 | 827 float sigma = random->nextRangeF(3,8); in TestCreate() 828 float width = random->nextRangeF(200,300); in TestCreate() 829 float height = random->nextRangeF(200,300); in TestCreate() 1011 SkScalar r = random->nextRangeF(1.f, 9.f); in TestCreate() 1012 SkScalar sigma = random->nextRangeF(1.f,10.f); in TestCreate()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointConicalGradient_gpu.cpp | 491 radius2 = random->nextRangeF(0.f, diffLen); in TestCreate() 1207 radius2 = radius1 + random->nextRangeF(0.f, diffLen); in TestCreate()
|