/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 31 import java.util.Random; 92 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN() 100 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE() 108 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT() 116 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR() 124 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT() 132 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_LONG() 140 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_FLOAT() 148 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_DOUBLE() 156 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES() [all …]
|
D | AbstractNonStreamingHashFunctionTest.java | 31 import java.util.Random; 47 Random random = new Random(0); in testExhaustive() 63 assertPutString(new char[] { 'p', HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithLowSurrogate() 69 assertPutString(new char[] { 'p', HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithHighSurrogate() 74 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate() 75 HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithLowHighSurrogate() 80 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate() 81 HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithHighLowSurrogate()
|
/external/deqp/framework/delibs/decpp/ |
D | deRandom.cpp | 39 bool Random::operator== (const Random& other) const in operator ==() 44 bool Random::operator!= (const Random& other) const in operator !=() 55 Random rnd(4789); in Random_selfTest() 64 Random rnd(4789); in Random_selfTest() 73 Random rnd(4789); in Random_selfTest() 82 Random rnd(4789); in Random_selfTest() 92 Random rnd(4789); in Random_selfTest() 102 Random rnd(4789); in Random_selfTest() 125 Random rnd(4789); in Random_selfTest() 141 Random rnd(4789); in Random_selfTest() [all …]
|
D | deRandom.hpp | 38 class Random class 41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random 42 ~Random (void) {} in ~Random() 70 bool operator== (const Random& other) const; 71 bool operator!= (const Random& other) const; 79 inline float Random::getFloat (float min, float max) in getFloat() 85 inline double Random::getDouble (double min, double max) in getDouble() 91 inline int Random::getInt (int min, int max) in getInt() 103 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems) in choose() 126 T Random::choose (InputIter first, InputIter last) in choose() [all …]
|
/external/eigen/test/ |
D | conservative_resize.cpp | 25 m = n = MatrixType::Random(50,50); in run_matrix_tests() 29 m = n = MatrixType::Random(50,50); in run_matrix_tests() 33 m = n = MatrixType::Random(50,50); in run_matrix_tests() 42 m = n = MatrixType::Random(50,50); in run_matrix_tests() 52 m = n = MatrixType::Random(50,50); in run_matrix_tests() 68 m = n = VectorType::Random(50); in run_vector_tests() 72 m = n = VectorType::Random(50); in run_vector_tests() 76 m = n = VectorType::Random(50); in run_vector_tests() 80 m = n = VectorType::Random(50); in run_vector_tests() 88 m = n = VectorType::Random(50); in run_vector_tests() [all …]
|
D | geo_hyperplane.cpp | 29 VectorType p0 = VectorType::Random(dim); in hyperplane() 30 VectorType p1 = VectorType::Random(dim); in hyperplane() 32 VectorType n0 = VectorType::Random(dim).normalized(); in hyperplane() 33 VectorType n1 = VectorType::Random(dim).normalized(); in hyperplane() 52 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ(); in hyperplane() 53 DiagonalMatrix<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane() 54 Translation<Scalar,HyperplaneType::AmbientDimAtCompileTime> translation(VectorType::Random()); in hyperplane() 89 Vector center = Vector::Random(); in lines() 90 Vector u = Vector::Random(); in lines() 91 Vector v = Vector::Random(); in lines() [all …]
|
D | geo_orthomethods.cpp | 27 Vector3 v0 = Vector3::Random(), in orthomethods_3() 28 v1 = Vector3::Random(), in orthomethods_3() 29 v2 = Vector3::Random(); in orthomethods_3() 45 Vector3 vec3 = Vector3::Random(); in orthomethods_3() 54 Vector4 v40 = Vector4::Random(), in orthomethods_3() 55 v41 = Vector4::Random(), in orthomethods_3() 56 v42 = Vector4::Random(); in orthomethods_3() 63 RealVector3 rv1 = RealVector3::Random(); in orthomethods_3() 76 VectorType v0 = VectorType::Random(size); in orthomethods() 92 Vector3 vec3 = Vector3::Random(); in orthomethods()
|
D | product_selfadjoint.cpp | 24 MatrixType m1 = MatrixType::Random(rows, cols), in product_selfadjoint() 25 m2 = MatrixType::Random(rows, cols), in product_selfadjoint() 27 VectorType v1 = VectorType::Random(rows), in product_selfadjoint() 28 v2 = VectorType::Random(rows), in product_selfadjoint() 30 RowVectorType r1 = RowVectorType::Random(rows), in product_selfadjoint() 31 r2 = RowVectorType::Random(rows); in product_selfadjoint() 32 RhsMatrixType m4 = RhsMatrixType::Random(rows,10); in product_selfadjoint()
|
D | nesting_ops.cpp | 29 CALL_SUBTEST_1(run_nesting_ops(MatrixXf::Random(25,25))); in test_nesting_ops() 30 CALL_SUBTEST_2(run_nesting_ops(MatrixXd::Random(25,25))); in test_nesting_ops() 31 CALL_SUBTEST_3(run_nesting_ops(Matrix4f::Random())); in test_nesting_ops() 32 CALL_SUBTEST_4(run_nesting_ops(Matrix4d::Random())); in test_nesting_ops()
|
D | qr.cpp | 23 MatrixType a = MatrixType::Random(rows,cols); in qr() 37 Matrix<Scalar,Rows,Cols> m1 = Matrix<Scalar,Rows,Cols>::Random(); in qr_fixedsize() 46 Matrix<Scalar,Cols,Cols2> m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2); in qr_fixedsize() 48 m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2); in qr_fixedsize() 63 m1 = MatrixType::Random(size,size); in qr_invertible() 68 MatrixType a = MatrixType::Random(size,size*2); in qr_invertible() 73 m3 = MatrixType::Random(size,size); in qr_invertible()
|
D | qr_fullpivoting.cpp | 44 MatrixType m2 = MatrixType::Random(cols,cols2); in qr() 46 m2 = MatrixType::Random(cols,cols2); in qr() 61 m1 = MatrixType::Random(size,size); in qr_invertible() 66 MatrixType a = MatrixType::Random(size,size*2); in qr_invertible() 75 m3 = MatrixType::Random(size,size); in qr_invertible() 134 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,10,20> >(Matrix<float,10,20>::Random()))); in test_qr_fullpivoting() 136 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,20,10> >(Matrix<float,20,10>::Random()))); in test_qr_fullpivoting()
|
/external/deqp/framework/common/ |
D | tcuRandomValueIterator.hpp | 33 T getRandomValue (de::Random& rnd) in getRandomValue() 48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint… in getRandomValue() 49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue() 50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); … in getRandomValue() 51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); … in getRandomValue() 52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(… in getRandomValue() 53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint… in getRandomValue() 54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint… in getRandomValue() 55 template <> inline deInt64 getRandomValue<deInt64> (de::Random& rnd) { return (deInt64)rnd.getUint… in getRandomValue() 75 de::Random m_rnd;
|
/external/eigen/test/eigen2/ |
D | eigen2_hyperplane.cpp | 29 VectorType p0 = VectorType::Random(dim); in hyperplane() 30 VectorType p1 = VectorType::Random(dim); in hyperplane() 32 VectorType n0 = VectorType::Random(dim).normalized(); in hyperplane() 33 VectorType n1 = VectorType::Random(dim).normalized(); in hyperplane() 52 MatrixType rot = MatrixType::Random(dim,dim).qr().matrixQ(); in hyperplane() 53 Scaling<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane() 54 Translation<Scalar,HyperplaneType::AmbientDimAtCompileTime> translation(VectorType::Random()); in hyperplane() 88 Vector center = Vector::Random(); in lines() 89 Vector u = Vector::Random(); in lines() 90 Vector v = Vector::Random(); in lines() [all …]
|
D | eigen2_adjoint.cpp | 29 MatrixType m1 = MatrixType::Random(rows, cols), in adjoint() 30 m2 = MatrixType::Random(rows, cols), in adjoint() 32 square = SquareMatrixType::Random(rows, rows); in adjoint() 33 VectorType v1 = VectorType::Random(rows), in adjoint() 34 v2 = VectorType::Random(rows), in adjoint() 35 v3 = VectorType::Random(rows), in adjoint() 74 VERIFY_IS_APPROX(VectorType::Random(rows).normalized().norm(), RealScalar(1)); in adjoint()
|
D | product.h | 41 MatrixType m1 = MatrixType::Random(rows, cols), in product() 42 m2 = MatrixType::Random(rows, cols), in product() 46 square = RowSquareMatrixType::Random(rows, rows), in product() 47 res = RowSquareMatrixType::Random(rows, rows); in product() 49 square2 = ColSquareMatrixType::Random(cols, cols), in product() 50 res2 = ColSquareMatrixType::Random(cols, cols); in product() 51 RowVectorType v1 = RowVectorType::Random(rows); in product() 52 ColVectorType vc2 = ColVectorType::Random(cols), vcres(cols); in product()
|
/external/eigen/unsupported/test/ |
D | alignedvector3.cpp | 21 RefType r1(RefType::Random()), r2(RefType::Random()), r3(RefType::Random()), in alignedvector3() 22 r4(RefType::Random()), r5(RefType::Random()), r6(RefType::Random()); in alignedvector3() 24 Mat33 m1(Mat33::Random()); in alignedvector3()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationThreadTest.java | 12 import java.util.Random; 139 private static void scramble(String[] data, Random r) { in scramble() 190 private Random r; 192 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() 252 final Random r = new Random(); in testThreads() 276 final Random r = new Random(); in testFrozen()
|
/external/skia/bench/ |
D | RectoriBench.cpp | 28 SkRandom Random; in onDraw() local 31 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw() 32 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw() 34 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw() 35 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw() 55 paint.setColor(0xff000000 | Random.nextU()); in onDraw()
|
/external/jetty/src/java/org/eclipse/jetty/websocket/ |
D | RandomMaskGen.java | 21 import java.util.Random; 26 private final Random _random; 30 this(new Random()); in RandomMaskGen() 33 public RandomMaskGen(Random random) in RandomMaskGen()
|
/external/regex-re2/re2/testing/ |
D | random_test.cc | 44 TEST(Random, SmallEgrepLiterals) { in TEST() argument 51 TEST(Random, BigEgrepLiterals) { in TEST() argument 59 TEST(Random, SmallEgrepCaptures) { in TEST() argument 67 TEST(Random, BigEgrepCaptures) { in TEST() argument 77 TEST(Random, Complicated) { in TEST() argument
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
D | MidpointDisplacementHeightMap.java | 35 import java.util.Random; 109 this(size, range, persistence, new Random().nextLong()); in MidpointDisplacementHeightMap() 124 Random random = new Random(seed); in load() 169 … doSquareStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) { in doSquareStep() 201 …doDiamondStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) { in doDiamondStep() 246 protected float getOffset(Random random, float offsetRange, int[] coords, float average) { in getOffset()
|
D | HillHeightMap.java | 34 import java.util.Random; 113 this(size, iterations, minRadius, maxRadius, new Random().nextLong()); in HillHeightMap() 127 Random random = new Random(seed); in load() 159 protected void addHill(float[][] tempBuffer, Random random) { in addHill() 205 private float randomRange(Random random, float min, float max) { in randomRange()
|
/external/deqp/framework/randomshaders/ |
D | rsgBinaryOps.hpp | 80 …void operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMi… 81 …void operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bM… 82 …void operator() (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const { DE_ASSERT(DE_FALSE);… in operator ()() 104 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 126 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const; 164 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… 188 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… 212 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()() 239 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
|
/external/jetty/src/java/org/eclipse/jetty/server/session/ |
D | AbstractSessionIdManager.java | 22 import java.util.Random; 37 protected Random _random; 48 public AbstractSessionIdManager(Random random) in AbstractSessionIdManager() 99 public Random getRandom() in getRandom() 105 public synchronized void setRandom(Random random) in setRandom() 211 _random=new Random(); in initRandom()
|
/external/eigen/bench/ |
D | sparse_trisolver.cpp | 65 DenseVector b = DenseVector::Random(cols); in main() 66 DenseVector x = DenseVector::Random(cols); in main() 190 Matrix4f m = Matrix4f::Random(); in main() 191 Vector4f b = Vector4f::Random(); in main() 192 Vector4f x = Vector4f::Random(); in main() 205 Matrix4f m = Matrix4f::Random(); in main() 206 Vector4f b = Vector4f::Random(); in main() 207 Vector4f x = Vector4f::Random(); in main()
|