Home
last modified time | relevance | path

Searched refs:random (Results 1 – 25 of 1267) sorted by relevance

12345678910>>...51

/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java92 @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/skia/src/gpu/
DGrTestUtils.cpp17 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/
DBitsStreamGenerator.java17 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/
Dproduct_large.cpp15 …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()
Dlinearstructure.cpp30 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()
Dmapstride.cpp126 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()
Dproduct_symm.cpp33 Scalar s1 = internal::random<Scalar>(), in symm()
34 s2 = internal::random<Scalar>(); in symm()
84 …_SUBTEST_1(( symm<float,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE),internal::ra… in test_product_symm()
85 …SUBTEST_2(( symm<double,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE),internal::ra… in test_product_symm()
86 …mm<std::complex<float>,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2),internal::r… in test_product_symm()
87 …m<std::complex<double>,Dynamic,Dynamic>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2),internal::r… in test_product_symm()
89 CALL_SUBTEST_5(( symm<float,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)) )); in test_product_symm()
90 CALL_SUBTEST_6(( symm<double,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)) )); in test_product_symm()
91 …CALL_SUBTEST_7(( symm<std::complex<float>,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE))… in test_product_symm()
92 …CALL_SUBTEST_8(( symm<std::complex<double>,Dynamic,1>(internal::random<int>(1,EIGEN_TEST_MAX_SIZE)… in test_product_symm()
/external/autotest/client/site_tests/graphics_dEQP/expectations/rogue/
DdEQP-GLES2.stress.NotSupported.bz2 ... texture_512x512_rgba_write_use 33dEQP-GLES2.stress.memory.random.buffer_large_no_write_no_use 34dEQP-GLES2.stress.memory ...
DdEQP-GLES2.stress.CompatibilityWarning.bz2 ... dEQP-GLES2.stress.draw.unaligned_data.random.11 3dEQP-GLES2.stress.draw ...
/external/autotest/client/site_tests/graphics_dEQP/expectations/broadwell/
DdEQP-GLES2.functional.hasty.Flaky.bz2 ... dEQP-GLES2.functional.buffer.write.random.0 27dEQP-GLES2.functional.buffer ...
DdEQP-GLES2.functional.Fail.bz2 ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0 70dEQP-GLES2.functional.fragment_ops ...
/external/skia/include/gpu/
DGrTestUtils.h43 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/autotest/client/site_tests/graphics_dEQP/expectations/sandybridge/
DdEQP-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/
DdEQP-GLES2.functional.Fail.bz2
/external/autotest/client/site_tests/graphics_dEQP/expectations/ivybridge/
DdEQP-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/
DdEQP-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/
DdEQP-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/
DdEQP-GLES2.functional.Fail.bz2 ... dEQP-GLES2.functional.fragment_ops.depth_stencil.random.0 70dEQP-GLES2.functional.fragment_ops ...
/external/skia/src/gpu/batches/
DGrDrawAtlasBatch.cpp202 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/
DAlgorithmParameterGeneratorSpi.java19 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/
DAlgorithmParameterGeneratorSpi.java18 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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java49 SecureRandom random = new SecureRandom(); field in KeyPairGeneratorSpi.EC
86 SecureRandom random) in initialize() argument
90 if (random != null) { in initialize()
92 this.random = random; in initialize()
105 initialize(ecParams, random); in initialize()
115 SecureRandom random) in initialize() argument
119 if (random == null) { in initialize()
120 random = this.random; in initialize()
132 this.param = createKeyGenParamsBC(implicitCA, random); in initialize()
137 this.param = createKeyGenParamsBC((ECParameterSpec)params, random); in initialize()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DDSAParameterGenerationParameters.java14 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/
DISO10126d2Padding.java13 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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseKeyGenerator.java37 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()

12345678910>>...51