/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 60 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/ |
D | RSUtils.java | 82 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()
|
D | ReduceTest.java | 149 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/telephony/current/src/android/telephony/gba/cts/ |
D | UaSecurityProtocolIdentifierTest.java | 151 Random rand = new Random(); in testInvalidId() local 160 int r = rand.nextInt(); in testInvalidId() 172 Random rand = new Random(); in testInvalid3gppIdWithTls() local 175 int r = rand.nextInt(Integer.MAX_VALUE); in testInvalid3gppIdWithTls() 207 Random rand = new Random(); 214 int val = rand.nextInt(); 259 private String getRandomString(Random rand) { 260 int size = rand.nextInt(64); 262 rand.nextBytes(arr);
|
D | GbaServiceTest.java | 113 Random rand = new Random(); in testAuthSuccess() local 118 rand.nextBytes(key); in testAuthSuccess()
|
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | RandomPulseGenerator.h | 39 return static_cast<uint8_t>(rand()); in onNextByte()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SharedPreferencesTest.java | 238 Random rand = new Random(); in testTorture() local 247 String key = new Integer(rand.nextInt(25)).toString(); in testTorture() 251 if (rand.nextInt(100) < 85) { in testTorture() 262 if (rand.nextInt(100) < 85) { in testTorture() 277 Random rand = new Random(); in testTorture2() local 288 String key = new Integer(rand.nextInt(25)).toString(); in testTorture2()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2012-6702/ |
D | poc.c | 36 randomValues[i] = rand(); in main()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 47 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-2016-0844/ |
D | poc.c | 55 extendata.u.rmnet_mux_val.mux_id = rand(); in trigger()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/ |
D | ca.conf | 15 RANDFILE = $dir/private/.rand 44 RANDFILE = $dir/private/.rand
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | FlockingScene.cpp | 35 float x = (rand() % 101) - 50.0f; in FlockingScene() 36 float y = (rand() % 101) - 50.0f; in FlockingScene()
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Renderer.cpp | 312 float angle = 2 * M_PI * (static_cast<float>(rand()) / static_cast<float>(RAND_MAX)); in addHead() 313 float x = 1.5 * static_cast<float>(rand()) / static_cast<float>(RAND_MAX) - 0.75; in addHead() 314 float y = 3.0 * static_cast<float>(rand()) / static_cast<float>(RAND_MAX) - 1.5; in addHead()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/res/raw/ |
D | make_certs.go | 60 …caBytes, err := x509.CreateCertificate(rand.Reader, &caTemplate, &caTemplate, caKey.Public(), caKe… 78 eeBytes, err := x509.CreateCertificate(rand.Reader, &eeTemplate, caCert, eeKey.Public(), caKey)
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_allocation.cpp | 167 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/tests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 173 array[i] = (T) rand(); in randomInitArray()
|
/cts/tests/media/jni/ |
D | NativeExtractorTest.cpp | 336 double r = ((double)rand() / (RAND_MAX)); in generateSeekTestArgs() 365 double r = ((double)rand() / (RAND_MAX)); in generateSeekTestArgs() 487 double r = ((double)rand() / (RAND_MAX)); in isSeekOk()
|