Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/test/
Dacm_random.h26 ACMRandom() : random_(DeterministicSeed()) {} in ACMRandom()
28 explicit ACMRandom(int seed) : random_(seed) {} in ACMRandom()
30 void Reset(int seed) { random_.Reseed(seed); } in Reset()
33 random_.Generate(testing::internal::Random::kMaxRange); in Rand16()
39 const uint32_t value = random_.Generate(1048576); in Rand20Signed()
45 return static_cast<int16_t>(random_.Generate(65536)); in Rand16Signed()
50 const uint32_t value = random_.Generate(8192); in Rand13Signed()
56 const uint32_t value = random_.Generate(512); in Rand9Signed()
62 random_.Generate(testing::internal::Random::kMaxRange); in Rand8()
78 return random_.Generate(range); in RandRange()
[all …]
/external/libaom/libaom/test/
Dacm_random.h23 ACMRandom() : random_(DeterministicSeed()) {} in ACMRandom()
25 explicit ACMRandom(int seed) : random_(seed) {} in ACMRandom()
27 void Reset(int seed) { random_.Reseed(seed); } in Reset()
31 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()
55 const uint32_t value = random_.Generate(512); in Rand9Signed()
61 random_.Generate(testing::internal::Random::kMaxRange); in Rand8()
73 int PseudoUniform(int range) { return random_.Generate(range); } in PseudoUniform()
[all …]
Dnoise_model_test.cc340 virtual void SetUp() { random_.Reset(171); } in SetUp()
343 libaom_test::ACMRandom random_; member in FlatBlockEstimatorTest
424 ((uint8_t)(128 + randn(&this->random_, 5))) << shift; in TYPED_TEST_P()
436 ((uint8_t)(randn(&this->random_, 1) + x + 128.0)) << shift; in TYPED_TEST_P()
440 ((uint8_t)(randn(&this->random_, 2) + y + 128.0)) << shift; in TYPED_TEST_P()
445 ((uint8_t)(randn(&this->random_, 1) + strong_edge + 128.0)) << shift; in TYPED_TEST_P()
450 ((uint8_t)(randn(&this->random_, 1) + big_check + 128.0)) << shift; in TYPED_TEST_P()
522 random_.Reset(100171); in SetUp()
566 libaom_test::ACMRandom random_; member in NoiseModelUpdateTest
604 int(64 + y + randn(&this->random_, 1)) << shift; in TYPED_TEST_P()
[all …]
/external/libprotobuf-mutator/src/
Dmutator.cc185 random_(random), in MutationSampler()
217 oneof->field(GetRandomIndex(random_, oneof->field_count())); in SampleImpl()
235 size_t random_index = GetRandomIndex(random_, field_size + 1); in SampleImpl()
240 size_t random_index = GetRandomIndex(random_, field_size); in SampleImpl()
284 RandomEngine* random_; member in protobuf_mutator::__anon4db2e1e30111::MutationSampler
302 random_(random), in DataSourceSampler()
345 GetRandomIndex(random_, field_size)); in SampleImpl()
360 RandomEngine* random_; member in protobuf_mutator::__anon4db2e1e30111::DataSourceSampler
437 random_(random) {} in PostProcessing()
496 it->second(message, (*random_)()); in Run()
[all …]
Dweighted_reservoir_sampler.h34 explicit WeightedReservoirSampler(RandomEngine* random) : random_(random) {} in WeightedReservoirSampler()
49 1, total_weight_)(*random_) <= weight; in Pick()
54 RandomEngine* random_; variable
Dmutator.h87 RandomEngine* random() { return &random_; } in random()
100 RandomEngine 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_);
Drtp_sender.cc131 random_(clock_->TimeInMicroseconds()), in RTPSender()
189 sequence_number_rtx_ = random_.Rand(1, kMaxInitRtpSeqNumber); in RTPSender()
190 sequence_number_ = random_.Rand(1, kMaxInitRtpSeqNumber); in RTPSender()
1661 sequence_number_ = random_.Rand(1, kMaxInitRtpSeqNumber); in SetSendingStatus()
1723 sequence_number_ = random_.Rand(1, kMaxInitRtpSeqNumber); in SetSSRC()
/external/v8/src/profiler/
Dsampling-heap-profiler.h136 random_(random), in Observer()
156 base::RandomNumberGenerator* const random_; variable
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_dns_cache.h65 std::default_random_engine random_ GUARDED_BY(mu_);
Dgcs_dns_cache.cc87 SelectRandomItemUniform(&random_, addresses); in AnnotateRequest()
/external/googletest/googletest/test/
Dgoogletest-port-test.cc1015 value_(0), mutex_(mutex), random_(42) {} in AtomicCounterWithMutex()
1033 SleepMilliseconds(static_cast<int>(random_.Generate(30))); in Increment()
1041 SleepMilliseconds(static_cast<int>(random_.Generate(30))); in Increment()
1054 Random random_; member in testing::internal::AtomicCounterWithMutex
Dgtest_unittest.cc900 VectorShuffleTest() : random_(1) { in VectorShuffleTest()
951 testing::internal::Random random_; member in __anon47b72e3d0111::VectorShuffleTest
959 ShuffleRange(&random_, 0, 0, &vector_); in TEST_F()
964 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2, &vector_); in TEST_F()
969 ShuffleRange(&random_, kVectorSize - 1, kVectorSize - 1, &vector_); in TEST_F()
974 ShuffleRange(&random_, kVectorSize, kVectorSize, &vector_); in TEST_F()
981 ShuffleRange(&random_, 0, 1, &vector_); in TEST_F()
986 ShuffleRange(&random_, kVectorSize/2, kVectorSize/2 + 1, &vector_); in TEST_F()
991 ShuffleRange(&random_, kVectorSize - 1, kVectorSize, &vector_); in TEST_F()
1000 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 __anon9187a6d20111::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/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/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-internal-inl.h792 internal::Random* random() { return &random_; } in random()
899 internal::Random random_; variable

12