Home
last modified time | relevance | path

Searched refs:nextF (Results 1 – 17 of 17) sorted by relevance

/external/skia/bench/
DPathBench.cpp1089 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()
DShapesBench.cpp154 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()
DMatrix44Bench.cpp266 fM1.setFloat(x,y, rand.nextF()); in SetConcatMatrix44Bench()
267 fM2.setFloat(x,y, rand.nextF()); in SetConcatMatrix44Bench()
/external/skia/samplecode/
DSamplePathText.cpp100 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()
DSamplePathFuzz.cpp198 angle = fRand.nextF(); in makeAngle()
/external/skia/gm/
Dmanypaths.cpp51 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()
Ddrawminibitmaprect.cpp108 canvas->rotate(random.nextF() * 10.f); in onDraw()
111 canvas->rotate(-random.nextF() * 10.f); in onDraw()
Dshapes.cpp133 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()
Dtextblobmixedsizes.cpp147 canvas->rotate(random.nextF() * 45.f); in onDraw()
150 canvas->rotate(-random.nextF() * 45.f); in onDraw()
/external/skia/include/utils/
DSkRandom.h58 float nextF() { in nextF() function
68 return min + this->nextF() * (max - min); in nextRangeF()
/external/skia/tests/
DRandomTest.cpp77 float f = rand.nextF(); in test_random_float()
85 float f = rand.nextF(); in test_random_float()
DGLProgramsTest.cpp177 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()
DPathTest.cpp4710 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/
DSkArithmeticImageFilter.cpp313 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/
DGrDashOp.cpp1206 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/
DRandomDataImpl.java597 public double nextF(double numeratorDf, double denominatorDf) throws MathException {
/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp296 d->fRandom->nextF(), in TestCreate()