Home
last modified time | relevance | path

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

12

/frameworks/av/services/audioflinger/
DPatchPanel.cpp179 (oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch()
180 (patch->sinks[0].type != AUDIO_PORT_TYPE_DEVICE || in createAudioPatch()
181 oldPatch.sinks[0].ext.device.hw_module != in createAudioPatch()
182 patch->sinks[0].ext.device.hw_module))) { in createAudioPatch()
188 hwModule = oldPatch.sinks[0].ext.device.hw_module; in createAudioPatch()
213 if ((patch->sinks[i].type == AUDIO_PORT_TYPE_MIX || in createAudioPatch()
214 (patch->sinks[i].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch()
215 patch->sinks[i].ext.device.hw_module != srcModule)) && in createAudioPatch()
222 if (patch->sinks[i].type != patch->sinks[0].type) { in createAudioPatch()
235 ((patch->sinks[0].type == AUDIO_PORT_TYPE_DEVICE) && in createAudioPatch()
[all …]
DDeviceEffectManager.cpp40 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in createAudioPatch()
49 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onCreateAudioPatch()
DThreads.cpp245 ss << "(" << toString(patch->sinks[i].ext.device.type) in patchSinksToString()
246 << ", " << patch->sinks[i].ext.device.address << ")"; in patchSinksToString()
4308 LOG_ALWAYS_FATAL_IF(popcount(patch->sinks[i].ext.device.type) > 1 in createAudioPatch_l()
4312 patch->sinks[i].ext.device.type); in createAudioPatch_l()
4313 type = static_cast<audio_devices_t>(type | patch->sinks[i].ext.device.type); in createAudioPatch_l()
4314 deviceTypeAddrs.push_back(AudioDeviceTypeAddr(patch->sinks[i].ext.device.type, in createAudioPatch_l()
4315 patch->sinks[i].ext.device.address)); in createAudioPatch_l()
4318 audio_port_handle_t sinkPortId = patch->sinks[0].id; in createAudioPatch_l()
4347 (mPatch.sinks[0].id != sinkPortId); in createAudioPatch_l()
4357 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()
DAudioManager.java6270 AudioPortConfig[] sinks) { in createAudioPatch() argument
6271 return AudioSystem.createAudioPatch(patch, sources, sinks); in createAudioPatch()
6419 for (int j = 0; j < newPatches.get(i).sinks().length; j++) { in updateAudioPortCache()
6420 AudioPortConfig portCfg = updatePortConfig(newPatches.get(i).sinks()[j], in updateAudioPortCache()
6422 newPatches.get(i).sinks()[j] = portCfg; in updateAudioPortCache()
6434 for (AudioPortConfig portCfg : newPatch.sinks()) { in updateAudioPortCache()
/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/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp55 dumpPatchEndpoints(dst, spaces, "sink", mPatch.num_sinks, mPatch.sinks); in dump()
71 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
115 if (patch->mPatch.sinks[sinkIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
116 patch->mPatch.sinks[sinkIndex].ext.device.type == AUDIO_DEVICE_OUT_STUB) { in listAudioPatches()
/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/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.java211 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in isA2dpPlaying()
212 for (BluetoothDevice device : sinks) { in isA2dpPlaying()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioPatch.aidl31 AudioPortConfig[] sinks;
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp698 patch.sinks[i].config_mask = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
699 patch.sinks[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
700 patch.sinks[i].format = getValue(&mFdp, kFormats); in invokeAudioPatch()
701 patch.sinks[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
702 patch.sinks[i].gain.index = mFdp.ConsumeIntegral<int32_t>(); in invokeAudioPatch()
703 patch.sinks[i].gain.mode = getValue(&mFdp, kGainModes); in invokeAudioPatch()
704 patch.sinks[i].gain.ramp_duration_ms = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioPatch()
705 patch.sinks[i].id = static_cast<audio_format_t>(mFdp.ConsumeIntegral<int32_t>()); in invokeAudioPatch()
706 patch.sinks[i].role = getValue(&mFdp, kPortRoles); in invokeAudioPatch()
707 patch.sinks[i].sample_rate = getSampleRate(&mFdp); in invokeAudioPatch()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h53 return mPatch.sinks[0].id; in getDeviceId()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalLocal.cpp161 const struct audio_port_config *sinks, in createAudioPatch() argument
165 mDev, num_sources, sources, num_sinks, sinks, patch); in createAudioPatch()
DDeviceHalLocal.h94 const struct audio_port_config *sinks,
DDeviceHalHidl.h101 const struct audio_port_config *sinks,
DDeviceHalHidl.cpp306 const struct audio_port_config *sinks, in createAudioPatch() argument
322 HidlUtils::audioPortConfigsFromHal(num_sinks, sinks, &hidlSinks); in createAudioPatch()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h100 const struct audio_port_config *sinks,
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1507 audio_port_config sinkConfig = patchBuilder.patch()->sinks[0]; in buildMsdPatch()
1578 p.patch()->sinks[0].ext.device.type, p.patch()->sources[0].format, in setMsdOutputPatches()
1597 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in releaseMsdOutputPatches()
3813 if (patch->sinks[i].role != AUDIO_PORT_ROLE_SINK) { in createAudioPatchInternal()
3826 ALOGV("%s sink %zu: id %d role %d type %d", __func__ ,i, patch->sinks[i].id, in createAudioPatchInternal()
3827 patch->sinks[i].role, in createAudioPatchInternal()
3828 patch->sinks[i].type); in createAudioPatchInternal()
3862 if (patch->sinks[i].type != AUDIO_PORT_TYPE_DEVICE) { in createAudioPatchInternal()
3867 mAvailableOutputDevices.getDeviceFromId(patch->sinks[i].id); in createAudioPatchInternal()
3869 ALOGV("%s out device not found for id %d", __func__, patch->sinks[i].id); in createAudioPatchInternal()
[all …]
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp118 if (validateAudioPortConfig(patch.sinks[i]) != NO_ERROR) { in validateAudioPatch()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp297 return patch->sinks[0].id; in getDeviceIdFromPatch()
334 patch.sinks[0].role = AUDIO_PORT_ROLE_SINK; in TEST_F()
340 patch.sinks[0].role = AUDIO_PORT_ROLE_SOURCE; in TEST_F()
635 ASSERT_EQ(AUDIO_PORT_ROLE_SINK, patch->mPatch.sinks[0].role); in TEST_P()
637 ASSERT_EQ(AUDIO_FORMAT_IEC60958, patch->mPatch.sinks[0].format); in TEST_P()
639 ASSERT_EQ(AUDIO_CHANNEL_OUT_STEREO, patch->mPatch.sinks[0].channel_mask); in TEST_P()
641 ASSERT_EQ(48000, patch->mPatch.sinks[0].sample_rate); in TEST_P()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java842 private void findAudioSinkFromAudioPolicy(List<AudioDevicePort> sinks) { in findAudioSinkFromAudioPolicy() argument
843 sinks.clear(); in findAudioSinkFromAudioPolicy()
852 sinks.add(port); in findAudioSinkFromAudioPolicy()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp327 return patch->sinks[0].id; in getDeviceIdFromPatch()
350 patch.sinks[i] = config; in createFuzzedPatch()
/frameworks/av/media/libaudioclient/
DAidlConversion.cpp1108 legacy.num_sinks = VALUE_OR_RETURN(convertIntegral<unsigned int>(aidl.sinks.size())); in aidl2legacy_AudioPatch_audio_patch()
1113 legacy.sinks[i] = in aidl2legacy_AudioPatch_audio_patch()
1114 VALUE_OR_RETURN(aidl2legacy_AudioPortConfig_audio_port_config(aidl.sinks[i])); in aidl2legacy_AudioPatch_audio_patch()
1136 aidl.sinks.push_back( in legacy2aidl_audio_patch_AudioPatch()
1137 VALUE_OR_RETURN(legacy2aidl_audio_port_config_AudioPortConfig(legacy.sinks[i]))); in legacy2aidl_audio_patch_AudioPatch()

12