/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 86 @Override void performAction(Random random, Iterable<? extends Sink> sinks) { in PUT_BOOLEAN() argument 87 boolean value = random.nextBoolean(); in PUT_BOOLEAN() 94 @Override void performAction(Random random, Iterable<? extends Sink> sinks) { in PUT_BYTE() argument 95 int value = random.nextInt(); in PUT_BYTE() 102 @Override void performAction(Random random, Iterable<? extends Sink> sinks) { in PUT_SHORT() argument 103 short value = (short) random.nextInt(); in PUT_SHORT() 110 @Override void performAction(Random random, Iterable<? extends Sink> sinks) { in PUT_CHAR() argument 111 char value = (char) random.nextInt(); in PUT_CHAR() 118 @Override void performAction(Random random, Iterable<? extends Sink> sinks) { in PUT_INT() argument 119 int value = random.nextInt(); in PUT_INT() [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 | 29 Scalar s1 = internal::random<Scalar>(); in linearStructure() 30 while (internal::abs(s1)<1e-3) s1 = internal::random<Scalar>(); in linearStructure() 32 Index r = internal::random<Index>(0, rows-1), in linearStructure() 33 c = internal::random<Index>(0, cols-1); in linearStructure() 77 …L_SUBTEST_5( linearStructure(MatrixXcf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::r… in test_linearstructure() 78 …LL_SUBTEST_6( linearStructure(MatrixXf (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure() 79 …LL_SUBTEST_7( linearStructure(MatrixXi (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure() 80 …L_SUBTEST_8( linearStructure(MatrixXcd(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2), internal::r… in test_linearstructure() 81 …LL_SUBTEST_9( linearStructure(ArrayXXf (internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ra… in test_linearstructure()
|
D | mapstride.cpp | 126 CALL_SUBTEST_4( map_class_vector<Aligned>(VectorXcf(internal::random<int>(1,maxn))) ); in test_mapstride() 127 CALL_SUBTEST_4( map_class_vector<Unaligned>(VectorXcf(internal::random<int>(1,maxn))) ); in test_mapstride() 128 CALL_SUBTEST_5( map_class_vector<Aligned>(VectorXi(internal::random<int>(1,maxn))) ); in test_mapstride() 129 CALL_SUBTEST_5( map_class_vector<Unaligned>(VectorXi(internal::random<int>(1,maxn))) ); in test_mapstride() 139 …_SUBTEST_4( map_class_matrix<Aligned>(MatrixXcf(internal::random<int>(1,maxn),internal::random<int… in test_mapstride() 140 …UBTEST_4( map_class_matrix<Unaligned>(MatrixXcf(internal::random<int>(1,maxn),internal::random<int… in test_mapstride() 141 …L_SUBTEST_5( map_class_matrix<Aligned>(MatrixXi(internal::random<int>(1,maxn),internal::random<int… in test_mapstride() 142 …SUBTEST_5( map_class_matrix<Unaligned>(MatrixXi(internal::random<int>(1,maxn),internal::random<int… in test_mapstride() 143 …_SUBTEST_6( map_class_matrix<Aligned>(MatrixXcd(internal::random<int>(1,maxn),internal::random<int… in test_mapstride() 144 …UBTEST_6( map_class_matrix<Unaligned>(MatrixXcd(internal::random<int>(1,maxn),internal::random<int… in test_mapstride()
|
D | product_symm.cpp | 35 Scalar s1 = internal::random<Scalar>(), in symm() 36 s2 = internal::random<Scalar>(); in symm() 86 …_SUBTEST_1(( symm<float,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE),internal::ra… in test_product_symm() 87 …SUBTEST_2(( symm<double,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE),internal::ra… in test_product_symm() 88 …mm<std::complex<float>,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2),internal::r… in test_product_symm() 89 …m<std::complex<double>,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2),internal::r… in test_product_symm() 91 CALL_SUBTEST_5(( symm<float,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)) )); in test_product_symm() 92 CALL_SUBTEST_6(( symm<double,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)) )); in test_product_symm() 93 …CALL_SUBTEST_7(( symm<std::complex<float>,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE))… in test_product_symm() 94 …CALL_SUBTEST_8(( symm<std::complex<double>,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)… in test_product_symm()
|
D | redux.cpp | 47 Index r0 = internal::random<Index>(0,rows-1); in matrixRedux() 48 Index c0 = internal::random<Index>(0,cols-1); in matrixRedux() 49 Index r1 = internal::random<Index>(r0+1,rows)-r0; in matrixRedux() 50 Index c1 = internal::random<Index>(c0+1,cols)-c0; in matrixRedux() 143 …CALL_SUBTEST_4( matrixRedux(MatrixXcf(internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() 144 …CALL_SUBTEST_4( matrixRedux(ArrayXXcf(internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() 145 …CALL_SUBTEST_5( matrixRedux(MatrixXd (internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() 146 …CALL_SUBTEST_5( matrixRedux(ArrayXXd (internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() 147 …CALL_SUBTEST_6( matrixRedux(MatrixXi (internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() 148 …CALL_SUBTEST_6( matrixRedux(ArrayXXi (internal::random<int>(1,maxsize), internal::random<int>(1,ma… in test_redux() [all …]
|
D | product_extra.cpp | 38 Scalar s1 = internal::random<Scalar>(), in product_extra() 39 s2 = internal::random<Scalar>(), in product_extra() 40 s3 = internal::random<Scalar>(); in product_extra() 89 Index i = internal::random<Index>(0,m1.rows()-2); in product_extra() 90 Index j = internal::random<Index>(0,m1.cols()-2); in product_extra() 91 Index r = internal::random<Index>(1,m1.rows()-i); in product_extra() 92 Index c = internal::random<Index>(1,m1.cols()-j); in product_extra() 93 Index i2 = internal::random<Index>(0,m1.rows()-1); in product_extra() 94 Index j2 = internal::random<Index>(0,m1.cols()-1); in product_extra() 141 …CALL_SUBTEST_1( product_extra(MatrixXf(internal::random<int>(1,EIGEN_TEST_MAX_SIZE), internal::ran… in test_product_extra() [all …]
|
/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/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 …]
|
D | MidpointDisplacementHeightMap.java | 124 Random random = new Random(seed); in load() local 126 tempBuffer[0][0] = random.nextFloat(); in load() 127 tempBuffer[0][size - 1] = random.nextFloat(); in load() 128 tempBuffer[size - 1][0] = random.nextFloat(); in load() 129 tempBuffer[size - 1][size - 1] = random.nextFloat(); in load() 136 nextCoords = doSquareStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load() 140 nextCoords = doDiamondStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load() 169 … doSquareStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) { in doSquareStep() argument 178 float offset = getOffset(random, offsetRange, coords, cornerAverage); in doSquareStep() 201 …doDiamondStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, Random random) { in doDiamondStep() argument [all …]
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
D | scenes.js | 20 body.position.x = Math.random() * 30 - 15; 21 body.position.y = Math.random() * 50 + 10; 22 body.position.z = Math.random() * zwidth - (zwidth/2); 24 body.rotation.x = ( Math.random() * 360 ) * Math.PI / 180; 25 body.rotation.y = ( Math.random() * 360 ) * Math.PI / 180; 26 body.rotation.z = ( Math.random() * 360 ) * Math.PI / 180; 48 body.position.x = Math.random() * 30 - 15; 49 body.position.y = Math.random() * 50 + 10; 50 body.position.z = Math.random() * zwidth - (zwidth/2); 52 body.rotation.x = ( Math.random() * 360 ) * Math.PI / 180; [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()
|
D | KeyPairGeneratorSpi.java | 25 SecureRandom random = new SecureRandom(); field in KeyPairGeneratorSpi 35 SecureRandom random) in initialize() argument 43 this.random = random; in initialize() 48 SecureRandom random) in initialize() argument 57 …param = new DSAKeyGenerationParameters(random, new DSAParameters(dsaParams.getP(), dsaParams.getQ(… in initialize() 69 pGen.init(strength, certainty, random); in generateKeyPair() 70 param = new DSAKeyGenerationParameters(random, pGen.generateParameters()); in generateKeyPair()
|
/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()
|
D | KeyPairGeneratorSpi.java | 31 SecureRandom random = new SecureRandom(); field in KeyPairGeneratorSpi 41 SecureRandom random) in initialize() argument 44 this.random = random; in initialize() 49 SecureRandom random) in initialize() argument 58 …param = new DHKeyGenerationParameters(random, new DHParameters(dhParams.getP(), dhParams.getG(), n… in initialize() 80 …param = new DHKeyGenerationParameters(random, new DHParameters(dhParams.getP(), dhParams.getG(), n… in generateKeyPair() 97 pGen.init(strength, certainty, random); in generateKeyPair() 99 … param = new DHKeyGenerationParameters(random, pGen.generateParameters()); in generateKeyPair()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | DSAParameterGenerationParameters.java | 14 private final SecureRandom random; field in DSAParameterGenerationParameters 28 SecureRandom random) in DSAParameterGenerationParameters() argument 30 this(L, N, certainty, random, -1); in DSAParameterGenerationParameters() 46 SecureRandom random, in DSAParameterGenerationParameters() argument 53 this.random = random; in DSAParameterGenerationParameters() 73 return random; in getRandom()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/ |
D | ISO10126d2Padding.java | 13 SecureRandom random; field in ISO10126d2Padding 20 public void init(SecureRandom random) in init() argument 23 if (random != null) in init() 25 this.random = random; in init() 29 this.random = new SecureRandom(); in init() 55 in[inOff] = (byte)random.nextInt(); in addPadding()
|
D | X923Padding.java | 14 SecureRandom random = null; field in X923Padding 21 public void init(SecureRandom random) in init() argument 24 this.random = random; in init() 49 if (random == null) in addPadding() 55 in[inOff] = (byte)random.nextInt(); in addPadding()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseKeyGenerator.java | 37 SecureRandom random) in engineInit() argument 44 SecureRandom random) in engineInit() argument 46 if (random != null) in engineInit() 48 engine.init(new KeyGenerationParameters(random, defaultKeySize)); in engineInit() 55 SecureRandom random) in engineInit() argument 59 if (random == null) in engineInit() 61 random = new SecureRandom(); in engineInit() 63 engine.init(new KeyGenerationParameters(random, keySize)); in engineInit()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | DHParametersGenerator.java | 12 private SecureRandom random; field in DHParametersGenerator 26 SecureRandom random) in init() argument 30 this.random = random; in init() 44 BigInteger[] safePrimes = DHParametersHelper.generateSafePrimes(size, certainty, random); in generateParameters() 48 BigInteger g = DHParametersHelper.selectGenerator(p, q, random); in generateParameters()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
D | KeyGenerationParameters.java | 10 private SecureRandom random; field in KeyGenerationParameters 21 SecureRandom random, in KeyGenerationParameters() argument 24 this.random = random; in KeyGenerationParameters() 36 return random; in getRandom()
|
/external/skia/tests/ |
D | GLProgramsTest.cpp | 25 void GrGLProgramDesc::setRandom(SkRandom* random, in setRandom() argument 40 header->fEmitsPointSize = random->nextBool(); in setRandom() 48 random->nextULessThan(kColorInputCnt)); in setRandom() 57 random->nextULessThan(kColorInputCnt)); in setRandom() 65 header->fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool(); in setRandom() 68 header->fDiscardIfZeroCoverage = random->nextBool(); in setRandom() 70 bool useLocalCoords = random->nextBool() && currAttribIndex < GrDrawState::kMaxVertexAttribCnt; in setRandom() 115 coverageOutput = static_cast<CoverageOutput>(random->nextULessThan(kCoverageOutputCnt)); in setRandom() 144 SkRandom random; in programUnitTest() local 162 int numStages = random.nextULessThan(maxStages + 1); in programUnitTest() [all …]
|
/external/chromium_org/third_party/skia/src/gpu/effects/ |
D | GrSimpleTextureEffect.cpp | 54 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkRandom* random, in TestCreate() argument 58 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate() 66 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 67 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 69 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate() 76 GrCoordSet coordSet = kCoordSets[random->nextULessThan(GR_ARRAY_COUNT(kCoordSets))]; in TestCreate() 78 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); in TestCreate()
|
/external/skia/src/gpu/effects/ |
D | GrSimpleTextureEffect.cpp | 54 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkRandom* random, in TestCreate() argument 58 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate() 66 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 67 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 69 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate() 76 GrCoordSet coordSet = kCoordSets[random->nextULessThan(GR_ARRAY_COUNT(kCoordSets))]; in TestCreate() 78 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); in TestCreate()
|
/external/skia/gm/ |
D | mixedxfermodes.cpp | 35 SkRandom* random) { in drawShape() argument 38 int shape = random->nextULessThan(5); in drawShape() 105 SkRandom random; in onDraw() local 107 SkScalar s = random.nextRangeScalar(SK_Scalar1 / 8, SK_Scalar1) * maxScale; in onDraw() 108 SkScalar r = random.nextRangeScalar(0, SkIntToScalar(360)); in onDraw() 109 SkScalar dx = random.nextRangeScalar(0, SkIntToScalar(size.fWidth)); in onDraw() 110 SkScalar dy = random.nextRangeScalar(0, SkIntToScalar(size.fHeight)); in onDraw() 111 SkColor color = random.nextU(); in onDraw() 113 static_cast<SkXfermode::Mode>(random.nextULessThan(SkXfermode::kLastMode + 1)); in onDraw() 123 this->drawShape(canvas, p, &random); in onDraw()
|