/frameworks/av/services/audioflinger/ |
D | PatchPanel.cpp | 163 (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 …]
|
D | PatchPanel.h | 114 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()
|
D | MelReporter.cpp | 134 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()
|
D | PatchCommandThread.cpp | 51 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()
|
D | DeviceEffectManager.cpp | 61 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()
|
D | Threads.cpp | 337 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/ |
D | AudioPatch.java | 41 AudioPatch(AudioHandle patchHandle, AudioPortConfig[] sources, AudioPortConfig[] sinks) { in AudioPatch() argument 44 mSinks = sinks; in AudioPatch() 59 public AudioPortConfig[] sinks() { in sinks() method in AudioPatch
|
D | HwAudioSource.java | 161 AudioPortConfig[] sinks = patch.sinks(); in getDeviceId() local 165 return sinks[c].port().id(); in getDeviceId()
|
/frameworks/av/media/libmedia/include/media/ |
D | PatchBuilder.h | 44 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/ |
D | ActivityRecognitionProvider.java | 108 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/ |
D | AudioPatch.cpp | 58 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/ |
D | PanProfile.java | 114 final List<BluetoothDevice> sinks = mService.getConnectedDevices(); in setEnabled() local 115 if (sinks != null) { in setEnabled() 116 for (BluetoothDevice sink : sinks) { in setEnabled()
|
D | A2dpProfile.java | 217 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in isA2dpPlaying() 218 for (BluetoothDevice device : sinks) { in isA2dpPlaying()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | AudioPatchFw.aidl | 33 AudioPortConfigFw[] sinks;
|
/frameworks/av/media/libaudioclient/fuzzer/ |
D | audioflinger_fuzzer.cpp | 740 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/ |
D | AudioIoDescriptor.h | 75 return mIsInput ? mPatch.sources[0].id : mPatch.sinks[0].id; in getDeviceId()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_test_utils.cpp | 674 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/ |
D | AidlConversion.cpp | 387 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/ |
D | DeviceHalInterface.h | 116 const struct audio_port_config *sinks,
|
/frameworks/av/media/libmediahelper/ |
D | AudioValidator.cpp | 117 if (validateAudioPortConfig(patch.sinks[i]) != NO_ERROR) { in validateAudioPatch()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 1818 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/ |
D | Hal2AidlMapper.cpp | 127 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()
|
D | DeviceHalHidl.h | 91 unsigned int num_sinks, const struct audio_port_config* sinks,
|
D | DeviceHalAidl.h | 137 unsigned int num_sinks, const struct audio_port_config* sinks,
|
D | DeviceHalAidl.cpp | 582 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()
|