/frameworks/av/services/audioflinger/ |
D | PatchPanel.cpp | 179 (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 …]
|
D | DeviceEffectManager.cpp | 40 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()
|
D | Threads.cpp | 245 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/ |
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()
|
D | AudioManager.java | 6270 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/ |
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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPatch.cpp | 55 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/ |
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/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 | 211 List<BluetoothDevice> sinks = mService.getConnectedDevices(); in isA2dpPlaying() 212 for (BluetoothDevice device : sinks) { in isA2dpPlaying()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | AudioPatch.aidl | 31 AudioPortConfig[] sinks;
|
/frameworks/av/media/libaudioclient/fuzzer/ |
D | audioflinger_fuzzer.cpp | 698 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/ |
D | AudioIoDescriptor.h | 53 return mPatch.sinks[0].id; in getDeviceId()
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalLocal.cpp | 161 const struct audio_port_config *sinks, in createAudioPatch() argument 165 mDev, num_sources, sources, num_sinks, sinks, patch); in createAudioPatch()
|
D | DeviceHalLocal.h | 94 const struct audio_port_config *sinks,
|
D | DeviceHalHidl.h | 101 const struct audio_port_config *sinks,
|
D | DeviceHalHidl.cpp | 306 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/ |
D | DeviceHalInterface.h | 100 const struct audio_port_config *sinks,
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 1507 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/ |
D | AudioValidator.cpp | 118 if (validateAudioPortConfig(patch.sinks[i]) != NO_ERROR) { in validateAudioPatch()
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 297 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/ |
D | TvInputHardwareManager.java | 842 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/ |
D | audiopolicy_fuzzer.cpp | 327 return patch->sinks[0].id; in getDeviceIdFromPatch() 350 patch.sinks[i] = config; in createFuzzedPatch()
|
/frameworks/av/media/libaudioclient/ |
D | AidlConversion.cpp | 1108 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()
|