Home
last modified time | relevance | path

Searched refs:sinks (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/av/services/audioflinger/
DPatchPanel.cpp163 (oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch_l()
164 (patch->sinks[0].type != AUDIO_PORT_TYPE_DEVICE || in createAudioPatch_l()
165 oldPatch.sinks[0].ext.device.hw_module != in createAudioPatch_l()
166 patch->sinks[0].ext.device.hw_module))) { in createAudioPatch_l()
172 hwModule = oldPatch.sinks[0].ext.device.hw_module; in createAudioPatch_l()
201 if ((patch->sinks[i].type == AUDIO_PORT_TYPE_MIX || in createAudioPatch_l()
202 (patch->sinks[i].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch_l()
203 patch->sinks[i].ext.device.hw_module != srcModule)) && in createAudioPatch_l()
210 if (patch->sinks[i].type != patch->sinks[0].type) { in createAudioPatch_l()
223 ((patch->sinks[0].type == AUDIO_PORT_TYPE_DEVICE) && in createAudioPatch_l()
[all …]
DPatchPanel.h114 newPatch.sinks[0].type == AUDIO_PORT_TYPE_MIX && in patchesHaveSameRoute()
115 oldPatch.sinks[0].type == AUDIO_PORT_TYPE_MIX && in patchesHaveSameRoute()
116 newPatch.sinks[0].ext.mix.handle == oldPatch.sinks[0].ext.mix.handle) || in patchesHaveSameRoute()
117 (newPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in patchesHaveSameRoute()
118 oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in patchesHaveSameRoute()
119 newPatch.sinks[0].id == oldPatch.sinks[0].id && in patchesHaveSameRoute()
DMelReporter.cpp134 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onCreateAudioPatch()
146 if (patch.mAudioPatch.sinks[i].type == AUDIO_PORT_TYPE_DEVICE && in onCreateAudioPatch()
148 patch.mAudioPatch.sinks[i].ext.device.type)) { in onCreateAudioPatch()
149 audio_port_handle_t deviceId = patch.mAudioPatch.sinks[i].id; in onCreateAudioPatch()
151 patch.mAudioPatch.sinks[i].ext.device.type, in onCreateAudioPatch()
152 patch.mAudioPatch.sinks[i].ext.device.address); in onCreateAudioPatch()
155 AudioDeviceTypeAddr adt{patch.mAudioPatch.sinks[i].ext.device.type, in onCreateAudioPatch()
156 patch.mAudioPatch.sinks[i].ext.device.address}; in onCreateAudioPatch()
DPatchCommandThread.cpp51 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in createAudioPatch()
66 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in updateAudioPatch()
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()
DThreads.cpp337 ss << "(" << toString(patch->sinks[i].ext.device.type) in patchSinksToString()
338 << ", " << patch->sinks[i].ext.device.address << ")"; in patchSinksToString()
4939 LOG_ALWAYS_FATAL_IF(popcount(patch->sinks[i].ext.device.type) > 1 in createAudioPatch_l()
4943 patch->sinks[i].ext.device.type); in createAudioPatch_l()
4944 type = static_cast<audio_devices_t>(type | patch->sinks[i].ext.device.type); in createAudioPatch_l()
4945 deviceTypeAddrs.emplace_back(patch->sinks[i].ext.device.type, in createAudioPatch_l()
4946 patch->sinks[i].ext.device.address); in createAudioPatch_l()
4949 audio_port_handle_t sinkPortId = patch->sinks[0].id; in createAudioPatch_l()
4978 (mPatch.sinks[0].id != sinkPortId); in createAudioPatch_l()
4988 patch->sinks, in createAudioPatch_l()
[all …]
/frameworks/base/media/java/android/media/
DAudioPatch.java41 AudioPatch(AudioHandle patchHandle, AudioPortConfig[] sources, AudioPortConfig[] sinks) { in AudioPatch() argument
44 mSinks = sinks; in AudioPatch()
59 public AudioPortConfig[] sinks() { in sinks() method in AudioPatch
DHwAudioSource.java161 AudioPortConfig[] sinks = patch.sinks(); in getDeviceId() local
165 return sinks[c].port().id(); in getDeviceId()
/frameworks/av/media/libmedia/include/media/
DPatchBuilder.h44 sinks().add(std::forward<T>(t), std::forward<S>(s)...); in addSink()
50 sinks().add(std::forward<T>(t), update); in addSink()
95 PortCfgs sinks() { return PortCfgs(&mPatch.num_sinks, mPatch.sinks); } in sinks() function
/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionProvider.java108 Collection<Sink> sinks; in onActivityChanged() local
113 sinks = new ArrayList<>(mSinkSet); in onActivityChanged()
128 for (Sink sink : sinks) { in onActivityChanged()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp58 dumpPatchEndpoints(dst, spaces, "sink", mPatch.num_sinks, mPatch.sinks); in dump()
74 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
118 if (patch->mPatch.sinks[sinkIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
119 patch->mPatch.sinks[sinkIndex].ext.device.type == AUDIO_DEVICE_OUT_STUB) { in listAudioPatches()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DPanProfile.java114 final List<BluetoothDevice> sinks = mService.getConnectedDevices(); in setEnabled() local
115 if (sinks != null) { in setEnabled()
116 for (BluetoothDevice sink : sinks) { in setEnabled()
DA2dpProfile.java217 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in isA2dpPlaying()
218 for (BluetoothDevice device : sinks) { in isA2dpPlaying()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioPatchFw.aidl33 AudioPortConfigFw[] sinks;
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp740 patch.sinks[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
741 patch.sinks[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
742 patch.sinks[i].format = getValue(&mFdp, kFormats); in invokeAudioPatch()
743 patch.sinks[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
744 patch.sinks[i].gain.index = mFdp.ConsumeIntegral<int32_t>(); in invokeAudioPatch()
745 patch.sinks[i].gain.mode = getValue(&mFdp, kGainModes); in invokeAudioPatch()
746 patch.sinks[i].gain.ramp_duration_ms = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
747 patch.sinks[i].id = static_cast<audio_format_t>(mFdp.ConsumeIntegral<int32_t>()); in invokeAudioPatch()
748 patch.sinks[i].role = getValue(&mFdp, kPortRoles); in invokeAudioPatch()
749 patch.sinks[i].sample_rate = getSampleRate(&mFdp); in invokeAudioPatch()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h75 return mIsInput ? mPatch.sources[0].id : mPatch.sinks[0].id; in getDeviceId()
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp674 if (patches[i].sinks[j].type == AUDIO_PORT_TYPE_MIX && in getPatchForInputMix()
675 patches[i].sinks[j].ext.mix.handle == audioIo) { in getPatchForInputMix()
686 if (patch.sinks[j].type == AUDIO_PORT_TYPE_DEVICE && patch.sinks[j].id == deviceId) { in patchContainsOutputDevice()
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp387 legacy.num_sinks = VALUE_OR_RETURN(convertIntegral<unsigned int>(aidl.sinks.size())); in aidl2legacy_AudioPatchFw_audio_patch()
392 legacy.sinks[i] = in aidl2legacy_AudioPatchFw_audio_patch()
393 VALUE_OR_RETURN(aidl2legacy_AudioPortConfigFw_audio_port_config(aidl.sinks[i])); in aidl2legacy_AudioPatchFw_audio_patch()
415 aidl.sinks.push_back( in legacy2aidl_audio_patch_AudioPatchFw()
416 VALUE_OR_RETURN(legacy2aidl_audio_port_config_AudioPortConfigFw(legacy.sinks[i]))); in legacy2aidl_audio_patch_AudioPatchFw()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h116 const struct audio_port_config *sinks,
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp117 if (validateAudioPortConfig(patch.sinks[i]) != NO_ERROR) { in validateAudioPatch()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1818 const struct audio_port_config *sink = &patch->mPatch.sinks[0]; in isMsdPatch()
1950 audio_port_config sinkConfig = patchBuilder.patch()->sinks[0]; in buildMsdPatch()
2021 p.patch()->sinks[0].ext.device.type, p.patch()->sources[0].format, in setMsdOutputPatches()
2040 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in releaseMsdOutputPatches()
2057 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in msdHasPatchesToAllDevices()
5079 if (patch->sinks[i].role != AUDIO_PORT_ROLE_SINK) { in createAudioPatch()
5085 sp<DeviceDescriptor> sinkDevice = mAvailableOutputDevices.getDeviceFromId(patch->sinks[0].id); in createAudioPatch()
5174 ALOGV("%s sink %zu: id %d role %d type %d", __func__ ,i, patch->sinks[i].id, in createAudioPatchInternal()
5175 patch->sinks[i].role, in createAudioPatchInternal()
5176 patch->sinks[i].type); in createAudioPatchInternal()
[all …]
/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp127 const std::vector<AudioPortConfig>& sinks, in createOrUpdatePatch() argument
142 ::android::internal::ToString(sinks).c_str()); in createOrUpdatePatch()
187 const bool sinkIsDevice = std::any_of(sinks.begin(), sinks.end(), in createOrUpdatePatch()
190 sourceIsDevice ? sources : sinks; in createOrUpdatePatch()
194 sourceIsDevice ? sinks : sources; in createOrUpdatePatch()
DDeviceHalHidl.h91 unsigned int num_sinks, const struct audio_port_config* sinks,
DDeviceHalAidl.h137 unsigned int num_sinks, const struct audio_port_config* sinks,
DDeviceHalAidl.cpp582 const struct audio_port_config* sinks, in createAudioPatch() argument
588 sources == nullptr || sinks == nullptr || patch == nullptr) { in createAudioPatch()
618 sinks[i].role, sinks[i].type)) == in createAudioPatch()
622 sinks[i], isInput, 0))); in createAudioPatch()

12