Home
last modified time | relevance | path

Searched refs:randomData (Results 1 – 16 of 16) sorted by relevance

/external/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java110 Cache.Entry entry = randomData(511); in testPutRemoveGet()
122 Cache.Entry entry = randomData(511); in testPutClearGet()
134 Cache.Entry entry = randomData(1023); in testReinitialize()
145 Cache.Entry entry = randomData(32); in testInvalidate()
157 Cache.Entry entry = randomData(32); in testInvalidateFullExpire()
170 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("oversize")); in testTooLargeEntry()
178 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("maxsize") - 1); in testMaxSizeEntry()
187 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("maxsize") - 1); in testTrimAtThreshold()
193 entry = randomData(0); in testTrimAtThreshold()
202 Cache.Entry entry1 = randomData(MAX_SIZE / 3 - getEntrySizeOnDisk("entry1") - 1); in testTrimWithMultipleEvictions_underHysteresisThreshold()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DValueServer.java88 private final RandomData randomData; field in ValueServer
94 randomData = new RandomDataImpl(); in ValueServer()
104 public ValueServer(RandomData randomData) { in ValueServer() argument
105 this.randomData = randomData; in ValueServer()
363 return randomData.nextUniform(0, 2 * mu); in getNextUniform()
372 return randomData.nextExponential(mu); in getNextExponential()
382 return randomData.nextGaussian(mu, sigma); in getNextGaussian()
DEmpiricalDistributionImpl.java93 private final RandomData randomData = new RandomDataImpl(); field in EmpiricalDistributionImpl
387 return randomData.nextGaussian in getNextValue()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/ranking/
DNaturalRanking.java86 private final RandomData randomData; field in NaturalRanking
95 randomData = null; in NaturalRanking()
107 randomData = new RandomDataImpl(); in NaturalRanking()
119 randomData = null; in NaturalRanking()
132 randomData = new RandomDataImpl(); in NaturalRanking()
145 randomData = new RandomDataImpl(randomGenerator); in NaturalRanking()
161 randomData = new RandomDataImpl(randomGenerator); in NaturalRanking()
349 randomData.nextLong(f, f + length - 1); in resolveTie()
/external/zstd/tests/
Dlongmatch.c69 const size_t randomData = (1 << windowLog) - 2*sizeof(match); in main() local
76 for (i = 0; i < randomData; ++i) { in main()
80 srcBuffer[sizeof(match) + randomData + i] = match[i]; in main()
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DAbstractContinuousDistribution.java50 protected final RandomDataImpl randomData = new RandomDataImpl(); field in AbstractContinuousDistribution
152 randomData.reSeed(seed); in reseedRandomGenerator()
165 return randomData.nextInversionDeviate(this); in sample()
DAbstractIntegerDistribution.java45 protected final RandomDataImpl randomData = new RandomDataImpl(); field in AbstractIntegerDistribution
218 randomData.reSeed(seed); in reseedRandomGenerator()
231 return randomData.nextInversionDeviate(this); in sample()
DExponentialDistributionImpl.java195 return randomData.nextExponential(mean); in sample()
DNormalDistributionImpl.java240 return randomData.nextGaussian(mean, standardDeviation); in sample()
DPoissonDistributionImpl.java261 return (int) FastMath.min(randomData.nextPoisson(mean), Integer.MAX_VALUE); in sample()
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_enqueue_api.cpp35 cl_uint randomData = genrand_int32(seed); in generate_data() local
42 randomData = genrand_int32(seed); in generate_data()
45 data[i] = (cl_uchar)( randomData & 255 ); in generate_data()
46 randomData >>= 8; randomData -= 8; in generate_data()
/external/angle/src/tests/perf_tests/
DGenerateMipmapPerf.cpp224 std::array<uint8_t, 4> randomData; in drawBenchmark() local
225 FillWithRandomData(&randomData); in drawBenchmark()
228 randomData.data()); in drawBenchmark()
/external/angle/src/tests/gl_tests/
DRobustBufferAccessBehaviorTest.cpp105 std::array<GLfloat, 12> randomData = { in runIndexOutOfRangeTests() local
107 glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * randomData.size(), randomData.data(), in runIndexOutOfRangeTests()
/external/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java71 public static Cache.Entry randomData(int length) { in randomData() method in CacheTestUtils
/external/skqp/tools/
Dremote_demo.cpp168 auto randomData = SkData::MakeUninitialized(1u); in final_draw() local
179 write_SkData(writeFd, *randomData); in final_draw()
/external/skia/tools/
Dremote_demo.cpp168 auto randomData = SkData::MakeUninitialized(1u); in final_draw() local
179 write_SkData(writeFd, *randomData); in final_draw()