Home
last modified time | relevance | path

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

123456

/external/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.cpp573 SkRandom ran; in DEF_TEST() local
576 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
577 SkDQuad quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
578 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
582 SkDQuad quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
583 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
601 SkRandom ran; in DEF_TEST() local
606 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
607 SkDQuad quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
608 {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()
/external/guava/guava-testlib/test/com/google/common/testing/
DTearDownStackTest.java37 assertEquals(false, tearDown.ran); in testSingleTearDown()
41 assertEquals("tearDown should have run", true, tearDown.ran); in testSingleTearDown()
54 false, tearDownOne.ran); in testMultipleTearDownsHappenInOrder()
61 assertEquals(false, tearDownOne.ran); in testMultipleTearDownsHappenInOrder()
62 assertEquals(false, tearDownTwo.ran); in testMultipleTearDownsHappenInOrder()
66 assertEquals("tearDownOne should have run", true, tearDownOne.ran); in testMultipleTearDownsHappenInOrder()
67 assertEquals("tearDownTwo should have run", true, tearDownTwo.ran); in testMultipleTearDownsHappenInOrder()
79 assertEquals(false, tearDownOne.ran); in testThrowingTearDown()
80 assertEquals(false, tearDownTwo.ran); in testThrowingTearDown()
92 assertEquals(true, tearDownOne.ran); in testThrowingTearDown()
[all …]
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp62 int64_t ran = 0; in randomInt64() local
71 for (i = 0; i < sizeof(ran); i += 1) { in randomInt64()
72 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomInt64()
75 return ran; in randomInt64()
83 double ran = 0; in randomDouble() local
93 for (i = 0; i < sizeof(ran); i += 1) { in randomDouble()
94 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomDouble()
96 } while (_isnan(ran)); in randomDouble()
105 ran = (double)numerator / (double)denomenator; in randomDouble()
108 return ran; in randomDouble()
[all …]
/external/libcxx/test/std/thread/futures/futures.async/
Dasync_race.pass.cpp38 bool ran = false; variable
41 ran = true; in f_deferred()
57 ran = false; in test_each()
59 assert(ran == false); in test_each()
61 assert(ran == true); in test_each()
/external/chromium-trace/catapult/devil/devil/utils/
Dreraiser_thread_unittest.py49 ran = [False] * 5
52 ran[i] = True
58 for v in ran:
62 ran = [False] * 5
65 ran[i] = True
72 for v in ran:
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/
DRunnableAction.java27 private boolean ran; field in RunnableAction
30 if (!ran) { in act()
31 ran = true; in act()
49 ran = false; in restart()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleMonkeyTest.java35 private Random ran = null; field in TimeScaleMonkeyTest
49 if (ran == null) { in initRandom()
50 ran = createRandom(); in initRandom()
63 value = ran.nextLong() % ranInt; in randomInRange()
72 value = ran.nextLong(); in randomInRange()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
DTimeScaleMonkeyTest.java39 private Random ran = null; field in TimeScaleMonkeyTest
53 if (ran == null) { in initRandom()
54 ran = createRandom(); in initRandom()
67 value = ran.nextLong() % ranInt; in randomInRange()
76 value = ran.nextLong(); in randomInRange()
/external/autotest/client/site_tests/security_Minijail0/
Dsecurity_Minijail0.py114 ran = 0
120 ran += 1
124 ran += 1
125 if ran == 0:
/external/speex/libspeex/
Dmath_approx.h53 union {int i; float f;} ran; in speex_rand() local
55 ran.i = jflone | (jflmsk & *seed); in speex_rand()
56 ran.f -= 1.5; in speex_rand()
57 return 3.4642*std*ran.f; in speex_rand()
Dscal.c123 union {int i; float f;} ran; in uni_rand() local
125 ran.i = jflone | (jflmsk & *seed); in uni_rand()
126 ran.f -= 1.5; in uni_rand()
127 return 2*ran.f; in uni_rand()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRoundTripTest.java38 private Random ran; field in DateFormatRoundTripTest
47 ran = createRandom(); // use test framework's random seed in TestDateFormatRoundTrip()
106 int random = (int) (ran.nextDouble() * 24); in _test()
266 double a = ran.nextDouble(); in generateDate()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRoundTripTest.java42 private Random ran; field in DateFormatRoundTripTest
51 ran = createRandom(); // use test framework's random seed in TestDateFormatRoundTrip()
110 int random = (int) (ran.nextDouble() * 24); in _test()
270 double a = ran.nextDouble(); in generateDate()
/external/v8/test/mjsunit/regress/
Dregress-2185-2.js102 function ran(a) { function
109 var random = ran([]);
/external/icu/icu4c/source/test/cintltst/
Dutmstest.c43 int64_t ran = 0; in randomInt64() local
53 for (i = 0; i < sizeof(ran); i += 1) { in randomInt64()
54 ((char*)&ran)[i] = (char)((rand() & 0x0FF0) >> 4); in randomInt64()
57 return ran; in randomInt64()
/external/v8/tools/release/
Dreleases.py105 ran = "%s:%d" % (cr_from[0], int(cr_to[0]) - 1)
108 range_lists.setdefault(cr_from[1], []).append(ran)
115 return dict((hsh, ", ".join(ran)) for hsh, ran in range_lists.iteritems())
/external/autotest/results/
DREADME5 So if you ran job "fancypants" on machine "cruncher", you'd get
/external/bison/runtime-po/
Dsv.po4 # Göran Uddeborg <goeran@uddeborg.se>, 2001-2006, 2008, 2010, 2012.
14 "Last-Translator: Göran Uddeborg <goeran@uddeborg.se>\n"
/external/valgrind/none/tests/
Dempty-exe.vgtest4 # indicate it ran to completion. If the crash occurs, the .stderr.out file
/external/llvm/test/CodeGen/MSP430/
Dmisched-msp430.ll10 ; only verifies that the code generator ran successfully.
/external/autotest/client/site_tests/kernel_LTP/
Dcontrol.kernel_tests9 # Uncomment the suite line below once the test can be properly ran in the lab.
Dcontrol.kernel_unittests9 # Uncomment the suite line below once the test can be properly ran in the lab.

123456