Home
last modified time | relevance | path

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

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicColorMatrix.java107 if (r.nextFloat() > 0.5f) { in test()
108 f[i] = r.nextFloat() * (subtest - 1); in test()
112 if (r.nextFloat() > 0.5f) { in test()
113 add.x = r.nextFloat() * (subtest - 1); in test()
115 if (r.nextFloat() > 0.5f) { in test()
116 add.y = r.nextFloat() * (subtest - 1); in test()
118 if (r.nextFloat() > 0.5f) { in test()
119 add.z = r.nextFloat() * (subtest - 1); in test()
121 if (r.nextFloat() > 0.5f) { in test()
122 add.w = r.nextFloat() * (subtest - 1); in test()
DAllocationCopyPaddedTest.java328 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_1D()
359 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_2D()
391 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_3D()
422 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_1D()
453 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_2D()
485 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_3D()
732 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeTo_Float3()
925 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy2DRangeTo_Float3()
1112 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeToUnchecked_Float3()
DRSUtils.java130 float mantissa = r.nextFloat(); in genRandomFloats()
142 float rand = r.nextFloat(); in genRandomFloats()
DStructFieldTest.java36 innerOne.f = r.nextFloat(); in makeInnerOne()
DIntrinsicBase.java107 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
DVLoadTest.java341 tmp[i] = random.nextFloat(); in testVload_float()
353 tmp[i] = random.nextFloat(); in testVload_float_relaxed()
DAllocationCopyToTest.java163 inArray[i] = random.nextFloat(); in test_Allocationcopy1DRangeTo_Float()
352 inArray[i] = random.nextFloat(); in test_Allocationcopy2DRangeTo_Float()
547 inArray[i] = random.nextFloat(); in test_Allocationcopy3DRangeTo_Float()
773 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.java152 array[i] = rand.nextFloat(); in createInputArrayFloat()
DGetSetTest.java273 t[i] = random.nextFloat(); in randomFloatArray()
/cts/tests/sensor/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/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/keystore/src/android/keystore/cts/
DCountingSecureRandom.java82 public float nextFloat() { in nextFloat() method in CountingSecureRandom
/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/sensor/src/android/hardware/cts/helpers/sensorverification/
DInitialValueVerificationTest.java110 valuesWithNoise[i] = values[i] + random.nextFloat() * NOISE_STD; in addNoise()
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java283 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
335 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java334 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java101 messageLen = (int)(mRandom.nextFloat() * (maxMessageLen-1)) + 1; in generateRandomBufers()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java333 mFloat = seed.nextFloat(); in PrimitivePropertiesTest()