/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | IntrinsicColorMatrix.java | 107 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()
|
D | AllocationCopyPaddedTest.java | 328 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()
|
D | StructFieldTest.java | 36 innerOne.f = r.nextFloat(); in makeInnerOne()
|
D | IntrinsicBase.java | 107 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
|
D | RSUtils.java | 130 float mantissa = r.nextFloat(); in genRandomFloats() 142 float rand = r.nextFloat(); in genRandomFloats()
|
D | VLoadTest.java | 341 tmp[i] = random.nextFloat(); in testVload_float() 353 tmp[i] = random.nextFloat(); in testVload_float_relaxed()
|
D | AllocationCopyToTest.java | 163 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()
|
D | RsAllocationCopyTest.java | 176 inArray[i] = random.nextFloat(); in test_RsAllocationCopy1D_Float() 441 inArray[i] = random.nextFloat(); in test_RsAllocationCopy2D_Float()
|
D | ReduceTest.java | 152 array[i] = rand.nextFloat(); in createInputArrayFloat()
|
D | GetSetTest.java | 273 t[i] = random.nextFloat(); in randomFloatArray()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 157 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/ |
D | RSUtils.java | 32 array[i] = r.nextFloat() * factor + offset; in genRandom() 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom()
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/ |
D | NoiseAudioSource.java | 40 buffer[index] = (mRandom.nextFloat() * 2.0f) - 1.0f; in pull()
|
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | ManchesterEncoder.h | 56 virtual float nextFloat() { in nextFloat() function
|
D | RoundedManchesterEncoder.h | 73 float nextFloat() override { in nextFloat() function
|
D | LatencyAnalyzer.h | 694 mPulse.write(pulser.nextFloat() * mPulseAmplitude); in generatePulseRecording()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CountingSecureRandom.java | 82 public float nextFloat() { in nextFloat() method in CountingSecureRandom
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | LocationUtils.java | 49 MIN_ACCURACY + random.nextFloat() * (MAX_ACCURACY - MIN_ACCURACY)); in createLocation()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 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/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 108 float mantissa = r.nextFloat(); in genRandomFloats() 120 float rand = r.nextFloat(); in genRandomFloats()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | InitialValueVerificationTest.java | 110 valuesWithNoise[i] = values[i] + random.nextFloat() * NOISE_STD; in addNoise()
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | FileUtil.java | 284 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest() 339 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 352 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 100 messageLen = (int)(mRandom.nextFloat() * (maxMessageLen-1)) + 1; in generateRandomBufers()
|
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/ |
D | PlatformInspectableProcessorTest.java | 333 mFloat = seed.nextFloat(); in PrimitivePropertiesTest()
|