/external/chromium_org/third_party/webrtc/modules/audio_coding/main/acm2/ |
D | acm_receive_test.cc | 37 acm_.reset(webrtc::AudioCoding::Create(config)); in AcmReceiveTest() 41 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kOpus, 120)); in RegisterDefaultCodecs() 42 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISAC, 103)); in RegisterDefaultCodecs() 44 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISACSWB, 104)); in RegisterDefaultCodecs() 45 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISACFB, 105)); in RegisterDefaultCodecs() 47 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCM16B, 107)); in RegisterDefaultCodecs() 48 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCM16Bwb, 108)); in RegisterDefaultCodecs() 50 acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCM16Bswb32kHz, 109)); in RegisterDefaultCodecs() 51 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCM16B_2ch, 111)); in RegisterDefaultCodecs() 52 ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCM16Bwb_2ch, 112)); in RegisterDefaultCodecs() [all …]
|
D | acm_receive_test_oldapi.cc | 109 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmReceiveTestOldApi() 118 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterDefaultCodecs() 119 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterDefaultCodecs() 121 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterDefaultCodecs() 129 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterNetEqTestCodecs() 130 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterNetEqTestCodecs() 140 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterNetEqTestCodecs() 152 EXPECT_EQ(0, acm_->PlayoutData10Ms(output_freq_hz_, &output_frame)); in Run() 175 acm_->IncomingPacket( in Run()
|
D | acm_receiver_unittest_oldapi.cc | 51 acm_.reset(new AudioCodingModuleImpl(config)); in AcmReceiverTestOldApi() 59 ASSERT_TRUE(acm_.get() != NULL); in SetUp() 64 acm_->InitializeReceiver(); in SetUp() 65 acm_->InitializeSender(); in SetUp() 66 acm_->RegisterTransportCallback(this); in SetUp() 85 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence() 88 ASSERT_EQ(0, acm_->SendCodec(¤t_codec)); in InsertOnePacketOfSilence() 90 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence() 105 ASSERT_EQ(0, acm_->Add10MsData(frame)); in InsertOnePacketOfSilence() 106 num_bytes = acm_->Process(); in InsertOnePacketOfSilence() [all …]
|
D | audio_coding_module_unittest_oldapi.cc | 130 acm_.reset(AudioCodingModule::Create(id_, clock_)); in SetUp() 145 ASSERT_EQ(0, acm_->RegisterTransportCallback(&packet_cb_)); in SetUp() 153 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec_)); in RegisterCodec() 154 ASSERT_EQ(0, acm_->RegisterSendCodec(codec_)); in RegisterCodec() 165 acm_->IncomingPacket(kPayload, kPayloadSizeBytes, rtp_header_)); in InsertPacket() 171 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &audio_frame)); in PullAudio() 175 ASSERT_EQ(0, acm_->Add10MsData(input_frame_)); in InsertAudio() 180 int32_t encoded_bytes = acm_->Process(); in Encode() 188 scoped_ptr<AudioCodingModule> acm_; member in webrtc::AudioCodingModuleTestOldApi 200 acm_->GetDecodingCallStatistics(&stats); in TEST_F() [all …]
|
D | acm_receiver_unittest.cc | 52 acm_.reset(new AudioCodingImpl(config)); in AcmReceiverTest() 60 ASSERT_TRUE(acm_.get() != NULL); in SetUp() 82 ASSERT_TRUE(acm_->RegisterSendCodec(codec_id, codec.pltype)); in InsertOnePacketOfSilence() 84 const CodecInst* current_codec = acm_->GetSenderCodecInst(); in InsertOnePacketOfSilence() 87 ASSERT_TRUE(acm_->RegisterSendCodec(codec_id, codec.pltype)); in InsertOnePacketOfSilence() 102 num_bytes = acm_->Add10MsAudio(frame); in InsertOnePacketOfSilence() 150 scoped_ptr<AudioCoding> acm_; member in webrtc::acm2::AcmReceiverTest 306 ASSERT_TRUE(acm_->RegisterSendCodec(kCngId[n], codecs_[kCngId[n]].pltype)); in TEST_F() 315 ASSERT_TRUE(acm_->SetVad(true, true, VADVeryAggr)); in TEST_F() 329 acm_->SetVad(false, false, VADAggr); in TEST_F() [all …]
|
D | acm_send_test_oldapi.cc | 30 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmSendTestOldApi() 45 acm_->RegisterTransportCallback(this); in AcmSendTestOldApi() 58 codec_registered_ = (acm_->RegisterSendCodec(codec_) == 0); in RegisterCodec() 83 CHECK_EQ(0, acm_->Add10MsData(input_frame_)); in NextPacket() 85 int32_t encoded_bytes = acm_->Process(); in NextPacket()
|
D | audio_coding_module_unittest.cc | 144 acm_.reset(AudioCoding::Create(config_)); in CreateAcm() 145 ASSERT_TRUE(acm_.get() != NULL); in CreateAcm() 165 ASSERT_TRUE(acm_->RegisterSendCodec(codec_type, kPayloadType)); in RegisterCodec() 166 ASSERT_TRUE(acm_->RegisterReceiveCodec(codec_type, kPayloadType)); in RegisterCodec() 176 ASSERT_TRUE(acm_->InsertPacket(kPayload, kPayloadSizeBytes, rtp_header_)); in InsertPacket() 182 ASSERT_TRUE(acm_->Get10MsAudio(&audio_frame)); in PullAudio() 186 int encoded_bytes = acm_->Add10MsAudio(input_frame_); in InsertAudio() 193 scoped_ptr<AudioCoding> acm_; member in webrtc::AudioCodingModuleTest 204 acm_->GetDecodingCallStatistics(&stats); in TEST_F() 226 acm_->GetDecodingCallStatistics(&stats); in TEST_F() [all …]
|
D | acm_send_test.cc | 42 acm_.reset(webrtc::AudioCoding::Create(config)); in AcmSendTest() 55 acm_->RegisterSendCodec(codec_type, payload_type, frame_size_samples); in RegisterCodec() 80 int32_t encoded_bytes = acm_->Add10MsAudio(input_frame_); in NextPacket()
|
D | acm_receive_test.h | 53 scoped_ptr<AudioCoding> acm_; variable
|
D | acm_receive_test_oldapi.h | 52 scoped_ptr<AudioCodingModule> acm_; variable
|
D | acm_send_test.h | 64 scoped_ptr<AudioCoding> acm_; variable
|
D | acm_send_test_oldapi.h | 66 scoped_ptr<AudioCodingModule> acm_; variable
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/test/ |
D | target_delay_unittest.cc | 26 TargetDelayTest() : acm_(AudioCodingModule::Create(0)) {} in TargetDelayTest() 31 EXPECT_TRUE(acm_.get() != NULL); in SetUp() 35 ASSERT_EQ(0, acm_->InitializeReceiver()); in SetUp() 36 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec)); in SetUp() 146 ASSERT_EQ(0, acm_->IncomingPacket(payload_, kFrameSizeSamples * 2, in Push() 154 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &frame)); in Pull() 180 return acm_->SetMinimumPlayoutDelay(delay_ms); in SetMinimumDelay() 184 return acm_->SetMaximumPlayoutDelay(delay_ms); in SetMaximumDelay() 189 acm_->NetworkStatistics(&stats); in GetCurrentOptimalDelayMs() 194 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/chromium_org/third_party/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
|