Home
last modified time | relevance | path

Searched refs:apm (Results 1 – 25 of 33) sorted by relevance

12

/external/adhd/cras/src/server/
Dcras_apm_list.c131 static void apm_destroy(struct cras_apm **apm) in apm_destroy() argument
133 if (*apm == NULL) in apm_destroy()
135 byte_buffer_destroy(&(*apm)->buffer); in apm_destroy()
136 float_buffer_destroy(&(*apm)->fbuffer); in apm_destroy()
137 cras_audio_area_destroy((*apm)->area); in apm_destroy()
140 webrtc_apm_destroy((*apm)->apm_ptr); in apm_destroy()
141 free(*apm); in apm_destroy()
142 *apm = NULL; in apm_destroy()
168 struct cras_apm *apm; in cras_apm_list_get() local
173 DL_FOREACH(list->apms, apm) { in cras_apm_list_get()
[all …]
Dcras_apm_list.h84 int cras_apm_list_process(struct cras_apm *apm,
96 struct cras_audio_area *cras_apm_list_get_processed(struct cras_apm *apm);
104 void cras_apm_list_put_processed(struct cras_apm *apm, unsigned int frames);
110 struct cras_audio_format *cras_apm_list_get_format(struct cras_apm *apm);
168 static inline int cras_apm_list_process(struct cras_apm *apm, in cras_apm_list_process() argument
176 struct cras_apm *apm) in cras_apm_list_get_processed() argument
181 static inline void cras_apm_list_put_processed(struct cras_apm *apm, in cras_apm_list_put_processed() argument
187 struct cras_apm *apm) in cras_apm_list_get_format() argument
Dinput_data.c97 struct cras_apm *apm; in input_data_get_for_stream() local
109 apm = cras_apm_list_get(stream->apm_list, data->dev_ptr); in input_data_get_for_stream()
110 if (apm == NULL) in input_data_get_for_stream()
113 apm_processed = cras_apm_list_process(apm, data->fbuffer, *offset); in input_data_get_for_stream()
115 cras_apm_list_remove(stream->apm_list, apm); in input_data_get_for_stream()
119 *area = cras_apm_list_get_processed(apm); in input_data_get_for_stream()
130 struct cras_apm *apm = cras_apm_list_get( in input_data_put_for_stream() local
133 if (apm) in input_data_put_for_stream()
134 cras_apm_list_put_processed(apm, frames); in input_data_put_for_stream()
Dcras_rstream.c292 struct cras_apm *apm; in cras_rstream_post_processing_format() local
297 apm = cras_apm_list_get(stream->apm_list, dev_ptr); in cras_rstream_post_processing_format()
298 if (NULL == apm) in cras_rstream_post_processing_format()
300 return cras_apm_list_get_format(apm); in cras_rstream_post_processing_format()
/external/webrtc/webrtc/modules/audio_processing/test/
Dprocess_test.cc149 rtc::scoped_ptr<AudioProcessing> apm(AudioProcessing::Create()); in void_main() local
150 ASSERT_TRUE(apm.get() != NULL); in void_main()
178 ASSERT_EQ(apm->kNoError, apm->level_estimator()->Enable(true)); in void_main()
221 ASSERT_EQ(apm->kNoError, apm->echo_cancellation()->Enable(true)); in void_main()
222 ASSERT_EQ(apm->kNoError, in void_main()
223 apm->echo_cancellation()->enable_metrics(true)); in void_main()
224 ASSERT_EQ(apm->kNoError, in void_main()
225 apm->echo_cancellation()->enable_delay_logging(true)); in void_main()
228 ASSERT_EQ(apm->kNoError, apm->echo_cancellation()->Enable(true)); in void_main()
231 ASSERT_EQ(apm->kNoError, in void_main()
[all …]
Ddebug_dump_test.cc81 AudioProcessing* apm() const { return apm_.get(); } in apm() function in webrtc::test::__anonb0cb46c90111::DebugDumpGenerator
527 EchoCancellation* aec = generator.apm()->echo_cancellation(); in TEST_F()
542 EchoCancellation* aec = generator.apm()->echo_cancellation(); in TEST_F()
553 EchoCancellation* aec = generator.apm()->echo_cancellation(); in TEST_F()
579 GainControl* agc = generator.apm()->gain_control(); in TEST_F()
593 NoiseSuppression* ns = generator.apm()->noise_suppression(); in TEST_F()
Dapmtest.m12 % 'apm' The standard APM test set (default).
60 tests = {'apm','apmm','aec','aecm','agc','ns','vad'};
97 if strcmp(tests{i}, 'apm')
98 testdir = ['apm/'];
108 elseif strcmp(tests{i}, 'apm-swb')
110 testdir = ['apm-swb/'];
/external/webrtc/webrtc/modules/audio_processing/
Daudio_processing_performance_unittest.cc237 AudioProcessing* apm, in TimedThreadApiProcessor() argument
246 apm_(apm), in TimedThreadApiProcessor()
510 auto set_default_desktop_apm_runtime_settings = [](AudioProcessing* apm) { in SetUp() argument
511 ASSERT_EQ(apm->kNoError, apm->level_estimator()->Enable(true)); in SetUp()
512 ASSERT_EQ(apm->kNoError, apm->gain_control()->Enable(true)); in SetUp()
513 ASSERT_EQ(apm->kNoError, in SetUp()
514 apm->gain_control()->set_mode(GainControl::kAdaptiveDigital)); in SetUp()
515 ASSERT_EQ(apm->kNoError, apm->gain_control()->Enable(true)); in SetUp()
516 ASSERT_EQ(apm->kNoError, apm->noise_suppression()->Enable(true)); in SetUp()
517 ASSERT_EQ(apm->kNoError, apm->voice_detection()->Enable(true)); in SetUp()
[all …]
Daudio_processing_impl_locking_unittest.cc316 AudioProcessing* apm);
343 AudioProcessing* apm);
362 AudioProcessing* apm);
581 AudioProcessing* apm) in StatsProcessor() argument
582 : rand_gen_(rand_gen), test_config_(test_config), apm_(apm) {} in StatsProcessor()
618 AudioProcessing* apm) in CaptureProcessor() argument
625 apm_(apm), in CaptureProcessor()
879 AudioProcessing* apm) in RenderProcessor() argument
886 apm_(apm), in RenderProcessor()
DAndroid.bp50 // apm process test app
85 // apm unit test app
Decho_control_mobile_impl.cc70 EchoControlMobileImpl::EchoControlMobileImpl(const AudioProcessing* apm, in EchoControlMobileImpl() argument
74 apm_(apm), in EchoControlMobileImpl()
81 RTC_DCHECK(apm); in EchoControlMobileImpl()
Dgain_control_impl.cc45 GainControlImpl::GainControlImpl(const AudioProcessing* apm, in GainControlImpl() argument
49 apm_(apm), in GainControlImpl()
62 RTC_DCHECK(apm); in GainControlImpl()
Decho_cancellation_impl.cc64 EchoCancellationImpl::EchoCancellationImpl(const AudioProcessing* apm, in EchoCancellationImpl() argument
68 apm_(apm), in EchoCancellationImpl()
81 RTC_DCHECK(apm); in EchoCancellationImpl()
Decho_control_mobile_impl.h27 EchoControlMobileImpl(const AudioProcessing* apm,
Dgain_control_impl.h30 GainControlImpl(const AudioProcessing* apm,
Decho_cancellation_impl.h27 EchoCancellationImpl(const AudioProcessing* apm,
Daudio_processing_impl.cc200 AudioProcessingImpl* apm = new AudioProcessingImpl(config, beamformer); in Create() local
201 if (apm->Initialize() != kNoError) { in Create()
202 delete apm; in Create()
203 apm = nullptr; in Create()
206 return apm; in Create()
/external/adhd/cras/src/tests/
Dapm_list_unittest.cc72 struct cras_apm *apm; in TEST() local
84 apm = cras_apm_list_add(list, dev_ptr, &fmt); in TEST()
89 cras_apm_list_process(apm, buf, 0); in TEST()
92 area = cras_apm_list_get_processed(apm); in TEST()
97 cras_apm_list_process(apm, buf, 0); in TEST()
98 area = cras_apm_list_get_processed(apm); in TEST()
106 cras_apm_list_put_processed(apm, 200); in TEST()
109 cras_apm_list_process(apm, buf, 0); in TEST()
115 cras_apm_list_put_processed(apm, 280); in TEST()
116 cras_apm_list_process(apm, buf, 0); in TEST()
[all …]
/external/webrtc/webrtc/voice_engine/test/cmd_test/
Dvoe_cmd_test.cc62 VoEAudioProcessing* apm = NULL; variable
132 apm = VoEAudioProcessing::GetInterface(m_voe); in main()
199 if (apm) in main()
200 apm->Release(); in main()
371 res = apm->SetAgcStatus(enable_agc); in RunTest()
374 res = apm->SetEcStatus(enable_aec); in RunTest()
377 res = apm->SetNsStatus(enable_ns); in RunTest()
486 res = apm->SetAgcStatus(enable_agc); in RunTest()
494 res = apm->SetNsStatus(enable_ns); in RunTest()
512 res = apm->SetEcStatus(enable_aec, kEcUnchanged); in RunTest()
[all …]
/external/webrtc/webrtc/voice_engine/test/auto_test/
Dvoe_cpu_test.cc51 VoEAudioProcessing* apm = _mgr.APMPtr(); in DoTest() local
83 CHECK(apm->SetAgcStatus(true, kAgcAdaptiveAnalog)); in DoTest()
84 CHECK(apm->SetNsStatus(true, kNsModerateSuppression)); in DoTest()
85 CHECK(apm->SetEcStatus(true, kEcAec)); in DoTest()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/
Dp4.cpp42 void test_deduce_ptrmem_with_qual(AnyPtrMem apm) { in test_deduce_ptrmem_with_qual() argument
43 const float X::* pm = apm; in test_deduce_ptrmem_with_qual()
/external/webrtc/webrtc/voice_engine/test/android/android_test/jni/
Dandroid_test.cc125 VoEAudioProcessing* apm; member
869 return veData1.apm->SetNsStatus(enable, NSmode); in Java_org_webrtc_voiceengine_test_AndroidTest_SetNSStatus()
919 return veData1.apm->SetAgcStatus(enable, AGCmode); in Java_org_webrtc_voiceengine_test_AndroidTest_SetAGCStatus()
956 return veData1.apm->SetEcStatus(enable, ECmode); in Java_org_webrtc_voiceengine_test_AndroidTest_SetECStatus()
1165 veData.apm = VoEAudioProcessing::GetInterface(veData.ve); in GetSubApis()
1166 if (!veData.apm) in GetSubApis()
1271 if (veData.apm) in ReleaseSubApis()
1273 if (0 != veData.apm->Release()) in ReleaseSubApis()
1281 veData.apm = NULL; in ReleaseSubApis()
/external/adhd/cras/
Dconfigure.ac51 AC_ARG_ENABLE([webrtc-apm], AS_HELP_STRING([--disable-webrtc-apm], [Disable webrtc-apm uses]), have…
55 AC_DEFINE(HAVE_WEBRTC_APM, 1, [Define to use webrtc-apm.])
/external/adhd/cras/src/fuzz/
Dbuild.sh12 ./configure --disable-dbus --disable-webrtc-apm
/external/u-boot/arch/x86/dts/
Dqemu-x86_q35.dts32 u-boot,no-apm-finalize;

12