Home
last modified time | relevance | path

Searched refs:num_sources (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp57 dumpPatchEndpoints(dst, spaces, "src ", mPatch.num_sources, mPatch.sources); in dump()
73 handle, patch->getAfHandle(), patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
111 for (size_t srcIndex = 0; srcIndex < patch->mPatch.num_sources && !skip; srcIndex++) { in listAudioPatches()
132 patchIndex, patch->mPatch.num_sources, patch->mPatch.num_sinks); in listAudioPatches()
/frameworks/av/services/audioflinger/
DPatchPanel.cpp125 __func__, patch->num_sources, patch->num_sinks, *handle); in createAudioPatch_l()
129 if (!audio_patch_is_valid(patch) || (patch->num_sinks == 0 && patch->num_sources != 2)) { in createAudioPatch_l()
134 if (patch->num_sources > 2) { in createAudioPatch_l()
222 if ((patch->num_sources == 2) || in createAudioPatch_l()
228 if (patch->num_sources == 2) { in createAudioPatch_l()
305 if (patch->num_sources == 2 in createAudioPatch_l()
362 status = hwDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
566 if (mAudioPatch.num_sources == 2 && mAudioPatch.sources[1].type == AUDIO_PORT_TYPE_MIX) { in createConnections_l()
753 mAudioPatch.num_sources > 0 && mAudioPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE; in dump()
758 (hasSourceDevice ? mAudioPatch.num_sources : 0), in dump()
DMelReporter.cpp135 if (patch.mAudioPatch.num_sources == 0 in onCreateAudioPatch()
DThreads.cpp346 for (size_t i = 0; i < patch->num_sources; ++i) { in patchSourcesToString()
4985 status = hwDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
9878 status = hwDevice->createAudioPatch(patch->num_sources, in createAudioPatch_l()
9890 if ((mPatch.num_sources == 0) || (mPatch.sources[0].id != deviceId)) { in createAudioPatch_l()
10701 numDevices = mPatch.num_sources; in createAudioPatch_l()
10735 status = mHalDevice->createAudioPatch(patch->num_sources, patch->sources, patch->num_sinks, in createAudioPatch_l()
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp105 if (patch.num_sources > AUDIO_PATCH_PORTS_MAX) { in validateAudioPatch()
111 for (size_t i = 0; i < patch.num_sources; i++) { in validateAudioPatch()
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h73 if (mPatch.num_sources != 0 && mPatch.num_sinks != 0) { in getDeviceId()
/frameworks/av/media/libmedia/include/media/
DPatchBuilder.h96 PortCfgs sources() { return PortCfgs(&mPatch.num_sources, mPatch.sources); } in sources()
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp395 legacy.num_sources = VALUE_OR_RETURN(convertIntegral<unsigned int>(aidl.sources.size())); in aidl2legacy_AudioPatchFw_audio_patch()
396 if (legacy.num_sources > AUDIO_PATCH_PORTS_MAX) { in aidl2legacy_AudioPatchFw_audio_patch()
399 for (size_t i = 0; i < legacy.num_sources; ++i) { in aidl2legacy_AudioPatchFw_audio_patch()
418 if (legacy.num_sources > AUDIO_PATCH_PORTS_MAX) { in legacy2aidl_audio_patch_AudioPatchFw()
421 for (unsigned int i = 0; i < legacy.num_sources; ++i) { in legacy2aidl_audio_patch_AudioPatchFw()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h113 unsigned int num_sources,
/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.h90 status_t createAudioPatch(unsigned int num_sources, const struct audio_port_config* sources,
DDeviceHalAidl.h136 status_t createAudioPatch(unsigned int num_sources, const struct audio_port_config* sources,
DDeviceHalHidl.cpp400 unsigned int num_sources, in createAudioPatch() argument
419 HidlUtils::audioPortConfigsFromHal(num_sources, sources, &hidlSources); in createAudioPatch()
DDeviceHalAidl.cpp579 status_t DeviceHalAidl::createAudioPatch(unsigned int num_sources, in createAudioPatch() argument
587 if (num_sinks > AUDIO_PATCH_PORTS_MAX || num_sources > AUDIO_PATCH_PORTS_MAX || in createAudioPatch()
608 for (unsigned int i = 0; i < num_sources; ++i) { in createAudioPatch()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp343 if (patch->num_sources != 0 && patch->num_sinks != 0) { in getDeviceIdFromPatch()
356 patch.num_sources = mFdp->ConsumeIntegralInRange(0, AUDIO_PATCH_PORTS_MAX); in createFuzzedPatch()
357 for (int i = 0; i < patch.num_sources; ++i) { in createFuzzedPatch()
/frameworks/av/media/libaudioclient/tests/
Daudiorouting_tests.cpp74 for (auto j = 0; j < patch.num_sources; j++) { in TEST()
Daudio_test_utils.cpp656 for (auto j = 0; j < patches[i].num_sources; j++) { in getPatchForOutputMix()
694 for (auto j = 0; j < patch.num_sources; j++) { in patchContainsInputDevice()
Daudiosystem_tests.cpp272 audioPatch.num_sources = 1; in TEST_F()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp381 if (patch->num_sources != 0 && patch->num_sinks != 0) { in getDeviceIdFromPatch()
407 patch.num_sources = AUDIO_PATCH_PORTS_MAX + 1; in TEST_F()
410 patch.num_sources = 1; in TEST_F()
413 patch.num_sources = 2; in TEST_F()
417 patch.num_sources = 1; in TEST_F()
423 patch.num_sources = 1; in TEST_F()
723 ASSERT_EQ(1, patch->mPatch.num_sources); in TEST_P()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp2498 if (patch.num_sources == patch2.num_sources) { in insertCommand_l()
2499 for (unsigned count = 0; count < patch.num_sources; count++) { in insertCommand_l()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1796 for (size_t j = 0; j < patch->mPatch.num_sources; ++j) { in getMsdOutputPatches()
5067 ALOGV("%s num sources %d num sinks %d", __func__, patch->num_sources, patch->num_sinks); in createAudioPatch()
5072 if (patch->num_sources > 1) { in createAudioPatch()
5165 ALOGV("%s num sources %d num sinks %d", __func__, patch->num_sources, patch->num_sinks); in createAudioPatchInternal()
5529 if (patch->num_sources > 1 && patch->sources[1].type == AUDIO_PORT_TYPE_MIX) { in releaseAudioPatchInternal()
5531 } else if (patch->num_sources == 1 && sourceDesc != nullptr) { in releaseAudioPatchInternal()
8478 for (size_t j = 0; j < patchDesc->mPatch.num_sources && !release; j++) { in cleanUpForDevice()
8683 caller, status, afPatchHandle, patch->num_sources, patch->num_sinks); in installPatch()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1738 nPatch.num_sources++; in android_media_AudioSystem_createAudioPatch()
1879 i, nPatches[i].num_sources, nPatches[i].num_sinks); in android_media_AudioSystem_listAudioPatches()
1884 jSources.reset(env->NewObjectArray(nPatches[i].num_sources, gAudioPortConfigClass, NULL)); in android_media_AudioSystem_listAudioPatches()
1890 for (size_t j = 0; j < nPatches[i].num_sources; j++) { in android_media_AudioSystem_listAudioPatches()
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp724 patch.num_sources = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()