Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 25 of 1551) sorted by relevance

12345678910>>...63

/external/guava/android/guava-tests/test/com/google/common/hash/
DHashTestUtils.java31 import java.util.Random;
97 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN()
106 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE()
115 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT()
124 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR()
133 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT()
142 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_LONG()
151 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_FLOAT()
160 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_DOUBLE()
169 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES()
[all …]
DAbstractNonStreamingHashFunctionTest.java25 import java.util.Random;
41 Random random = new Random(0); in testExhaustive()
57 assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())}); in testPutStringWithLowSurrogate()
63 assertPutString(new char[] {'p', HashTestUtils.randomHighSurrogate(new Random())}); in testPutStringWithHighSurrogate()
69 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate()
70 HashTestUtils.randomHighSurrogate(new Random()) in testPutStringWithLowHighSurrogate()
77 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate()
78 HashTestUtils.randomLowSurrogate(new Random()) in testPutStringWithHighLowSurrogate()
/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java31 import java.util.Random;
97 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN()
106 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE()
115 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT()
124 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR()
133 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT()
142 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_LONG()
151 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_FLOAT()
160 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_DOUBLE()
169 void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES()
[all …]
DAbstractNonStreamingHashFunctionTest.java25 import java.util.Random;
41 Random random = new Random(0); in testExhaustive()
57 assertPutString(new char[] {'p', HashTestUtils.randomLowSurrogate(new Random())}); in testPutStringWithLowSurrogate()
63 assertPutString(new char[] {'p', HashTestUtils.randomHighSurrogate(new Random())}); in testPutStringWithHighSurrogate()
69 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate()
70 HashTestUtils.randomHighSurrogate(new Random()) in testPutStringWithLowHighSurrogate()
77 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate()
78 HashTestUtils.randomLowSurrogate(new Random()) in testPutStringWithHighLowSurrogate()
/external/eigen/test/
Drvalue_types.cpp48 CALL_SUBTEST_1(rvalue_copyassign( MatrixXf::Random(50,50).eval() )); in test_rvalue_types()
49 CALL_SUBTEST_1(rvalue_copyassign( ArrayXXf::Random(50,50).eval() )); in test_rvalue_types()
51 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types()
52 CALL_SUBTEST_1(rvalue_copyassign( Array<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types()
54 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types()
55 CALL_SUBTEST_1(rvalue_copyassign( Array<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types()
57 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,1>::Random().eval() )); in test_rvalue_types()
58 CALL_SUBTEST_2(rvalue_copyassign( Array<float,3,1>::Random().eval() )); in test_rvalue_types()
59 CALL_SUBTEST_2(rvalue_copyassign( Array<float,4,1>::Random().eval() )); in test_rvalue_types()
61 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,2>::Random().eval() )); in test_rvalue_types()
[all …]
Dconservative_resize.cpp25 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 …]
Dgeo_orthomethods.cpp27 Vector3 v0 = Vector3::Random(), in orthomethods_3()
28 v1 = Vector3::Random(), in orthomethods_3()
29 v2 = Vector3::Random(); in orthomethods_3()
36 VERIFY_IS_MUCH_SMALLER_THAN(v1.cross(Vector3::Random()).dot(v1), Scalar(1)); in orthomethods_3()
49 Vector3 vec3 = Vector3::Random(); in orthomethods_3()
56 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(Vector3::Random())).diagonal().… in orthomethods_3()
59 …VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * Matrix3::Random().colwise().cross(vec3)).cwiseAbs().… in orthomethods_3()
65 Vector4 v40 = Vector4::Random(), in orthomethods_3()
66 v41 = Vector4::Random(), in orthomethods_3()
67 v42 = Vector4::Random(); in orthomethods_3()
[all …]
Dgeo_hyperplane.cpp31 VectorType p0 = VectorType::Random(dim); in hyperplane()
32 VectorType p1 = VectorType::Random(dim); in hyperplane()
34 VectorType n0 = VectorType::Random(dim).normalized(); in hyperplane()
35 VectorType n1 = VectorType::Random(dim).normalized(); in hyperplane()
57 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ(); in hyperplane()
58 DiagonalMatrix<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane()
59 Translation<Scalar,HyperplaneType::AmbientDimAtCompileTime> translation(VectorType::Random()); in hyperplane()
61 …aling.diagonal().cwiseAbs().minCoeff()<RealScalar(1e-4)) scaling.diagonal() = VectorType::Random(); in hyperplane()
99 Vector center = Vector::Random(); in lines()
100 Vector u = Vector::Random(); in lines()
[all …]
Dlu.cpp94 m2 = CMatrixType::Random(cols,cols2); in lu_non_invertible()
96 m2 = CMatrixType::Random(cols,cols2); in lu_non_invertible()
102 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
104 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
107 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
112 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
114 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
117 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
136 m1 = MatrixType::Random(size,size); in lu_invertible()
148 m3 = MatrixType::Random(size,size); in lu_invertible()
[all …]
Dgeo_alignedbox.cpp34 VectorType p0 = VectorType::Random(dim); in alignedbox()
35 VectorType p1 = VectorType::Random(dim); in alignedbox()
37 p1 = VectorType::Random(dim); } in alignedbox()
41 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox()
60 BoxType box1(VectorType::Random(dim)); in alignedbox()
61 box1.extend(VectorType::Random(dim)); in alignedbox()
62 BoxType box2(VectorType::Random(dim)); in alignedbox()
63 box2.extend(VectorType::Random(dim)); in alignedbox()
95 VectorType p0 = VectorType::Random(dim); in alignedboxCastTests()
96 VectorType p1 = VectorType::Random(dim); in alignedboxCastTests()
/external/webrtc/rtc_base/
Drandom.cc19 Random::Random(uint64_t seed) { in Random() function in webrtc::Random
24 uint32_t Random::Rand(uint32_t t) { in Rand()
37 uint32_t Random::Rand(uint32_t low, uint32_t high) { in Rand()
42 int32_t Random::Rand(int32_t low, int32_t high) { in Rand()
50 float Random::Rand<float>() { in Rand()
57 double Random::Rand<double>() { in Rand()
64 bool Random::Rand<bool>() { in Rand()
68 double Random::Gaussian(double mean, double standard_deviation) { in Gaussian()
80 double Random::Exponential(double lambda) { in Exponential()
Drandom_unittest.cc39 void UniformBucketTest(T bucket_count, int samples, Random* prng) { in UniformBucketTest()
69 Random prng(7297352569824ull); in TEST()
76 Random prng(7297352569824ull); in TEST()
83 Random prng(7297352569824ull); in TEST()
90 Random prng(7297352569824ull); in TEST()
97 Random prng(7297352569824ull); in TEST()
104 Random prng(7297352569824ull); in TEST()
118 Random* prng) { in BucketTestSignedInterval()
158 Random* prng) { in BucketTestUnsignedInterval()
191 Random prng(299792458ull); in TEST()
[all …]
Drandom.h23 class Random {
36 explicit Random(uint64_t seed);
77 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Random);
82 float Random::Rand<float>();
86 double Random::Rand<double>();
90 bool Random::Rand<bool>();
/external/deqp/framework/delibs/decpp/
DdeRandom.cpp39 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 …]
DdeRandom.hpp38 class Random class
41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random
42 ~Random (void) {} in ~Random()
71 bool operator== (const Random& other) const;
72 bool operator!= (const Random& other) const;
80 inline float Random::getFloat (float min, float max) in getFloat()
86 inline double Random::getDouble (double min, double max) in getDouble()
92 inline int Random::getInt (int min, int max) in getInt()
104 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems) in choose()
127 T Random::choose (InputIter first, InputIter last) in choose()
[all …]
/external/deqp/framework/common/
DtcuRandomValueIterator.hpp33 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/rappor/client/javatest/com/google/android/rappor/
DEncoderTest.java21 import java.util.Random;
711 Random random = new Random(); in testEncoderEncodeBits_irrFlipProbability()
796 Random random1 = new Random(); in testEncoderEncodeBits_endToEnd()
819 Random random2 = new Random(); in testEncoderEncodeBits_endToEnd()
852 Random random0 = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
877 Random random31 = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
900 Random randomRange = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
932 Random random0 = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
957 Random random63 = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
980 Random randomRange = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DShuffleOrder.java20 import java.util.Random;
34 private final Random random;
44 this(length, new Random()); in DefaultShuffleOrder()
55 this(length, new Random(randomSeed)); in DefaultShuffleOrder()
66 this(Arrays.copyOf(shuffledIndices, shuffledIndices.length), new Random(randomSeed)); in DefaultShuffleOrder()
69 private DefaultShuffleOrder(int length, Random random) { in DefaultShuffleOrder()
73 private DefaultShuffleOrder(int[] shuffled, Random random) { in DefaultShuffleOrder()
134 return new DefaultShuffleOrder(newShuffled, new Random(random.nextLong())); in cloneAndInsert()
150 return new DefaultShuffleOrder(newShuffled, new Random(random.nextLong())); in cloneAndRemove()
155 return new DefaultShuffleOrder(/* length= */ 0, new Random(random.nextLong())); in cloneAndClear()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DRandomTrackSelection.java26 import java.util.Random;
39 private final Random random;
42 random = new Random(); in Factory()
49 random = new Random(seed); in Factory()
61 private final Random random;
72 random = new Random(); in RandomTrackSelection()
83 this(group, tracks, new Random(seed)); in RandomTrackSelection()
92 public RandomTrackSelection(TrackGroup group, int[] tracks, Random random) { in RandomTrackSelection()
/external/okio/okio/src/jvmTest/kotlin/okio/
DCipherSinkTest.kt21 import kotlin.random.Random in <lambda>()
34 val random = Random(8912860393601532863) in <lambda>()
49 val random = Random(3014415396541767201) in <lambda>()
64 val random = Random(4800508322764694019) in <lambda>()
79 val random = Random(4374178522096702290) in <lambda>()
100 val random = Random(7515202505362968404) in <lambda>()
117 val random = Random(488375923060579687) in <lambda>()
132 val random = Random(-9063010151894844496) in <lambda>()
147 val random = Random(993064087526004362) in <lambda>()
162 val random = Random(2621474675920878975) in <lambda>()
[all …]
DCipherSourceTest.kt21 import kotlin.random.Random
34 val random = Random(787679144228763091) in encrypt()
48 val random = Random(1057830944394705953) in encryptEmpty()
62 val random = Random(8185922876836480815) in encryptLarge()
76 val random = Random(6085265142433950622) in encryptSingleByteSource()
91 val random = Random(4190481737015278225) in encryptPaddingRequired()
107 val random = Random(8067587635762239433) in decrypt()
121 val random = Random(8722996896871347396) in decryptEmpty()
135 val random = Random(4007116131070653181) in decryptLarge()
149 val random = Random(1555017938547616655) in decryptSingleByteSource()
[all …]
/external/libaom/libaom/test/
Dacm_random.h31 return random_.Generate(testing::internal::Random::kMaxRange); in Rand31()
36 random_.Generate(testing::internal::Random::kMaxRange); in Rand16()
42 random_.Generate(testing::internal::Random::kMaxRange); in Rand15Signed()
48 random_.Generate(testing::internal::Random::kMaxRange); in Rand12()
61 random_.Generate(testing::internal::Random::kMaxRange); in Rand8()
80 testing::internal::Random random_;
/external/skqp/bench/
DRectoriBench.cpp29 SkRandom Random; in onDraw() local
32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw()
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw()
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw()
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
56 paint.setColor(0xff000000 | Random.nextU()); in onDraw()
/external/gemmlowp/test/
Dtest_math_helpers.cc32 int RandomNonnegativeFarAwayFromOverflow() { return Random() % (1 << 24); } in RandomNonnegativeFarAwayFromOverflow()
50 test_round_up_down<Modulus>(Random() % N); in test_round_up_down()
67 test_ceil_quotient(x, Integer(1 + (Random() % (N - 1)))); in test_ceil_quotient()
68 test_ceil_quotient(Integer(Random() % N), y); in test_ceil_quotient()
69 test_ceil_quotient(Integer(Random() % N), in test_ceil_quotient()
70 Integer(1 + (Random() % (N - 1)))); in test_ceil_quotient()
89 test_round_up_to_next_power_of_two(Random() % N); in test_round_up_to_next_power_of_two()
/external/angle/third_party/abseil-cpp/absl/container/internal/
Draw_hash_set_probe_benchmark.cc360 struct Random { struct
365 struct Random<Ptr<Align>*, Dist> { struct
367 return MakePtr<Align>(Random<uintptr_t, Dist>{}() * Align); in operator ()()
372 struct Random<IntIdentity, Dist> { struct
374 return IntIdentity{Random<uint64_t, Dist>{}()}; in operator ()()
379 struct Random<PtrIdentity<Align>, Dist> { struct
381 return PtrIdentity<Align>{Random<uintptr_t, Dist>{}() * Align}; in operator ()()
386 struct Random<String<small>, Dist> { struct
388 return String<small>::Make(Random<uint32_t, Dist>{}()); in operator ()()
393 struct Random<std::pair<T, U>, Dist> { struct
[all …]

12345678910>>...63