Home
last modified time | relevance | path

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

/external/skia/gm/
Dbeziers.cpp18 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()
Dmixedxfermodes.cpp114 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()
Dvariedtext.cpp82 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()
Dimagemagnifier.cpp50 paint.setTextSize(rand.nextRangeScalar(0, 300)); in onDraw()
Dimageblur.cpp49 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); in onDraw()
/external/skia/bench/
DRectoriBench.cpp31 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()
DXfermodeBench.cpp48 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()
DPicturePlaybackBench.cpp176 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()
DGeometryBench.cpp54 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()
DGameBench.cpp173 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()
DPathBench.cpp244 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()
DChartBench.cpp23 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
/external/skia/experimental/nanomsg/
Dpicture_demo.cpp86 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/
DGrOvalEffect.cpp84 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()
DGrRRectEffect.cpp115 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()
DGrTextureDomain.cpp297 domain.fRight = random->nextRangeScalar(domain.fLeft, SK_Scalar1); in TestCreate()
299 domain.fBottom = random->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
DGrDashingEffect.cpp1278 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/
DSkRandom.h118 SkScalar nextRangeScalar(SkScalar min, SkScalar max) { in nextRangeScalar() function
/external/skia/samplecode/
DSampleChart.cpp19 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
/external/skia/tests/
DClipStackTest.cpp940 …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/
DGrTestUtils.cpp229 SkScalar miterLimit = random->nextRangeScalar(1.f, 5.f); in TestStrokeRec()
DGrContext.cpp1932 p.fX = random->nextRangeScalar(min, max); in random_point()
1933 p.fY = random->nextRangeScalar(min, max); in random_point()
/external/skia/src/effects/
DSkDisplacementMapEffect.cpp533 SkVector scale = SkVector::Make(random->nextRangeScalar(0, 100.0f), in TestCreate()
534 random->nextRangeScalar(0, 100.0f)); in TestCreate()
DSkPerlinNoiseShader.cpp611 SkScalar baseFrequencyX = random->nextRangeScalar(0.01f, in TestCreate()
613 SkScalar baseFrequencyY = random->nextRangeScalar(0.01f, in TestCreate()
DSkBlurMaskFilter.cpp1009 SkScalar w = random->nextRangeScalar(100.f, 1000.f); in TestCreate()
1010 SkScalar h = random->nextRangeScalar(100.f, 1000.f); in TestCreate()