Home
last modified time | relevance | path

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

12345678

/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/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/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/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);
Dtest-runner-watch-mode.mjs26 test('test has ran');`,
43 const testRuns = stdout.match(/ - test has ran/g);
/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/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/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/node/deps/npm/node_modules/process/
Dtest.js78 var ran = false;
84 assert.ok(ran, 'should have run');
92 ran = true;
/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/mindspore/test/
DREADME.md47 [==========] 1 tests from 1 test suite ran. (101ms total)
63 [==========] 1 tests from 1 test suite ran. (648ms total)
/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/icu/icu4c/source/test/cintltst/
Dutmstest.c46 int64_t ran = 0; in randomInt64() local
56 for (i = 0; i < (int32_t)sizeof(ran); i += 1) { in randomInt64()
57 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomInt64()
60 return ran; in randomInt64()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/
DCargo.toml3 description = "bindgen results when ran on ../headers/*"
/third_party/skia/third_party/externals/wuffs/
Dsync.txt1 script/sync.sh ran on 2021-07-20
/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)
/third_party/popt/po/
Dsv.po4 # Göran Uddeborg <goeran@uddeborg.se>, 2008.
14 "Last-Translator: Göran Uddeborg <goeran@uddeborg.se>\n"
/third_party/glib/patch/
Dbackport-gtestutils-Add-G_TEST_SUBPROCESS_DEFAULT.patch1068 g_test_trap_assert_stdout ("*Test /misc/dash-p/subprocess/hidden ran*");
1069 g_test_trap_assert_stdout_unmatched ("*Test /misc/dash-p/subprocess/hidden/sub ran*");
1071 g_test_trap_assert_stdout_unmatched ("*Test /misc/dash-p/subprocess/hidden/sub/subprocess ran*");
1078 g_test_trap_assert_stdout ("*Test /misc/dash-p/subprocess/hidden/sub ran*");
1079 g_test_trap_assert_stdout_unmatched ("*Test /misc/dash-p/subprocess/hidden ran*");
1081 g_test_trap_assert_stdout_unmatched ("*Test /misc/dash-p/subprocess/hidden/subprocess ran*");
1088 g_test_trap_assert_stdout ("*Test /misc/dash-p/child ran*");
1089 g_test_trap_assert_stdout ("*Test /misc/dash-p/child/sub ran*");
1091 g_test_trap_assert_stdout_unmatched ("*Test /misc/dash-p/child/subprocess ran*");
1098 g_test_trap_assert_stdout ("*Test /misc/dash-p/child/sub ran*");
[all …]
/third_party/node/test/common/
Dwpt.js672 const ran = queue.length;
673 const total = ran + skipped;
674 const passed = ran - expectedFailures - failures.length;
675 console.log(`Ran ${ran}/${total} tests, ${skipped} skipped,`,
/third_party/typescript/tests/cases/docker/chrome-devtools-frontend-next/
DDockerfile14 # We don't want to show the ordering of which tasks ran in Ninja, as that is non-deterministic.

12345678