/external/skia/bench/ |
D | PathBench.cpp | 1089 fPath.moveTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench() 1090 fPath.lineTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench() 1091 fPath.quadTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100); in TightBoundsBench() 1092 fPath.conicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench() 1093 rand.nextF()*10); in TightBoundsBench() 1094 fPath.cubicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench() 1095 rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
|
D | ShapesBench.cpp | 154 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup() 155 0.5f * pad + rand.nextF() * (kBenchHeight - pad)); in onDelayedSetup() 156 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup()
|
D | Matrix44Bench.cpp | 266 fM1.setFloat(x,y, rand.nextF()); in SetConcatMatrix44Bench() 267 fM2.setFloat(x,y, rand.nextF()); in SetConcatMatrix44Bench()
|
/external/skia/samplecode/ |
D | SamplePathText.cpp | 100 fPosition = {rand.nextF() * w, rand.nextF() * h}; in reset() 101 t = pow(rand.nextF(), 100); in reset() 104 fSpin = rand.nextF() * 360; in reset() 129 SkScalar t = pow(fRand.nextF(), 3); in reset() 133 SkScalar t = pow(fRand.nextF(), 25); in reset() 343 const double offsetAngle = (rand.nextF() * 2 - 1) * kMaxOffsetAngle; in reset() 344 const double intensity = pow(2, rand.nextF() * 2 - 1); in reset() 352 fOffsets[i] = rand.nextF() * 2 * SK_ScalarPI; in reset()
|
D | SamplePathFuzz.cpp | 198 angle = fRand.nextF(); in makeAngle()
|
/external/skia/gm/ |
D | manypaths.cpp | 51 SkScalar x = rand.nextF() * kWidth - 100; in onDraw() 52 SkScalar y = rand.nextF() * kHeight - 100; in onDraw() 53 SkScalar w = rand.nextF() * 200; in onDraw()
|
D | drawminibitmaprect.cpp | 108 canvas->rotate(random.nextF() * 10.f); in onDraw() 111 canvas->rotate(-random.nextF() * 10.f); in onDraw()
|
D | shapes.cpp | 133 float dx = (rand.nextF() - 0.5f) * (outer.rect().width() - s * inner.rect().width()); in drawShapes() 134 float dy = (rand.nextF() - 0.5f) * (outer.rect().height() - s * inner.rect().height()); in drawShapes()
|
D | textblobmixedsizes.cpp | 147 canvas->rotate(random.nextF() * 45.f); in onDraw() 150 canvas->rotate(-random.nextF() * 45.f); in onDraw()
|
/external/skia/include/utils/ |
D | SkRandom.h | 58 float nextF() { in nextF() function 68 return min + this->nextF() * (max - min); in nextRangeF()
|
/external/skia/tests/ |
D | RandomTest.cpp | 77 float f = rand.nextF(); in test_random_float() 85 float f = rand.nextF(); in test_random_float()
|
D | GLProgramsTest.cpp | 177 bool terminate = (1 == maxLevels) || (d->fRandom->nextF() < terminateProbability); in create_random_proc_tree() 201 if (d->fRandom->nextF() < 0.5f) { in create_random_proc_tree() 218 if (d->fRandom->nextF() < procTreeProbability) { in set_random_color_coverage_stages()
|
D | PathTest.cpp | 4710 path->lineTo(rand.nextF()*100, rand.nextF()*100); in rand_path() 4713 path->quadTo(rand.nextF()*100, rand.nextF()*100, in rand_path() 4714 rand.nextF()*100, rand.nextF()*100); in rand_path() 4717 path->conicTo(rand.nextF()*100, rand.nextF()*100, in rand_path() 4718 rand.nextF()*100, rand.nextF()*100, rand.nextF()*10); in rand_path() 4721 path->cubicTo(rand.nextF()*100, rand.nextF()*100, in rand_path() 4722 rand.nextF()*100, rand.nextF()*100, in rand_path() 4723 rand.nextF()*100, rand.nextF()*100); in rand_path()
|
/external/skia/src/effects/ |
D | SkArithmeticImageFilter.cpp | 313 float k1 = d->fRandom->nextF(); in TestCreate() 314 float k2 = d->fRandom->nextF(); in TestCreate() 315 float k3 = d->fRandom->nextF(); in TestCreate() 316 float k4 = d->fRandom->nextF(); in TestCreate()
|
/external/skia/src/gpu/ops/ |
D | GrDashOp.cpp | 1206 pts[0].fY = random->nextF() * 10.f; in DRAW_OP_TEST_DEFINE() 1208 pts[1].fY = random->nextF() * 10.f; in DRAW_OP_TEST_DEFINE() 1211 pts[0].fX = random->nextF() * 10.f; in DRAW_OP_TEST_DEFINE() 1213 pts[1].fX = random->nextF() * 10.f; in DRAW_OP_TEST_DEFINE()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | RandomDataImpl.java | 597 public double nextF(double numeratorDf, double denominatorDf) throws MathException {
|
/external/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 296 d->fRandom->nextF(), in TestCreate()
|