/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 92 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN() argument 93 boolean value = random.nextBoolean(); in PUT_BOOLEAN() 100 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE() argument 101 int value = random.nextInt(); in PUT_BYTE() 108 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT() argument 109 short value = (short) random.nextInt(); in PUT_SHORT() 116 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR() argument 117 char value = (char) random.nextInt(); in PUT_CHAR() 124 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT() argument 125 int value = random.nextInt(); in PUT_INT() [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
D | RectangleSpawnShapeValue.java | 24 int a = MathUtils.random(-1,1); in spawnAux() 27 tx = MathUtils.random(1)==0 ? -width/ 2 : width/ 2; in spawnAux() 29 ty = MathUtils.random(1)==0 ? -height / 2 : height/ 2; in spawnAux() 30 tz = MathUtils.random(1)==0 ? -depth/2 : depth/2; in spawnAux() 33 ty = MathUtils.random(height) - height / 2; in spawnAux() 34 tz = MathUtils.random(depth) - depth / 2; in spawnAux() 39 tz = MathUtils.random(1)==0 ? -depth/ 2 : depth/ 2; in spawnAux() 41 ty = MathUtils.random(1)==0 ? -height / 2 : height/ 2; in spawnAux() 42 tx = MathUtils.random(1)==0 ? -width/2 : width/2; in spawnAux() 45 ty = MathUtils.random(height) - height / 2; in spawnAux() [all …]
|
/external/skia/src/gpu/ |
D | GrTestUtils.cpp | 17 static const SkMatrix& test_matrix(SkRandom* random, bool includePerspective) { in test_matrix() argument 38 return gMatrices[random->nextULessThan(count)]; in test_matrix() 40 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix() 45 const SkMatrix& TestMatrix(SkRandom* random) { return test_matrix(random, true); } in TestMatrix() argument 47 const SkMatrix& TestMatrixPreservesRightAngles(SkRandom* random) { in TestMatrixPreservesRightAngles() argument 70 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles() 73 const SkMatrix& TestMatrixRectStaysRect(SkRandom* random) { in TestMatrixRectStaysRect() argument 96 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect() 99 const SkMatrix& TestMatrixInvertible(SkRandom* random) { return test_matrix(random, false); } in TestMatrixInvertible() argument 101 const SkRect& TestRect(SkRandom* random) { in TestRect() argument [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | BitsStreamGenerator.java | 17 package org.apache.commons.math.random; 69 final int random = next(32); in nextBytes() local 70 bytes[i] = (byte) (random & 0xff); in nextBytes() 71 bytes[i + 1] = (byte) ((random >> 8) & 0xff); in nextBytes() 72 bytes[i + 2] = (byte) ((random >> 16) & 0xff); in nextBytes() 73 bytes[i + 3] = (byte) ((random >> 24) & 0xff); in nextBytes() 76 int random = next(32); in nextBytes() local 78 bytes[i++] = (byte) (random & 0xff); in nextBytes() 79 random = random >> 8; in nextBytes() 98 final double random; in nextGaussian() local [all …]
|
/external/eigen/test/ |
D | product_large.cpp | 15 …CALL_SUBTEST_1( product(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<in… in test_product_large() 16 …CALL_SUBTEST_2( product(MatrixXd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<in… in test_product_large() 17 …CALL_SUBTEST_3( product(MatrixXi(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::random<in… in test_product_large() 18 …CALL_SUBTEST_4( product(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::random… in test_product_large() 19 …(Matrix<float,Dynamic,Dynamic,RowMajor>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_product_large() 41 std::ptrdiff_t l1 = internal::random<int>(10000,20000); in test_product_large() 42 std::ptrdiff_t l2 = internal::random<int>(1000000,2000000); in test_product_large() 46 std::ptrdiff_t k1 = internal::random<int>(10,100)*16; in test_product_large() 47 std::ptrdiff_t m1 = internal::random<int>(10,100)*16; in test_product_large() 48 std::ptrdiff_t n1 = internal::random<int>(10,100)*16; in test_product_large()
|
D | linearstructure.cpp | 30 Scalar s1 = internal::random<Scalar>(); in linearStructure() 31 while (abs(s1)<1e-3) s1 = internal::random<Scalar>(); in linearStructure() 33 Index r = internal::random<Index>(0, rows-1), in linearStructure() 34 c = internal::random<Index>(0, cols-1); in linearStructure() 78 …L_SUBTEST_5( linearStructure(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::r… in test_linearstructure() 79 …LL_SUBTEST_6( linearStructure(MatrixXf (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure() 80 …LL_SUBTEST_7( linearStructure(MatrixXi (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure() 81 …L_SUBTEST_8( linearStructure(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::r… in test_linearstructure() 82 …LL_SUBTEST_9( linearStructure(ArrayXXf (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure()
|
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
D | TestCollisionShapeFactory.java | 111 …eometry.setLocalTranslation((float) Math.random() * 10 -10, (float) Math.random() * 10 -10, (float… in attachRandomGeometry() 112 …uaternion().fromAngles((float) Math.random() * FastMath.PI, (float) Math.random() * FastMath.PI, (… in attachRandomGeometry() 113 …geometry.setLocalScale((float) Math.random() * 10 -10, (float) Math.random() * 10 -10, (float) Mat… in attachRandomGeometry() 120 …spat.setLocalTranslation((float) Math.random() * 10, (float) Math.random() * 10, (float) Math.rand… in randomizeTransform() 121 …spat.setLocalTranslation((float) Math.random() * 10, (float) Math.random() * 10, (float) Math.rand… in randomizeTransform() 122 …spat.setLocalScale((float) Math.random() * 2, (float) Math.random() * 2, (float) Math.random() * 2… in randomizeTransform()
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | MathUtils.java | 104 static public Random random = new RandomXS128(); field in MathUtils 107 static public int random (int range) { in random() method in MathUtils 108 return random.nextInt(range + 1); in random() 112 static public int random (int start, int end) { in random() method in MathUtils 113 return start + random.nextInt(end - start + 1); in random() 117 static public long random (long range) { in random() method in MathUtils 118 return (long)(random.nextDouble() * range); in random() 122 static public long random (long start, long end) { in random() method in MathUtils 123 return start + (long)(random.nextDouble() * (end - start)); in random() 128 return random.nextBoolean(); in randomBoolean() [all …]
|
/external/autotest/client/site_tests/graphics_dEQP/expectations/rogue/ |
D | dEQP-GLES2.stress.NotSupported.bz2 |
|
D | dEQP-GLES2.stress.CompatibilityWarning.bz2 | ... dEQP-GLES2.stress.draw.unaligned_data.random.11
3dEQP-GLES2.stress.draw ... |
/external/skia/include/gpu/ |
D | GrTestUtils.h | 43 static inline GrColor GrRandomColor(SkRandom* random) { in GrRandomColor() argument 53 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor() 63 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor() 64 random->nextULessThan(256), in GrRandomColor() 65 random->nextULessThan(256), in GrRandomColor() 69 uint8_t alpha = random->nextULessThan(256); in GrRandomColor() 70 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor() 71 random->nextRangeU(0, alpha), in GrRandomColor() 72 random->nextRangeU(0, alpha), in GrRandomColor() 81 static inline uint8_t GrRandomCoverage(SkRandom* random) { in GrRandomCoverage() argument [all …]
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
D | CollisionWorldTest.java | 77 …ound", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random… in create() 78 0.25f + 0.5f * (float)Math.random(), 1f); in create() 80 …onBox", 0f, 1f, 5f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(… in create() 81 0.5f + 0.5f * (float)Math.random(), 1f); in create() 82 …nBox", 0f, 1f, -5f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(… in create() 83 0.5f + 0.5f * (float)Math.random(), 1f); in create() 84 …onBox", 5f, 1f, 0f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(… in create() 85 0.5f + 0.5f * (float)Math.random(), 1f); in create() 86 …nBox", -5f, 1f, 0f).setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(… in create() 87 0.5f + 0.5f * (float)Math.random(), 1f); in create() [all …]
|
D | ConstraintsTest.java | 46 …ound", 0f, 0f, 0f).setColor(0.25f + 0.5f * (float)Math.random(), 0.25f + 0.5f * (float)Math.random… in create() 47 0.25f + 0.5f * (float)Math.random(), 1f); in create() 50 bar.setColor(0.75f + 0.25f * (float)Math.random(), 0.75f + 0.25f * (float)Math.random(), in create() 51 0.75f + 0.25f * (float)Math.random(), 1f); in create() 54 …1.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (… in create() 64 box2.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), in create() 65 0.5f + 0.5f * (float)Math.random(), 1f); in create() 70 box1.setColor(0.5f + 0.5f * (float)Math.random(), 0.5f + 0.5f * (float)Math.random(), in create() 71 0.5f + 0.5f * (float)Math.random(), 1f); in create()
|
/external/autotest/client/site_tests/graphics_dEQP/expectations/broadwell/ |
D | dEQP-GLES2.functional.hasty.Flaky.bz2 | ... dEQP-GLES2.functional.buffer.write.random.0
27dEQP-GLES2.functional.buffer ... |
D | dEQP-GLES2.functional.Fail.bz2 |
|
/external/autotest/client/site_tests/graphics_dEQP/expectations/sandybridge/ |
D | dEQP-GLES2.functional.Fail.bz2 | ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0
70dEQP-GLES2.functional.fragment_ops ... |
/external/autotest/client/site_tests/graphics_dEQP/expectations/skylake/ |
D | dEQP-GLES2.functional.Fail.bz2 | ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0
70dEQP-GLES2.functional.fragment_ops ... |
/external/autotest/client/site_tests/graphics_dEQP/expectations/braswell/ |
D | dEQP-GLES2.functional.Fail.bz2 | ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0
70dEQP-GLES2.functional.fragment_ops ... |
/external/autotest/client/site_tests/graphics_dEQP/expectations/haswell/ |
D | dEQP-GLES2.functional.Fail.bz2 | ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0
70dEQP-GLES2.functional.fragment_ops ... |
/external/autotest/client/site_tests/graphics_dEQP/expectations/baytrail/ |
D | dEQP-GLES2.functional.Fail.bz2 | ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0
70dEQP-GLES2.functional.fragment_ops ... |
/external/autotest/client/site_tests/graphics_dEQP/expectations/ivybridge/ |
D | dEQP-GLES2.functional.Fail.bz2 |
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
D | FaultHeightMap.java | 139 Random random = new Random(seed); in load() local 142 addFault(tempBuffer, random); in load() 157 protected void addFault(float[][] tempBuffer, Random random) { in addFault() argument 158 float faultHeight = minFaultHeight + random.nextFloat() * (maxFaultHeight - minFaultHeight); in addFault() 159 float range = minRange + random.nextFloat() * (maxRange - minRange); in addFault() 162 addLineFault(tempBuffer, random, faultHeight, range); in addFault() 165 addCircleFault(tempBuffer, random, faultHeight, range); in addFault() 170 … protected void addLineFault(float[][] tempBuffer, Random random, float faultHeight, float range) { in addLineFault() argument 171 int x1 = random.nextInt(size); in addLineFault() 172 int x2 = random.nextInt(size); in addLineFault() [all …]
|
/external/skia/src/gpu/batches/ |
D | GrDrawAtlasBatch.cpp | 202 static SkRSXform random_xform(SkRandom* random) { in random_xform() argument 210 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform() 211 random->nextRangeScalar(kMinRotate, kMaxRotate), in random_xform() 212 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 213 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 214 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 215 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform() 219 static SkRect random_texRect(SkRandom* random) { in random_texRect() argument 223 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect() 224 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | AlgorithmParameterGeneratorSpi.java | 19 protected SecureRandom random; field in AlgorithmParameterGeneratorSpi 25 SecureRandom random) in engineInit() argument 43 this.random = random; in engineInit() 48 SecureRandom random) in engineInit() argument 67 if (random == null) in engineGenerateParameters() 69 random = new SecureRandom(); in engineGenerateParameters() 74 params = new DSAParameterGenerationParameters(1024, 160, 80, random); in engineGenerateParameters() 79 params = new DSAParameterGenerationParameters(strength, 256, 80, random); in engineGenerateParameters() 84 pGen.init(strength, 20, random); in engineGenerateParameters()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | AlgorithmParameterGeneratorSpi.java | 18 protected SecureRandom random; field in AlgorithmParameterGeneratorSpi 25 SecureRandom random) in engineInit() argument 28 this.random = random; in engineInit() 33 SecureRandom random) in engineInit() argument 44 this.random = random; in engineInit() 51 if (random != null) in engineGenerateParameters() 53 pGen.init(strength, 20, random); in engineGenerateParameters()
|