/external/webrtc/webrtc/modules/audio_coding/test/ |
D | target_delay_unittest.cc | 25 TargetDelayTest() : acm_(AudioCodingModule::Create(0)) {} in TargetDelayTest() 30 EXPECT_TRUE(acm_.get() != NULL); in SetUp() 34 ASSERT_EQ(0, acm_->InitializeReceiver()); in SetUp() 35 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec)); in SetUp() 145 ASSERT_EQ(0, acm_->IncomingPacket(payload_, kFrameSizeSamples * 2, in Push() 153 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &frame)); in Pull() 179 return acm_->SetMinimumPlayoutDelay(delay_ms); in SetMinimumDelay() 183 return acm_->SetMaximumPlayoutDelay(delay_ms); in SetMaximumDelay() 188 acm_->GetNetworkStatistics(&stats); in GetCurrentOptimalDelayMs() 193 return acm_->LeastRequiredDelayMs(); in RequiredDelay() [all …]
|
/external/regex-re2/re2/testing/ |
D | string_generator.cc | 19 random_(false), nrandom_(0), acm_(NULL) { in StringGenerator() 30 delete acm_; in ~StringGenerator() 68 int len = acm_->Uniform(maxlen_+1); in RandomDigits() 71 digits_[i] = acm_->Uniform(alphabet_.size()); in RandomDigits() 97 if (acm_ == NULL) in Random() 98 acm_ = new ACMRandom(seed); in Random() 100 acm_->Reset(seed); in Random()
|
D | regexp_generator.cc | 67 acm_ = &acm; in GenerateRandom() 74 acm_ = NULL; in GenerateRandom() 141 if (nstk == 1 && acm_->Uniform(maxatoms_ + 1 - atoms) == 0) { in GenerateRandomPostfix() 153 if (ops < maxops_ && acm_->Uniform(2) == 0) { in GenerateRandomPostfix() 154 const string& fmt = ops_[acm_->Uniform(ops_.size())]; in GenerateRandomPostfix() 167 if (atoms < maxatoms_ && acm_->Uniform(2) == 0) { in GenerateRandomPostfix() 168 post->push_back(atoms_[acm_->Uniform(atoms_.size())]); in GenerateRandomPostfix()
|
D | string_generator.h | 52 ACMRandom* acm_; // Random number generator variable
|
D | regexp_generator.h | 55 ACMRandom* acm_; // Random generator. variable
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | acm_receive_test_oldapi.cc | 106 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmReceiveTestOldApi() 115 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterDefaultCodecs() 116 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterDefaultCodecs() 118 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterDefaultCodecs() 126 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterNetEqTestCodecs() 127 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterNetEqTestCodecs() 137 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterNetEqTestCodecs() 149 return acm_->RegisterExternalReceiveCodec(rtp_payload_type, external_decoder, in RegisterExternalReceiveCodec() 159 EXPECT_EQ(0, acm_->PlayoutData10Ms(output_freq_hz_, &output_frame)); in Run() 184 acm_->IncomingPacket( in Run()
|
D | acm_receiver_unittest_oldapi.cc | 62 acm_.reset(new AudioCodingModuleImpl(config)); in AcmReceiverTestOldApi() 70 ASSERT_TRUE(acm_.get() != NULL); in SetUp() 73 acm_->InitializeReceiver(); in SetUp() 74 acm_->RegisterTransportCallback(this); in SetUp() 92 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence() 94 auto current_codec = acm_->SendCodec(); in InsertOnePacketOfSilence() 97 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence() 111 ASSERT_GE(acm_->Add10MsData(frame), 0); in InsertOnePacketOfSilence() 158 rtc::scoped_ptr<AudioCodingModule> acm_; member in webrtc::acm2::AcmReceiverTestOldApi 345 ASSERT_EQ(0, acm_->RegisterSendCodec(CodecIdInst(id).inst)); in TEST_F() [all …]
|
D | acm_send_test_oldapi.cc | 31 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmSendTestOldApi() 47 acm_->RegisterTransportCallback(this); in AcmSendTestOldApi() 60 codec_registered_ = (acm_->RegisterSendCodec(codec) == 0); in RegisterCodec() 69 acm_->RegisterExternalSendCodec(external_speech_encoder); in RegisterExternalCodec() 96 RTC_CHECK_GE(acm_->Add10MsData(input_frame_), 0); in NextPacket()
|
D | audio_coding_module_unittest_oldapi.cc | 166 acm_.reset(AudioCodingModule::Create(id_, clock_)); in SetUp() 179 ASSERT_EQ(0, acm_->RegisterTransportCallback(&packet_cb_)); in SetUp() 191 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec_)); in RegisterCodec() 192 ASSERT_EQ(0, acm_->RegisterSendCodec(codec_)); in RegisterCodec() 203 acm_->IncomingPacket(kPayload, kPayloadSizeBytes, rtp_header_)); in InsertPacket() 209 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &audio_frame)); in PullAudio() 213 ASSERT_GE(acm_->Add10MsData(input_frame_), 0); in InsertAudio() 230 rtc::scoped_ptr<AudioCodingModule> acm_; member in webrtc::AudioCodingModuleTestOldApi 248 acm_->GetDecodingCallStatistics(&stats); in TEST_F() 273 acm_->GetDecodingCallStatistics(&stats); in TEST_F() [all …]
|
D | acm_send_test_oldapi.h | 60 AudioCodingModule* acm() { return acm_.get(); } in acm() 71 rtc::scoped_ptr<AudioCodingModule> acm_; variable
|
D | acm_receive_test_oldapi.h | 64 rtc::scoped_ptr<AudioCodingModule> acm_; variable
|