Home
last modified time | relevance | path

Searched refs:num_sinks (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/services/audioflinger/
DPatchCommandThread.cpp50 patch.mAudioPatch.num_sinks, in createAudioPatch()
51 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in createAudioPatch()
65 patch.mAudioPatch.num_sinks, in updateAudioPatch()
66 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in updateAudioPatch()
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()
162 } else if (patch->num_sinks == 0 || in createAudioPatch_l()
199 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
204 patch->num_sinks > 1) { in createAudioPatch_l()
230 (patch->num_sinks != 0 && patch->sinks[0].ext.device.hw_module != in createAudioPatch_l()
364 patch->num_sinks, in createAudioPatch_l()
381 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
522 if (mAudioPatch.num_sinks != 0) { in createConnections_l()
751 mAudioPatch.num_sinks > 0 && mAudioPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE; in dump()
[all …]
DDeviceEffectManager.cpp61 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onCreateAudioPatch()
86 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onUpdateAudioPatch()
DMelReporter.cpp134 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onCreateAudioPatch()
145 for (size_t i = 0; i < patch.mAudioPatch.num_sinks; ++i) { in onCreateAudioPatch()
DThreads.cpp333 for (size_t i = 0; i < patch->num_sinks; ++i) { in patchSinksToString()
4938 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
4977 bool configChanged = (mPatch.num_sinks == 0) || in createAudioPatch_l()
4987 patch->num_sinks, in createAudioPatch_l()
9880 patch->num_sinks, in createAudioPatch_l()
10686 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l()
10697 numDevices = mPatch.num_sinks; in createAudioPatch_l()
10735 status = mHalDevice->createAudioPatch(patch->num_sources, patch->sources, patch->num_sinks, in createAudioPatch_l()
DEffects.cpp3466 for (uint32_t i = 0; i < patch.mAudioPatch.num_sinks && status == NAME_NOT_FOUND; i++) { in onCreatePatch()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp58 dumpPatchEndpoints(dst, spaces, "sink", mPatch.num_sinks, mPatch.sinks); in dump()
73 handle, patch->getAfHandle(), patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
117 for (size_t sinkIndex = 0; sinkIndex < patch->mPatch.num_sinks && !skip; sinkIndex++) { in listAudioPatches()
132 patchIndex, patch->mPatch.num_sources, patch->mPatch.num_sinks); in listAudioPatches()
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp108 if (patch.num_sinks > AUDIO_PATCH_PORTS_MAX) { in validateAudioPatch()
116 for (size_t i = 0; i < patch.num_sinks; 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.h95 PortCfgs sinks() { return PortCfgs(&mPatch.num_sinks, mPatch.sinks); } in sinks()
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp387 legacy.num_sinks = VALUE_OR_RETURN(convertIntegral<unsigned int>(aidl.sinks.size())); in aidl2legacy_AudioPatchFw_audio_patch()
388 if (legacy.num_sinks > AUDIO_PATCH_PORTS_MAX) { in aidl2legacy_AudioPatchFw_audio_patch()
391 for (size_t i = 0; i < legacy.num_sinks; ++i) { in aidl2legacy_AudioPatchFw_audio_patch()
411 if (legacy.num_sinks > AUDIO_PATCH_PORTS_MAX) { in legacy2aidl_audio_patch_AudioPatchFw()
414 for (unsigned int i = 0; i < legacy.num_sinks; ++i) { in legacy2aidl_audio_patch_AudioPatchFw()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h115 unsigned int num_sinks,
/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.h91 unsigned int num_sinks, const struct audio_port_config* sinks,
DDeviceHalAidl.h137 unsigned int num_sinks, const struct audio_port_config* sinks,
DDeviceHalHidl.cpp402 unsigned int num_sinks, in createAudioPatch() argument
420 HidlUtils::audioPortConfigsFromHal(num_sinks, sinks, &hidlSinks); in createAudioPatch()
DDeviceHalAidl.cpp581 unsigned int num_sinks, in createAudioPatch() argument
587 if (num_sinks > AUDIO_PATCH_PORTS_MAX || num_sources > AUDIO_PATCH_PORTS_MAX || in createAudioPatch()
616 for (unsigned int i = 0; i < num_sinks; ++i) { in createAudioPatch()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp343 if (patch->num_sources != 0 && patch->num_sinks != 0) { in getDeviceIdFromPatch()
363 patch.num_sinks = mFdp->ConsumeIntegralInRange(0, AUDIO_PATCH_PORTS_MAX); in createFuzzedPatch()
364 for (int i = 0; i < patch.num_sinks; ++i) { in createFuzzedPatch()
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp673 for (auto j = 0; j < patches[i].num_sinks; j++) { in getPatchForInputMix()
685 for (auto j = 0; j < patch.num_sinks; j++) { in patchContainsOutputDevice()
Daudiosystem_tests.cpp273 audioPatch.num_sinks = 1; in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp2039 for (size_t j = 0; j < patch->mPatch.num_sinks; ++j) { in releaseMsdOutputPatches()
2056 for (size_t j = 0; j < patch->mPatch.num_sinks; ++j) { in msdHasPatchesToAllDevices()
5067 ALOGV("%s num sources %d num sinks %d", __func__, patch->num_sources, patch->num_sinks); in createAudioPatch()
5078 for (size_t i = 0; i < patch->num_sinks; i++) { in createAudioPatch()
5165 ALOGV("%s num sources %d num sinks %d", __func__, patch->num_sources, patch->num_sinks); in createAudioPatchInternal()
5173 for (size_t i = 0; i < patch->num_sinks; i++) { in createAudioPatchInternal()
5207 for (size_t i = 0; i < patch->num_sinks; i++) { in createAudioPatchInternal()
5259 if (patch->num_sinks > 1) { in createAudioPatchInternal()
5336 for (size_t i = 0; i < patch->num_sinks; i++) { in createAudioPatchInternal()
5423 if (patch->num_sinks > 1) { in createAudioPatchInternal()
[all …]
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp381 if (patch->num_sources != 0 && patch->num_sinks != 0) { in getDeviceIdFromPatch()
408 patch.num_sinks = 1; in TEST_F()
411 patch.num_sinks = AUDIO_PATCH_PORTS_MAX + 1; in TEST_F()
414 patch.num_sinks = 1; in TEST_F()
419 patch.num_sinks = 1; in TEST_F()
425 patch.num_sinks = 1; in TEST_F()
724 ASSERT_EQ(1, patch->mPatch.num_sinks); in TEST_P()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1750 nPatch.num_sinks++; in android_media_AudioSystem_createAudioPatch()
1879 i, nPatches[i].num_sources, nPatches[i].num_sinks); in android_media_AudioSystem_listAudioPatches()
1908 jSinks.reset(env->NewObjectArray(nPatches[i].num_sinks, gAudioPortConfigClass, NULL)); in android_media_AudioSystem_listAudioPatches()
1914 for (size_t j = 0; j < nPatches[i].num_sinks; j++) { in android_media_AudioSystem_listAudioPatches()
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp725 patch.num_sinks = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()