/external/skia/samplecode/ |
D | SampleHairCurves.cpp | 44 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 45 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 46 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 47 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent() 66 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 67 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 68 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 84 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 85 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 86 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() [all …]
|
D | SampleClip.cpp | 45 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 50 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 59 return min + SkScalarMul(rand.nextUScalar1(), max - min); in randRange() 74 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke() 79 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
|
D | SamplePoints.cpp | 44 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
D | SampleText.cpp | 106 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
D | SampleHairline.cpp | 36 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts() 37 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
|
D | SampleManyRects.cpp | 53 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
|
/external/skia/bench/ |
D | FSRectBench.cpp | 32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup() 35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
|
D | PathBench.cpp | 186 path->quadTo(SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath() 187 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480)), in makePath() 188 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath() 189 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480))); in makePath() 207 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 209 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 599 SkScalar radius = rand.nextUScalar1() * 3; in onDraw() 600 r.fLeft = rand.nextUScalar1() * 300; in onDraw() 601 r.fTop = rand.nextUScalar1() * 300; in onDraw() 606 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw() [all …]
|
D | ShaderMaskBench.cpp | 73 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw() 74 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw() 80 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw() 81 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
|
D | LineBench.cpp | 36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
|
D | MatrixConvolutionBench.cpp | 44 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 45 rand.nextUScalar1() * 400); in onDraw()
|
D | MorphologyBench.cpp | 61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 62 rand.nextUScalar1() * 400); in onDraw()
|
D | BlurBench.cpp | 64 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 65 rand.nextUScalar1() * 400); in onDraw()
|
D | XfermodeBench.cpp | 59 random.nextUScalar1() * (size.fWidth - w), in onDraw() 60 random.nextUScalar1() * (size.fHeight - h), in onDraw()
|
D | TextBench.cpp | 142 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw() 143 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
|
D | GeometryBench.cpp | 142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
|
/external/skia/gm/ |
D | strokerects.cpp | 38 SkScalar x = rand.nextUScalar1() * W; in rnd_rect() 39 SkScalar y = rand.nextUScalar1() * H; in rnd_rect() 40 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect() 41 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
|
D | points.cpp | 32 SkScalar y = rand->nextUScalar1() * 480; in fill_pts() 33 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
|
D | strokes.cpp | 22 SkScalar x = rand.nextUScalar1() * W; in rnd_rect() 23 SkScalar y = rand.nextUScalar1() * H; in rnd_rect() 24 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect() 25 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect() 278 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw() 279 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointConicalGradient_gpu.cpp | 189 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() 190 SkScalar radius1 = d->fRandom->nextUScalar1(); in TestCreate() 194 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate() 473 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() 478 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate() 684 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() 689 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate() 692 SkScalar increase = d->fRandom->nextUScalar1(); in TestCreate() 933 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() 934 SkScalar radius1 = d->fRandom->nextUScalar1() + 0.0001f; // make sure radius1 != 0 in TestCreate() [all …]
|
D | SkRadialGradient.cpp | 307 SkPoint center = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate() 308 SkScalar radius = d->fRandom->nextUScalar1(); in TestCreate()
|
D | SkSweepGradient.cpp | 186 SkPoint center = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
|
/external/skia/include/utils/ |
D | SkRandom.h | 113 SkScalar nextUScalar1() { return SkFixedToScalar(this->nextUFixed1()); } in nextUScalar1() function 119 return this->nextUScalar1() * (max - min) + min; in nextRangeScalar() 135 return this->nextUScalar1() <= fractionTrue; in nextBiasedBool()
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 60 1, rand.nextUScalar1(), rand.nextUScalar1(), rand.nextUScalar1() in DEF_TEST() 70 c4.fA = rand.nextUScalar1(); in DEF_TEST()
|
/external/skia/src/animator/ |
D | SkDisplayRandom.cpp | 48 SkScalar random = fRandom.nextUScalar1(); in getProperty()
|