/external/skqp/samplecode/ |
D | SampleFlutterAnimate.cpp | 84 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()
|
D | SamplePathText.cpp | 126 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/ |
D | SampleFlutterAnimate.cpp | 84 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()
|
D | SamplePathText.cpp | 126 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/ |
D | PathBench.cpp | 1083 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()
|
D | PathTextBench.cpp | 62 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()
|
D | ShapesBench.cpp | 153 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/ |
D | PathBench.cpp | 1083 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()
|
D | PathTextBench.cpp | 62 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()
|
D | ShapesBench.cpp | 153 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/ |
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 | stringart.cpp | 127 SkScalar x = rand.nextF() * kWidth; 128 SkScalar y = rand.nextF() * kHeight;
|
D | drawminibitmaprect.cpp | 105 canvas->rotate(random.nextF() * 10.f); in onDraw() 108 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 | 138 canvas->rotate(random.nextF() * 45.f); in onDraw() 141 canvas->rotate(-random.nextF() * 45.f); in onDraw()
|
/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 | stringart.cpp | 127 SkScalar x = rand.nextF() * kWidth; 128 SkScalar y = rand.nextF() * kHeight;
|
D | drawminibitmaprect.cpp | 105 canvas->rotate(random.nextF() * 10.f); in onDraw() 108 canvas->rotate(-random.nextF() * 10.f); in onDraw()
|
D | textblobmixedsizes.cpp | 137 canvas->rotate(random.nextF() * 45.f); in onDraw() 140 canvas->rotate(-random.nextF() * 45.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()
|
/external/skia/tests/ |
D | SamplePatternDictionaryTest.cpp | 27 pattern[i] = SkPoint::Make(rand->nextF(), rand->nextF()); in make_random_sample_pattern()
|
D | RandomTest.cpp | 77 float f = rand.nextF(); in test_random_float() 85 float f = rand.nextF(); in test_random_float()
|
/external/skqp/include/utils/ |
D | SkRandom.h | 51 float nextF() { in nextF() function 61 return min + this->nextF() * (max - min); in nextRangeF()
|
/external/skia/include/utils/ |
D | SkRandom.h | 51 float nextF() { in nextF() function 61 return min + this->nextF() * (max - min); in nextRangeF()
|
/external/skqp/tests/ |
D | RandomTest.cpp | 77 float f = rand.nextF(); in test_random_float() 85 float f = rand.nextF(); in test_random_float()
|