Home
last modified time | relevance | path

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

123

/external/skia/tests/
DStrokerTest.cpp237 quad[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
238 quad[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
241 quad[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
242 quad[1].fY = r.nextRangeF(0, 500); in DEF_TEST()
245 quad[2].fX = r.nextRangeF(0, 500); in DEF_TEST()
246 quad[2].fY = r.nextRangeF(0, 500); in DEF_TEST()
251 p.setStrokeWidth(r.nextRangeF(0, 500)); in DEF_TEST()
289 cubic[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
290 cubic[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
293 cubic[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
[all …]
DPathOpsTightBoundsTest.cpp21 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
23 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
66 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
69 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
71 path.quadTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax), in testTightBoundsQuads()
72 ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
DPathOpsCubicLineIntersectionIdeas.cpp147 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
149 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
150 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
151 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)} in DEF_TEST()
154 double t = ran.nextRangeF(0, 1); in DEF_TEST()
DRTreeTest.cpp19 rect.fLeft = rand.nextRangeF(0, 1000); in random_rect()
20 rect.fRight = rand.nextRangeF(0, 1000); in random_rect()
21 rect.fTop = rand.nextRangeF(0, 1000); in random_rect()
22 rect.fBottom = rand.nextRangeF(0, 1000); in random_rect()
DPathOpsAngleIdeas.cpp583 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
584 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
585 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
589 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
590 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
616 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
617 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
618 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
622 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
623 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
DPathOpsAngleTest.cpp40 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
42 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
75 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
76 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
78 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
80 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
/external/skqp/tests/
DStrokerTest.cpp237 quad[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
238 quad[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
241 quad[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
242 quad[1].fY = r.nextRangeF(0, 500); in DEF_TEST()
245 quad[2].fX = r.nextRangeF(0, 500); in DEF_TEST()
246 quad[2].fY = r.nextRangeF(0, 500); in DEF_TEST()
251 p.setStrokeWidth(r.nextRangeF(0, 500)); in DEF_TEST()
289 cubic[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
290 cubic[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
293 cubic[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
[all …]
DPathOpsTightBoundsTest.cpp21 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
23 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
66 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
69 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
71 path.quadTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax), in testTightBoundsQuads()
72 ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
DPathOpsCubicLineIntersectionIdeas.cpp147 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
149 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
150 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
151 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)} in DEF_TEST()
154 double t = ran.nextRangeF(0, 1); in DEF_TEST()
DRTreeTest.cpp19 rect.fLeft = rand.nextRangeF(0, 1000); in random_rect()
20 rect.fRight = rand.nextRangeF(0, 1000); in random_rect()
21 rect.fTop = rand.nextRangeF(0, 1000); in random_rect()
22 rect.fBottom = rand.nextRangeF(0, 1000); in random_rect()
DPathOpsAngleIdeas.cpp583 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
584 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
585 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
589 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
590 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
616 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
617 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
618 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
622 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
623 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
DPathOpsAngleTest.cpp40 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
42 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
75 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
76 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
78 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
80 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
/external/skia/bench/
DRTreeBench.cpp84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
[all …]
DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup()
151 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onDelayedSetup()
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup()
153 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onDelayedSetup()
/external/skqp/bench/
DRTreeBench.cpp84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
[all …]
DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup()
151 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onDelayedSetup()
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup()
153 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onDelayedSetup()
/external/skia/gm/
Dbeziereffects.cpp174 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
175 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
176 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
178 SkScalar weight = rand.nextRangeF(0.f, 2.f); in onDraw()
378 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
379 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
380 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
Danimatedimageblurs.cpp86 fSize = rand->nextRangeF(10.0f, 60.f); in init()
87 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
88 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
89 fDir.fX = rand->nextRangeF(-1.0f, 1.0f); in init()
94 fBlurOffset = rand->nextRangeF(0.0f, kBlurMax); in init()
96 fSpeed = rand->nextRangeF(20.0f, 60.0f); in init()
Dmanypaths.cpp18 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color()
19 hsv[1] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
20 hsv[2] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
/external/skqp/gm/
Danimatedimageblurs.cpp86 fSize = rand->nextRangeF(10.0f, 60.f); in init()
87 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
88 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
89 fDir.fX = rand->nextRangeF(-1.0f, 1.0f); in init()
94 fBlurOffset = rand->nextRangeF(0.0f, kBlurMax); in init()
96 fSpeed = rand->nextRangeF(20.0f, 60.0f); in init()
Dbeziereffects.cpp179 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
180 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
181 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
183 SkScalar weight = rand.nextRangeF(0.f, 2.f); in onDraw()
395 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
396 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
397 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
Dmanypaths.cpp18 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color()
19 hsv[1] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
20 hsv[2] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
/external/skqp/samplecode/
DSampleHT.cpp54 fR = SkRect::MakeXYWH(rand.nextRangeF(0, 640), rand.nextRangeF(0, 480), in HTDrawable()
55 rand.nextRangeF(20, 200), rand.nextRangeF(20, 200)); in HTDrawable()
/external/skia/samplecode/
DSampleHT.cpp54 fR = SkRect::MakeXYWH(rand.nextRangeF(0, 640), rand.nextRangeF(0, 480), in HTDrawable()
55 rand.nextRangeF(20, 200), rand.nextRangeF(20, 200)); in HTDrawable()
/external/skqp/tools/
Drandom_parse_path.cpp78 SkScalar coord = rand->nextRangeF(0, 100); in MakeRandomParsePathPiece()
87 atom.appendScalar(rand->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()

123