Home
last modified time | relevance | path

Searched refs:random_ (Results 1 – 25 of 43) sorted by relevance

12

/external/libvpx/libvpx/test/
Dacm_random.h22 ACMRandom() : random_(DeterministicSeed()) {} in ACMRandom()
24 explicit ACMRandom(int seed) : random_(seed) {} in ACMRandom()
27 random_.Reseed(seed); in Reset()
31 random_.Generate(testing::internal::Random::kMaxRange); in Rand16()
37 random_.Generate(testing::internal::Random::kMaxRange); in Rand8()
50 return random_.Generate(range); in PseudoUniform()
62 testing::internal::Random random_;
/external/regex-re2/re2/testing/
Dstring_generator.cc19 random_(false), nrandom_(0), acm_(NULL) { in StringGenerator()
37 random_ = false; in Reset()
90 hasnext_ = random_ ? RandomDigits() : IncrementDigits(); in Next()
102 random_ = true; in Random()
Dstring_generator.h50 bool random_; // Whether generated strings are random. variable
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dbwe_simulations.cc30 : BweTest(), random_(Clock::GetRealTimeClock()->TimeInMicroseconds()) {} in BweSimulation()
39 Random random_; member in webrtc::testing::bwe::BweSimulation
284 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P()
286 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P()
296 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P()
298 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P()
308 offsets_ms[0] = random_.Rand(2 * kAverageOffsetMs); in TEST_P()
310 offsets_ms[i] = offsets_ms[i - 1] + random_.Rand(2 * kAverageOffsetMs); in TEST_P()
317 int64_t offset_ms[] = {random_.Rand(2 * kAverageOffsetMs), 0}; in TEST_P()
323 int64_t offset_ms[] = {random_.Rand(2 * kAverageOffsetMs), 0}; in TEST_P()
[all …]
Dremote_bitrate_estimators_test.cc249 : BweTest(), random_(Clock::GetRealTimeClock()->TimeInMicroseconds()) {} in BweFeedbackTest()
254 random_((getpid() | 1) *
260 Random random_; member in webrtc::testing::bwe::BweFeedbackTest
363 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
377 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
391 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
404 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
417 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
430 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); in TEST_P()
Doveruse_detector_unittest.cc42 random_(123456789) {} in OveruseDetectorTest()
62 random_.Gaussian(0, standard_deviation_ms) + 0.5)); in Run100000Samples()
85 random_.Gaussian(0, standard_deviation_ms) + 0.5)); in RunUntilOveruse()
120 Random random_; member in webrtc::testing::OveruseDetectorTest
127 int index = random_.Gaussian(49, 10); in TEST_F()
228 offset = random_.Rand(0, 49); in TEST_F()
260 offset = random_.Rand(0, 1); in TEST_F()
296 offset = random_.Rand(0, 1); in TEST_F()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_framework.cc304 random_(0x12345678), in LossFilter()
311 random_(0x12345678), in LossFilter()
326 if (random_.Rand<float>() < loss_fraction_) { in RunFor()
368 random_(0x89674523), in JitterFilter()
377 random_(0x89674523), in JitterFilter()
406 std::abs(TruncatedNSigmaGaussian(&random_, 0, stddev_jitter_us_)); in RunFor()
437 random_(0x27452389), in ReorderFilter()
444 random_(0x27452389), in ReorderFilter()
462 if (random_.Rand<float>() < reorder_fraction_) { in RunFor()
683 random_(0x12345678), in VideoSource()
[all …]
Dbwe_test_framework.h270 Random random_;
304 Random random_;
323 Random random_;
420 Random random_;
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dssrc_database.cc37 uint32_t ssrc = random_.Rand(1u, 0xfffffffe); in CreateSSRC()
55 : crit_(CriticalSectionWrapper::CreateCriticalSection()), random_(Seed()) {} in SSRCDatabase()
Drtp_fec_unittest.cc45 : random_(0xfec133700742), in RtpFecTest()
47 ssrc_(random_.Rand<uint32_t>()), in RtpFecTest()
50 webrtc::Random random_; member in RtpFecTest
899 int time_stamp = random_.Rand<int>(); in ConstructMediaPacketsSeqNum()
908 media_packet->length = random_.Rand(kMinPacketSize, kMaxPacketSize); in ConstructMediaPacketsSeqNum()
911 media_packet->data[0] = random_.Rand<uint8_t>(); in ConstructMediaPacketsSeqNum()
912 media_packet->data[1] = random_.Rand<uint8_t>(); in ConstructMediaPacketsSeqNum()
935 media_packet->data[j] = random_.Rand<uint8_t>(); in ConstructMediaPacketsSeqNum()
946 return ConstructMediaPacketsSeqNum(num_media_packets, random_.Rand<int>()); in ConstructMediaPackets()
Dssrc_database.h46 Random random_ GUARDED_BY(crit_);
/external/protobuf/gtest/test/
Dgtest_unittest.cc634 VectorShuffleTest() : random_(1) { in VectorShuffleTest()
685 testing::internal::Random random_; member in __anond66c141c0111::VectorShuffleTest
693 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
698 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
703 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
708 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
715 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
720 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
725 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
734 Shuffle(&random_, &vector_); in TEST_F()
[all …]
Dgtest-port_test.cc828 value_(0), mutex_(mutex), random_(42) {} in AtomicCounterWithMutex()
844 SleepMilliseconds(random_.Generate(30)); in Increment()
855 Random random_; member in testing::internal::AtomicCounterWithMutex
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest_unittest.cc841 VectorShuffleTest() : random_(1) { in VectorShuffleTest()
892 testing::internal::Random random_; member in __anone17a6e340111::VectorShuffleTest
900 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
905 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
910 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
915 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
922 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
927 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
932 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
941 Shuffle(&random_, &vector_); in TEST_F()
[all …]
Dgtest-port_test.cc1059 value_(0), mutex_(mutex), random_(42) {} in AtomicCounterWithMutex()
1077 SleepMilliseconds(random_.Generate(30)); in Increment()
1085 SleepMilliseconds(random_.Generate(30)); in Increment()
1098 Random random_; member in testing::internal::AtomicCounterWithMutex
/external/gtest/test/
Dgtest_unittest.cc841 VectorShuffleTest() : random_(1) { in VectorShuffleTest()
892 testing::internal::Random random_; member in __anone2016a1c0111::VectorShuffleTest
900 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
905 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
910 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
915 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
922 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
927 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
932 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
941 Shuffle(&random_, &vector_); in TEST_F()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest_unittest.cc768 VectorShuffleTest() : random_(1) { in VectorShuffleTest()
819 testing::internal::Random random_; member in __anon782ec7330111::VectorShuffleTest
827 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
832 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
837 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
842 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
849 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
854 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
859 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
868 Shuffle(&random_, &vector_); in TEST_F()
[all …]
Dgtest-port_test.cc1021 value_(0), mutex_(mutex), random_(42) {} in AtomicCounterWithMutex()
1037 SleepMilliseconds(random_.Generate(30)); in Increment()
1049 Random random_; member in testing::internal::AtomicCounterWithMutex
/external/ImageMagick/MagickCore/
DMakefile.am230 MagickCore/random_.h \
384 MagickCore/random_.h \
455 MagickCore/random_-private.h \
/external/google-breakpad/src/testing/gtest/src/
Dgtest-internal-inl.h788 internal::Random* random() { return &random_; } in random()
895 internal::Random random_; variable
/external/llvm/utils/unittest/googletest/src/
Dgtest-internal-inl.h777 internal::Random* random() { return &random_; } in random()
884 internal::Random random_; variable
/external/mesa3d/src/gtest/src/
Dgtest-internal-inl.h774 internal::Random* random() { return &random_; } in random()
881 internal::Random random_; variable
/external/protobuf/gtest/src/
Dgtest-internal-inl.h832 internal::Random* random() { return &random_; } in random()
931 internal::Random random_; variable
/external/libchrome/base/metrics/
Dfield_trial.cc170 if (group_ == kNotFinalized && accumulated_group_probability_ > random_) { in AppendGroup()
230 random_(GetGroupBoundaryValue(total_probability, entropy_value)), in FieldTrial()
Dfield_trial.h279 Probability random_; variable

12