Home
last modified time | relevance | path

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

12

/external/skqp/samplecode/
DSampleFlutterAnimate.cpp84 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
85 fChars[i].fStartRotation = fRand.nextF(); in initChars()
86 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
DSamplePathText.cpp126 fPosition = {rand.nextF() * w, rand.nextF() * h}; in reset()
127 t = pow(rand.nextF(), 100); in reset()
130 fSpin = rand.nextF() * 360; in reset()
155 SkScalar t = pow(fRand.nextF(), 3); in reset()
159 SkScalar t = pow(fRand.nextF(), 25); in reset()
369 const double offsetAngle = (rand.nextF() * 2 - 1) * kMaxOffsetAngle; in reset()
370 const double intensity = pow(2, rand.nextF() * 2 - 1); in reset()
378 fOffsets[i] = rand.nextF() * 2 * SK_ScalarPI; in reset()
/external/skia/samplecode/
DSampleFlutterAnimate.cpp84 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
85 fChars[i].fStartRotation = fRand.nextF(); in initChars()
86 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
DSamplePathText.cpp126 fPosition = {rand.nextF() * w, rand.nextF() * h}; in reset()
127 t = pow(rand.nextF(), 100); in reset()
130 fSpin = rand.nextF() * 360; in reset()
155 SkScalar t = pow(fRand.nextF(), 3); in reset()
159 SkScalar t = pow(fRand.nextF(), 25); in reset()
369 const double offsetAngle = (rand.nextF() * 2 - 1) * kMaxOffsetAngle; in reset()
370 const double intensity = pow(2, rand.nextF() * 2 - 1); in reset()
378 fOffsets[i] = rand.nextF() * 2 * SK_ScalarPI; in reset()
/external/skqp/bench/
DPathBench.cpp1083 fPath.moveTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1084 fPath.lineTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1085 fPath.quadTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1086 fPath.conicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench()
1087 rand.nextF()*10); in TightBoundsBench()
1088 fPath.cubicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench()
1089 rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
DPathTextBench.cpp62 float t0 = pow(rand.nextF(), 100); in onDelayedSetup()
66 float t1 = rand.nextF(), t2 = rand.nextF(); in onDelayedSetup()
71 fXforms[i].preRotate(rand.nextF() * 360); in onDelayedSetup()
DShapesBench.cpp153 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup()
154 0.5f * pad + rand.nextF() * (kBenchHeight - pad)); in onDelayedSetup()
155 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup()
/external/skia/bench/
DPathBench.cpp1083 fPath.moveTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1084 fPath.lineTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1085 fPath.quadTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1086 fPath.conicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench()
1087 rand.nextF()*10); in TightBoundsBench()
1088 fPath.cubicTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, in TightBoundsBench()
1089 rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
DPathTextBench.cpp62 float t0 = pow(rand.nextF(), 100); in onDelayedSetup()
66 float t1 = rand.nextF(), t2 = rand.nextF(); in onDelayedSetup()
71 fXforms[i].preRotate(rand.nextF() * 360); in onDelayedSetup()
DShapesBench.cpp153 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup()
154 0.5f * pad + rand.nextF() * (kBenchHeight - pad)); in onDelayedSetup()
155 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup()
/external/skqp/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()
Dstringart.cpp127 SkScalar x = rand.nextF() * kWidth;
128 SkScalar y = rand.nextF() * kHeight;
Ddrawminibitmaprect.cpp105 canvas->rotate(random.nextF() * 10.f); in onDraw()
108 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.cpp138 canvas->rotate(random.nextF() * 45.f); in onDraw()
141 canvas->rotate(-random.nextF() * 45.f); in onDraw()
/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()
Dstringart.cpp127 SkScalar x = rand.nextF() * kWidth;
128 SkScalar y = rand.nextF() * kHeight;
Ddrawminibitmaprect.cpp105 canvas->rotate(random.nextF() * 10.f); in onDraw()
108 canvas->rotate(-random.nextF() * 10.f); in onDraw()
Dtextblobmixedsizes.cpp137 canvas->rotate(random.nextF() * 45.f); in onDraw()
140 canvas->rotate(-random.nextF() * 45.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()
/external/skia/tests/
DSamplePatternDictionaryTest.cpp27 pattern[i] = SkPoint::Make(rand->nextF(), rand->nextF()); in make_random_sample_pattern()
DRandomTest.cpp77 float f = rand.nextF(); in test_random_float()
85 float f = rand.nextF(); in test_random_float()
/external/skqp/include/utils/
DSkRandom.h51 float nextF() { in nextF() function
61 return min + this->nextF() * (max - min); in nextRangeF()
/external/skia/include/utils/
DSkRandom.h51 float nextF() { in nextF() function
61 return min + this->nextF() * (max - min); in nextRangeF()
/external/skqp/tests/
DRandomTest.cpp77 float f = rand.nextF(); in test_random_float()
85 float f = rand.nextF(); in test_random_float()

12