Home
last modified time | relevance | path

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

12345678910

/third_party/flutter/skia/tests/
DPathOpsTightBoundsTest.cpp15 SkRandom ran; in testTightBoundsLines() local
18 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
20 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
21 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()
25 if (ran.nextBool()) { in testTightBoundsLines()
50 SkRandom ran; in testTightBoundsQuads() local
63 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
65 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
66 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
[all …]
DPathOpsCubicLineIntersectionIdeas.cpp140 SkRandom ran; in DEF_TEST() local
147 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()
DPathOpsAngleIdeas.cpp580 SkRandom ran; in DEF_TEST() local
583 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()
611 SkRandom ran; in DEF_TEST() local
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()
[all …]
DPathOpsAngleTest.cpp37 SkRandom ran; in DEF_TEST() local
40 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()
71 SkRandom ran; in DEF_TEST() local
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()
/third_party/skia/tests/
DPathOpsTightBoundsTest.cpp14 SkRandom ran; in testTightBoundsLines() local
17 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
19 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
20 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
22 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
24 if (ran.nextBool()) { in testTightBoundsLines()
49 SkRandom ran; in testTightBoundsQuads() local
62 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
64 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
65 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
[all …]
DPathOpsCubicLineIntersectionIdeas.cpp140 SkRandom ran; in DEF_TEST() local
147 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()
DPathOpsAngleIdeas.cpp577 SkRandom ran; in DEF_TEST() local
580 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
581 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
582 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
586 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
587 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
608 SkRandom ran; in DEF_TEST() local
613 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
614 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
615 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
[all …]
DPathOpsAngleTest.cpp36 SkRandom ran; in DEF_TEST() local
39 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
41 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
70 SkRandom ran; in DEF_TEST() local
74 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
75 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
77 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
79 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
/third_party/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp67 int64_t ran = 0; in randomInt64() local
76 for (i = 0; i < sizeof(ran); i += 1) { in randomInt64()
77 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomInt64()
80 return ran; in randomInt64()
88 double ran = 0; in randomDouble() local
98 for (i = 0; i < sizeof(ran); i += 1) { in randomDouble()
99 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomDouble()
101 } while (_isnan(ran)); in randomDouble()
110 ran = (double)numerator / (double)denomenator; in randomDouble()
113 return ran; in randomDouble()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/
DTimeScaleMonkeyTest.java45 private Random ran = null; field in TimeScaleMonkeyTest
59 if (ran == null) { in initRandom()
60 ran = createRandom(); in initRandom()
73 value = ran.nextLong() % ranInt; in randomInRange()
82 value = ran.nextLong(); in randomInRange()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleMonkeyTest.java42 private Random ran = null; field in TimeScaleMonkeyTest
56 if (ran == null) { in initRandom()
57 ran = createRandom(); in initRandom()
70 value = ran.nextLong() % ranInt; in randomInRange()
79 value = ran.nextLong(); in randomInRange()
/third_party/node/deps/npm/node_modules/pumpify/
Dtest.js78 var ran = false
84 ran = true
93 t.ok(ran)
97 t.ok(!ran)
106 var ran = false
109 t.ok(ran)
114 ran = true
/third_party/ffmpeg/tools/
Dtrasher.c28 static uint32_t ran(void) in ran() function
66 int burst = 1 + ran() * (uint64_t) (abs(maxburst) - 1) / UINT32_MAX; in main()
67 int pos = ran() * (uint64_t) length / UINT32_MAX; in main()
77 int val = ran() * 256ULL / UINT32_MAX; in main()
/third_party/node/test/parallel/
Dtest-next-tick-intentional-starvation.js29 let ran = false; variable
35 ran = true;
58 assert.ok(ran);
/third_party/skia/third_party/externals/abseil-cpp/absl/functional/
Dfunction_ref_test.cc31 bool ran = false; in TEST() local
32 RunFun([&] { ran = true; }); in TEST()
33 EXPECT_TRUE(ran); in TEST()
75 bool ran = false; in TEST() local
77 ran = true; in TEST()
82 EXPECT_TRUE(ran); in TEST()
/third_party/flutter/flutter/packages/flutter_tools/lib/src/commands/
Danalyze_once.dart152 …throwToolExit('$errorCount ${pluralize('issue', errorCount)} found. (ran in ${seconds}s; $dartdocM…
154 throwToolExit('$errorCount ${pluralize('issue', errorCount)} found. (ran in ${seconds}s)');
159 throwToolExit('Server error(s) occurred. (ran in ${seconds}s)');
164 printStatus('No issues found! (ran in ${seconds}s; $dartdocMessage)');
166 printStatus('No issues found! (ran in ${seconds}s)');
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRoundTripTest.java46 private Random ran; field in DateFormatRoundTripTest
53 ran = createRandom(); // use test framework's random seed in TestDateFormatRoundTrip()
112 int random = (int) (ran.nextDouble() * 24); in _test()
275 double a = ran.nextDouble();
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DDateFormatRoundTripTest.java49 private Random ran; field in DateFormatRoundTripTest
56 ran = createRandom(); // use test framework's random seed in TestDateFormatRoundTrip()
115 int random = (int) (ran.nextDouble() * 24); in _test()
278 double a = ran.nextDouble();
/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt.c48 uint16_t ran[24]; /* 16-bit so wrap bias from %62 diluted by ~1000 */ in lws_mqtt_generate_id() local
69 n = len * sizeof(ran[0]); in lws_mqtt_generate_id()
70 if (lws_get_random(context, ran, n) != n) { in lws_mqtt_generate_id()
77 buf[n] = code[ran[n] % 62]; in lws_mqtt_generate_id()
/third_party/nghttp2/fuzz/
DREADME.rst13 corpus/h2spec contains input data which was recorded when we ran
16 corpus/nghttp contains input data which was recorded when we ran
/third_party/flutter/flutter/packages/flutter_test/lib/src/
Dtest_async_utils.dart153 // For example, if we called an async method A, which ran its body in a
154 // guarded block, and in its body it ran an async method B, which ran its
155 // body in a guarded block, but we didn't await B, then in A's block we ran
156 // an async method C, which ran its body in a guarded block, then we should
158 // method A, which ran its body in a guarded block, and in its body it ran
159 // an async method B, which ran its body in a guarded block, but we didn't
/third_party/node/deps/npm/test/tap/
Dgit-npmignore.js104 t.is(stderr, '', 'npm pack ran silently')
116 t.is(stderr, '', 'npm install ran silently')
/third_party/icu/icu4c/source/test/cintltst/
Dutmstest.c45 int64_t ran = 0; in randomInt64() local
55 for (i = 0; i < (int32_t)sizeof(ran); i += 1) { in randomInt64()
56 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomInt64()
59 return ran; in randomInt64()
/third_party/flutter/flutter/dev/devicelab/bin/tasks/
Ddartdocs.dart35 } else if (entry.contains(' (ran in ') && !sawFinalLine) {
45 if (entry.contains(' (ran in ') && !sawFinalLine) {
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py476 ran = False
478 nonlocal ran
479 ran = True
486 self.assertTrue(ran)
491 ran = False
493 nonlocal ran
494 ran = True
501 self.assertTrue(ran)

12345678910