Home
last modified time | relevance | path

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

1234567891011

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DReschedulerTest.java45 assertFalse(runner.ran); in runs()
47 assertFalse(runner.ran); in runs()
51 assertTrue(runner.ran); in runs()
56 assertFalse(runner.ran); in cancels()
58 assertFalse(runner.ran); in cancels()
63 assertFalse(runner.ran); in cancels()
69 assertFalse(runner.ran); in cancelPermanently()
71 assertFalse(runner.ran); in cancelPermanently()
76 assertFalse(runner.ran); in cancelPermanently()
82 assertFalse(runner.ran); in reschedules()
[all …]
/external/guava/android/guava-testlib/test/com/google/common/testing/
DTearDownStackTest.java36 assertEquals(false, tearDown.ran); in testSingleTearDown()
40 assertEquals("tearDown should have run", true, tearDown.ran); in testSingleTearDown()
54 "tearDownTwo should have been run before tearDownOne", 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/guava/guava-testlib/test/com/google/common/testing/
DTearDownStackTest.java36 assertEquals(false, tearDown.ran); in testSingleTearDown()
40 assertEquals("tearDown should have run", true, tearDown.ran); in testSingleTearDown()
54 "tearDownTwo should have been run before tearDownOne", 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/skqp/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()
/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.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()
/external/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 …]
/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/grpc-grpc-java/core/src/test/java/io/grpc/
DLoadBalancerTest.java126 boolean ran; in helper_createSubchannel_delegates() field in LoadBalancerTest.OverrideCreateSubchannel
133 ran = true; in helper_createSubchannel_delegates()
140 assertThat(helper.ran).isTrue(); in helper_createSubchannel_delegates()
151 boolean ran; in helper_updateSubchannelAddresses_delegates() field in LoadBalancerTest.OverrideUpdateSubchannel
159 ran = true; in helper_updateSubchannelAddresses_delegates()
165 assertThat(helper.ran).isTrue(); in helper_updateSubchannelAddresses_delegates()
176 boolean ran; in subchannel_getAddresses_delegates() field in LoadBalancerTest.OverrideGetAllAddresses
179 ran = true; in subchannel_getAddresses_delegates()
186 assertThat(subchannel.ran).isTrue(); in subchannel_getAddresses_delegates()
192 boolean ran; in subchannel_getAddresses_throwsOnTwoAddrs()
[all …]
/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/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()
/external/icu/android_icu4j/src/main/tests/android/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()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/
DFakeDataSourceTest.java174 assertThat(runnables[i].ran).isFalse(); in testRunnable()
178 assertThat(runnables[0].ran).isTrue(); in testRunnable()
179 assertThat(runnables[1].ran).isFalse(); in testRunnable()
180 assertThat(runnables[2].ran).isFalse(); in testRunnable()
184 assertThat(runnables[i].ran).isTrue(); in testRunnable()
244 public boolean ran; field in FakeDataSourceTest.TestRunnable
248 ran = true; in run()
/external/python/pybind11/tests/test_embed/
Dtest_interpreter.cpp139 bool ran = false; variable
141 …py::capsule(&ran, [](void *ran) { py::detail::get_internals(); *static_cast<bool *>(ran) = true; }… in __anonfbc0ec150202() argument
144 REQUIRE_FALSE(ran);
146 REQUIRE(ran);
/external/jemalloc_new/test/unit/
Dbackground_thread.c90 bool ran = false; in TEST_BEGIN() local
94 ran = true; in TEST_BEGIN()
97 if (ran) { in TEST_BEGIN()
/external/speex/libspeexdsp/
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.c127 union {int i; float f;} ran; in uni_rand() local
129 ran.i = jflone | (jflmsk & *seed); in uni_rand()
130 ran.f -= 1.5; in uni_rand()
131 return 2*ran.f; in uni_rand()
/external/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();
/external/icu/android_icu4j/src/main/tests/android/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();
/external/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()

1234567891011