/external/skia/gm/ |
D | beziers.cpp | 18 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); in rnd_quad() 20 p->quadTo(rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(0, H), in rnd_quad() 21 rand.nextRangeScalar(0, W), rand.nextRangeScalar(H / 4, H)); in rnd_quad() 24 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad() 31 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); in rnd_cubic() 33 p->cubicTo(rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(0, H), in rnd_cubic() 34 rand.nextRangeScalar(0, W), rand.nextRangeScalar(H / 4, H), in rnd_cubic() 35 rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(H / 4, H)); in rnd_cubic() 38 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_cubic()
|
D | mixedxfermodes.cpp | 114 SkScalar s = random.nextRangeScalar(SK_Scalar1 / 8, SK_Scalar1) * maxScale; in onDraw() 115 SkScalar r = random.nextRangeScalar(0, SkIntToScalar(360)); in onDraw() 116 SkScalar dx = random.nextRangeScalar(0, SkIntToScalar(size.fWidth)); in onDraw() 117 SkScalar dy = random.nextRangeScalar(0, SkIntToScalar(size.fHeight)); in onDraw()
|
D | variedtext.cpp | 82 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); in onOnceBeforeDraw() 101 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw() 102 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
|
D | imagemagnifier.cpp | 50 paint.setTextSize(rand.nextRangeScalar(0, 300)); in onDraw()
|
D | imageblur.cpp | 49 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); in onDraw()
|
/external/skia/bench/ |
D | RectoriBench.cpp | 31 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw() 32 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw() 34 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw() 35 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
|
D | XfermodeBench.cpp | 48 paint.setTextSize(random.nextRangeScalar(12, 96)); in onDraw() 49 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth), in onDraw() 50 y = random.nextRangeScalar(0, (SkScalar)size.fHeight); in onDraw() 56 SkScalar w = random.nextRangeScalar(50, 100); in onDraw() 57 SkScalar h = random.nextRangeScalar(50, 100); in onDraw()
|
D | PicturePlaybackBench.cpp | 176 SkScalar x = rand.nextRangeScalar(0, 1024), in onPreDraw() 177 y = rand.nextRangeScalar(0, 1024), in onPreDraw() 178 w = rand.nextRangeScalar(0, 128), in onPreDraw() 179 h = rand.nextRangeScalar(0, 128); in onPreDraw() 198 case kRandom: x = rand.nextRangeScalar(0, 768); in onDraw() 199 y = rand.nextRangeScalar(0, 768); in onDraw()
|
D | GeometryBench.cpp | 54 SkScalar x = rand.nextRangeScalar(min, max); in onPreDraw() 55 SkScalar y = rand.nextRangeScalar(min, max); in onPreDraw() 56 SkScalar w = rand.nextRangeScalar(min, max); in onPreDraw() 57 SkScalar h = rand.nextRangeScalar(min, max); in onPreDraw()
|
D | GameBench.cpp | 173 fSaved[fNumSaved][0] = transRand.nextRangeScalar(0.0f, maxTransX); in onDraw() 174 fSaved[fNumSaved][1] = transRand.nextRangeScalar(0.0f, maxTransY); in onDraw() 184 fSaved[fNumSaved][2] = scaleRand.nextRangeScalar(0.5f, 1.5f); in onDraw() 187 fSaved[fNumSaved][2] = rotRand.nextRangeScalar(0.0f, 360.0f); in onDraw()
|
D | PathBench.cpp | 244 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData() 245 fRandom.nextRangeScalar(bounds->fTop, bounds->fBottom)); in createData() 778 size.fWidth = rand.nextRangeScalar(kQueryMin.fWidth, kQueryMax.fWidth); in onPreDraw() 779 size.fHeight = rand.nextRangeScalar(kQueryMin.fHeight, kQueryMax.fHeight); in onPreDraw() 780 xy.fX = rand.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth); in onPreDraw() 781 xy.fY = rand.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight); in onPreDraw()
|
D | ChartBench.cpp | 23 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
|
/external/skia/experimental/nanomsg/ |
D | picture_demo.cpp | 86 SkScalar r = rand.nextRangeScalar(0, picture->cullRect().width()), in client() 87 b = rand.nextRangeScalar(0, picture->cullRect().height()), in client() 88 l = rand.nextRangeScalar(0, r), in client() 89 t = rand.nextRangeScalar(0, b); in client() 92 header.matrix.postRotate(rand.nextRangeScalar(-25, 25)); in client()
|
/external/skia/src/gpu/effects/ |
D | GrOvalEffect.cpp | 84 center.fX = random->nextRangeScalar(0.f, 1000.f); in TestCreate() 85 center.fY = random->nextRangeScalar(0.f, 1000.f); in TestCreate() 266 center.fX = random->nextRangeScalar(0.f, 1000.f); in TestCreate() 267 center.fY = random->nextRangeScalar(0.f, 1000.f); in TestCreate()
|
D | GrRRectEffect.cpp | 115 SkScalar w = random->nextRangeScalar(20.f, 1000.f); in TestCreate() 116 SkScalar h = random->nextRangeScalar(20.f, 1000.f); in TestCreate() 452 SkScalar w = random->nextRangeScalar(20.f, 1000.f); in TestCreate() 453 SkScalar h = random->nextRangeScalar(20.f, 1000.f); in TestCreate()
|
D | GrTextureDomain.cpp | 297 domain.fRight = random->nextRangeScalar(domain.fLeft, SK_Scalar1); in TestCreate() 299 domain.fBottom = random->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
|
D | GrDashingEffect.cpp | 1278 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in BATCH_TEST_DEFINE() 1279 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in BATCH_TEST_DEFINE() 1283 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in BATCH_TEST_DEFINE() 1286 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in BATCH_TEST_DEFINE() 1293 SkScalar phase = random->nextRangeScalar(0, intervals[0] + intervals[1]); in BATCH_TEST_DEFINE()
|
/external/skia/include/utils/ |
D | SkRandom.h | 118 SkScalar nextRangeScalar(SkScalar min, SkScalar max) { in nextRangeScalar() function
|
/external/skia/samplecode/ |
D | SampleChart.cpp | 19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
|
/external/skia/tests/ |
D | ClipStackTest.cpp | 940 …SkScalarFloorToScalar(SkScalarMul(kBounds.width(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSiz… in test_reduced_clip_stack() 941 …SkScalarFloorToScalar(SkScalarMul(kBounds.height(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSi… in test_reduced_clip_stack() 943 …SkPoint xy = {SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth)… in test_reduced_clip_stack() 944 … SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight))}; in test_reduced_clip_stack()
|
/external/skia/src/gpu/ |
D | GrTestUtils.cpp | 229 SkScalar miterLimit = random->nextRangeScalar(1.f, 5.f); in TestStrokeRec()
|
D | GrContext.cpp | 1932 p.fX = random->nextRangeScalar(min, max); in random_point() 1933 p.fY = random->nextRangeScalar(min, max); in random_point()
|
/external/skia/src/effects/ |
D | SkDisplacementMapEffect.cpp | 533 SkVector scale = SkVector::Make(random->nextRangeScalar(0, 100.0f), in TestCreate() 534 random->nextRangeScalar(0, 100.0f)); in TestCreate()
|
D | SkPerlinNoiseShader.cpp | 611 SkScalar baseFrequencyX = random->nextRangeScalar(0.01f, in TestCreate() 613 SkScalar baseFrequencyY = random->nextRangeScalar(0.01f, in TestCreate()
|
D | SkBlurMaskFilter.cpp | 1009 SkScalar w = random->nextRangeScalar(100.f, 1000.f); in TestCreate() 1010 SkScalar h = random->nextRangeScalar(100.f, 1000.f); in TestCreate()
|