/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IntrinsicColorMatrix.java | 98 if (r.nextFloat() > 0.5f) { 99 f[i] = r.nextFloat() * (subtest - 1); 103 if (r.nextFloat() > 0.5f) { 104 add.x = r.nextFloat() * (subtest - 1); 106 if (r.nextFloat() > 0.5f) { 107 add.y = r.nextFloat() * (subtest - 1); 109 if (r.nextFloat() > 0.5f) { 110 add.z = r.nextFloat() * (subtest - 1); 112 if (r.nextFloat() > 0.5f) { 113 add.w = r.nextFloat() * (subtest - 1) [all...] |
IntrinsicBase.java | 98 f[(y * w + x) * vs + v] = r.nextFloat();
|
RSUtils.java | 108 float mantissa = r.nextFloat(); 120 float rand = r.nextFloat();
|
TestVLoad.java | 327 tmp[i] = random.nextFloat(); 339 tmp[i] = random.nextFloat();
|
/frameworks/base/core/java/android/util/ |
MathUtils.java | 160 return (int) (sRandom.nextFloat() * howbig); 165 return (int) (sRandom.nextFloat() * (howbig - howsmall) + howsmall); 169 return sRandom.nextFloat() * howbig; 174 return sRandom.nextFloat() * (howbig - howsmall) + howsmall;
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
RSUtils.java | 32 array[i] = r.nextFloat() * factor + offset; 44 array[i * stride + j] = r.nextFloat() * factor + offset;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
BlackWhiteFilter.java | 124 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
|
DocumentaryFilter.java | 158 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
|
LomoishFilter.java | 170 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
|
GrainFilter.java | 127 float seed[] = { mRandom.nextFloat(), mRandom.nextFloat() };
|
/libcore/luni/src/main/java/java/util/ |
Random.java | 137 public float nextFloat() {
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlideshowView.java | 132 MOVE_SPEED * mWidth * (random.nextFloat() - 0.5f), 133 MOVE_SPEED * mHeight * (random.nextFloat() - 0.5f));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
RandomTest.java | 106 * java.util.Random#nextFloat() 109 // Test for method float java.util.Random.nextFloat() 110 float lastNum = r.nextFloat(); 115 nextNum = r.nextFloat(); 122 assertTrue("Calling nextFloat 100 times resulted in same number", 124 assertTrue("Calling nextFloat resulted in a number out of range [0,1)", 274 mr.nextFloat();
|
ScannerTest.java | [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceRandom.java | 328 return new PointF((random.nextFloat() - 0.5f) * 50, (random.nextFloat() - 0.5f) * 50); 332 point.x = (float) Math.max(Math.min(point.x + random.nextFloat() * vector.x, 334 point.y = (float) Math.max(Math.min(point.y + random.nextFloat() * vector.y, 395 float cls = mRandom.nextFloat();
|
/frameworks/base/core/java/android/view/animation/ |
GridLayoutAnimationController.java | 354 index = (int) (params.columnsCount * mRandomizer.nextFloat()); 380 index = (int) (params.rowsCount * mRandomizer.nextFloat());
|
LayoutAnimationController.java | 409 return (int) (params.count * mRandomizer.nextFloat());
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
ThreadLocalRandomTest.java | 79 * Repeated calls to nextFloat produce at least one different result 82 float f = ThreadLocalRandom.current().nextFloat(); 84 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
RSUtils.java | 108 float mantissa = r.nextFloat(); 120 float rand = r.nextFloat();
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
UT_math_agree.java | 102 fv[i] = rand.nextFloat(); 283 float x = rand.nextFloat(); 284 float y = rand.nextFloat(); 294 float rand_f1_0 = rand.nextFloat(); 298 float rand_f1_1 = rand.nextFloat();
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
UT_math_agree.java | 102 fv[i] = rand.nextFloat(); 283 float x = rand.nextFloat(); 284 float y = rand.nextFloat(); 294 float rand_f1_0 = rand.nextFloat(); 298 float rand_f1_1 = rand.nextFloat();
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameView.java | 418 float size = mRandom.nextFloat() * (mMaxObstacleSize - mMinObstacleSize) 447 float direction = mRandom.nextFloat() * (float) Math.PI * 2; 448 float speed = mRandom.nextFloat() * (mMaxObstacleSpeed - mMinObstacleSpeed)
|
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/ |
FileUtil.java | 281 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & 334 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) &
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerFlakyNetworkTest.java | 329 float random = mRandom.nextFloat();
|
/external/guava/guava-tests/test/com/google/common/hash/ |
HashTestUtils.java | 135 float value = random.nextFloat();
|