/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 | 44 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 49 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 58 return min + SkScalarMul(rand.nextUScalar1(), max - min); in randRange() 73 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke() 78 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 | 143 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/gm/ |
D | hittestpath.cpp | 50 path.lineTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw() 51 path.quadTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw() 52 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw() 53 path.cubicTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw() 54 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw() 55 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw()
|
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 | 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() 88 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw() 89 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
|
D | points.cpp | 32 SkScalar y = rand->nextUScalar1() * 480; in fill_pts() 33 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
|
D | image.cpp | 217 SkScalar x = rand.nextUScalar1() * W; in drawIntoImage() 218 SkScalar y = rand.nextUScalar1() * H; in drawIntoImage() 219 SkScalar r = rand.nextUScalar1() * W / 2; in drawIntoImage()
|
/external/skia/bench/ |
D | FSRectBench.cpp | 32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw() 33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw() 34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw() 35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw()
|
D | PathBench.cpp | 185 path->quadTo(SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath() 186 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480)), in makePath() 187 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath() 188 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480))); in makePath() 206 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 208 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 598 SkScalar radius = rand.nextUScalar1() * 3; in onDraw() 599 r.fLeft = rand.nextUScalar1() * 300; in onDraw() 600 r.fTop = rand.nextUScalar1() * 300; in onDraw() 605 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 | 138 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw() 139 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
|
D | GeometryBench.cpp | 142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
|
/external/skia/src/effects/gradients/ |
D | SkTwoPointConicalGradient_gpu.cpp | 191 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate() 192 SkScalar radius1 = random->nextUScalar1(); in TestCreate() 196 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate() 480 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate() 485 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate() 699 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate() 704 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate() 707 SkScalar increase = random->nextUScalar1(); in TestCreate() 955 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate() 956 SkScalar radius1 = random->nextUScalar1() + 0.0001f; // make sure radius1 != 0 in TestCreate() [all …]
|
D | SkLinearGradient.cpp | 532 SkPoint points[] = {{random->nextUScalar1(), random->nextUScalar1()}, in TestCreate() 533 {random->nextUScalar1(), random->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/src/animator/ |
D | SkDisplayRandom.cpp | 48 SkScalar random = fRandom.nextUScalar1(); in getProperty()
|