Home
last modified time | relevance | path

Searched refs:nextFloat (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicColorMatrix.java98 if (r.nextFloat() > 0.5f) { in test()
99 f[i] = r.nextFloat() * (subtest - 1); in test()
103 if (r.nextFloat() > 0.5f) { in test()
104 add.x = r.nextFloat() * (subtest - 1); in test()
106 if (r.nextFloat() > 0.5f) { in test()
107 add.y = r.nextFloat() * (subtest - 1); in test()
109 if (r.nextFloat() > 0.5f) { in test()
110 add.z = r.nextFloat() * (subtest - 1); in test()
112 if (r.nextFloat() > 0.5f) { in test()
113 add.w = r.nextFloat() * (subtest - 1); in test()
DAllocationCopyPaddedTest.java319 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_1D()
349 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_2D()
380 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_3D()
410 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_1D()
440 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_2D()
471 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_3D()
711 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeTo_Float3()
899 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy2DRangeTo_Float3()
1081 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeToUnchecked_Float3()
DIntrinsicBase.java98 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
DRSUtils.java130 float mantissa = r.nextFloat(); in genRandomFloats()
142 float rand = r.nextFloat(); in genRandomFloats()
DVLoadTest.java327 tmp[i] = random.nextFloat(); in testVload_float()
339 tmp[i] = random.nextFloat(); in testVload_float_relaxed()
DAllocationCopyToTest.java155 inArray[i] = random.nextFloat(); in test_Allocationcopy1DRangeTo_Float()
344 inArray[i] = random.nextFloat(); in test_Allocationcopy2DRangeTo_Float()
539 inArray[i] = random.nextFloat(); in test_Allocationcopy3DRangeTo_Float()
765 inArray[i] = random.nextFloat(); in test_Allocationcopy1DRangeToUnchecked_Float()
DrsAllocationCopyTest.java176 inArray[i] = random.nextFloat(); in test_rsAllocationCopy1D_Float()
441 inArray[i] = random.nextFloat(); in test_rsAllocationCopy2D_Float()
DReduceTest.java146 array[i] = rand.nextFloat(); in createInputArrayFloat()
DGetSetTest.java247 t[i] = random.nextFloat(); in randomFloatArray()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorManagerStaticTest.java157 angle = (data.nextFloat()-0.5f) * FLOAT_PI; in testGetInclination()
231 v[4] = data.nextBoolean() ? data.nextFloat() : -1.f; in testGetQuaternionFromVector()
278 incline = -0.9f * (data.nextFloat() - 0.5f) * FLOAT_PI; // ~ +-80 degrees in testGetRotationMatrix()
340 gI[0] = gI[1] = gI[2] = data.nextFloat() * gravity * 0.05f; // sqrt(3) * 0.05 < 0.1 in testGetRotationMatrix()
381 v[4] = data.nextBoolean() ? data.nextFloat() : -1.f; in testGetRotationMatrixFromVector()
419 halfTheta = data.nextFloat() * FLOAT_PI; in testGetRotationMatrixFromVector()
447 float theta = data.nextFloat() * 2.f * FLOAT_PI; in testGetRotationMatrixFromVector()
570 rotv[0] = (mRandom.nextFloat()-0.5f) * 2.0f * FLOAT_PI; // azimuth(yaw) -pi ~ pi in nextRotationAngles()
571 rotv[1] = (mRandom.nextFloat()-0.5f) * FLOAT_PI; // pitch -pi/2 ~ +pi/2 in nextRotationAngles()
572 rotv[2] = (mRandom.nextFloat()-0.5f) * 2.f * FLOAT_PI; // roll -pi ~ +pi in nextRotationAngles()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java32 array[i] = r.nextFloat() * factor + offset; in genRandom()
44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom()
/cts/tests/tests/keystore/src/android/keystore/cts/
DCountingSecureRandom.java82 public float nextFloat() { in nextFloat() method in CountingSecureRandom
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java49 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/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java108 float mantissa = r.nextFloat(); in genRandomFloats()
120 float rand = r.nextFloat(); in genRandomFloats()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java282 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
334 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java329 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java207 editor.putFloat(FLOAT_PREF, random.nextFloat()); in generatePreferenceGroup2()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex33474 public float nextFloat()
47499 public float nextFloat()