/third_party/flutter/skia/tests/ |
D | PathOpsTightBoundsTest.cpp | 15 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 …]
|
D | PathOpsCubicLineIntersectionIdeas.cpp | 140 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()
|
D | PathOpsAngleIdeas.cpp | 580 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 …]
|
D | PathOpsAngleTest.cpp | 37 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/ |
D | PathOpsTightBoundsTest.cpp | 14 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 …]
|
D | PathOpsCubicLineIntersectionIdeas.cpp | 140 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()
|
D | PathOpsAngleIdeas.cpp | 577 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 …]
|
D | PathOpsAngleTest.cpp | 36 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/ |
D | winnmtst.cpp | 67 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/ |
D | TimeScaleMonkeyTest.java | 45 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/ |
D | TimeScaleMonkeyTest.java | 42 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/ |
D | test.js | 78 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/ |
D | trasher.c | 28 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/ |
D | test-next-tick-intentional-starvation.js | 29 let ran = false; variable 35 ran = true; 58 assert.ok(ran);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/functional/ |
D | function_ref_test.cc | 31 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/ |
D | analyze_once.dart | 152 …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/ |
D | DateFormatRoundTripTest.java | 46 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/ |
D | DateFormatRoundTripTest.java | 49 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/ |
D | client-mqtt.c | 48 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/ |
D | README.rst | 13 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/ |
D | test_async_utils.dart | 153 // 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/ |
D | git-npmignore.js | 104 t.is(stderr, '', 'npm pack ran silently') 116 t.is(stderr, '', 'npm install ran silently')
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | utmstest.c | 45 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/ |
D | dartdocs.dart | 35 } else if (entry.contains(' (ran in ') && !sawFinalLine) { 45 if (entry.contains(' (ran in ') && !sawFinalLine) {
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testasync.py | 476 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)
|