Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java60 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles() local
61 if (rand < min || rand > max) { in genRandomDoubles()
64 array[i] = rand; in genRandomDoubles()
69 double rand = r.nextDouble(); in genRandomDoubles() local
70 array[i] = min + rand * (max - min); in genRandomDoubles()
111 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats() local
112 if (rand < min || rand > max) { in genRandomFloats()
115 array[i] = rand; in genRandomFloats()
120 float rand = r.nextFloat(); in genRandomFloats() local
121 array[i] = min + rand * (max - min); in genRandomFloats()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRSUtils.java82 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles() local
83 if (rand < min || rand > max) { in genRandomDoubles()
86 array[i] = rand; in genRandomDoubles()
91 double rand = r.nextDouble(); in genRandomDoubles() local
92 array[i] = min + rand * (max - min); in genRandomDoubles()
133 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats() local
134 if (rand < min || rand > max) { in genRandomFloats()
137 array[i] = rand; in genRandomFloats()
142 float rand = r.nextFloat(); in genRandomFloats() local
143 array[i] = min + rand * (max - min); in genRandomFloats()
DReduceTest.java149 Random rand = new Random(seed); in createInputArrayFloat() local
152 array[i] = rand.nextFloat(); in createInputArrayFloat()
157 Random rand = new Random(seed); in createInputArrayInt() local
160 array[i] = rand.nextInt(); in createInputArrayInt()
165 Random rand = new Random(seed); in createInputArrayInt() local
168 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java246 Random rand = new Random(); in testTorture() local
255 String key = new Integer(rand.nextInt(25)).toString(); in testTorture()
259 if (rand.nextInt(100) < 85) { in testTorture()
270 if (rand.nextInt(100) < 85) { in testTorture()
285 Random rand = new Random(); in testTorture2() local
296 String key = new Integer(rand.nextInt(25)).toString(); in testTorture2()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java47 Random rand = new Random(); in addByteNoise() local
49 if (rand.nextFloat() < frequency) { in addByteNoise()
51 final float direction = rand.nextFloat(); in addByteNoise()
52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2012-6702/
Dpoc.c36 randomValues[i] = rand(); in main()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dca.conf15 RANDFILE = $dir/private/.rand
44 RANDFILE = $dir/private/.rand
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/
Dpoc.c55 extendata.u.rmnet_mux_val.mux_id = rand(); in trigger()
/cts/tests/openglperf2/jni/reference/scene/flocking/
DFlockingScene.cpp35 float x = (rand() % 101) - 50.0f; in FlockingScene()
36 float y = (rand() % 101) - 50.0f; in FlockingScene()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_allocation.cpp167 src[i] = (T)rand(); in helperCopy1D()
201 src[i] = (float)rand(); in helperFloatAllocationCopy1D()
258 src[i] = (T)rand(); in helperCopy2D()
289 src[i] = (float)rand(); in helperFloatAllocationCopy2D()
361 src[i] = (T)rand(); in helperCopy3D()
399 src[i] = (float)rand(); in helperFloatAllocationCopy3D()
/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp57 int val = rand(); in generateWhiteNoise()
/cts/tests/tests/net/src/android/net/wifi/cts/
DNsdManagerTest.java250 Random rand = new Random(); in setUp() local
253 mServiceName = mServiceName + String.valueOf(rand.nextInt(10)); in setUp()
/cts/tests/simplecpu/jni/
DCpuNativeJni.cpp173 array[i] = (T) rand(); in randomInitArray()