Home
last modified time | relevance | path

Searched refs:aidlPort (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp79 for (const auto& aidlPort : aidl.ports) { in aidl2legacy_AudioHwModule_HwModule() local
80 const bool isInput = aidlPort.flags.getTag() == AudioIoFlags::input; in aidl2legacy_AudioHwModule_HwModule()
82 aidl2legacy_AudioPort_audio_port_v7(aidlPort, isInput)); in aidl2legacy_AudioHwModule_HwModule()
88 fwPort.hal = aidlPort; in aidl2legacy_AudioHwModule_HwModule()
89 if (aidlPort.ext.getTag() == AudioPortExt::mix) { in aidl2legacy_AudioHwModule_HwModule()
99 ports.emplace(aidlPort.id, mixPort); in aidl2legacy_AudioHwModule_HwModule()
100 } else if (aidlPort.ext.getTag() == AudioPortExt::device) { in aidl2legacy_AudioHwModule_HwModule()
103 sp<DeviceDescriptor>::make(AUDIO_DEVICE_NONE, aidlPort.name); in aidl2legacy_AudioHwModule_HwModule()
113 ports.emplace(aidlPort.id, devicePort); in aidl2legacy_AudioHwModule_HwModule()
115 if (const auto& deviceExt = aidlPort.ext.get<AudioPortExt::device>(); in aidl2legacy_AudioHwModule_HwModule()
/frameworks/av/services/audiopolicy/tests/
Daudio_health_tests.cpp113 media::AudioPortFw aidlPort; in TEST() local
115 &aidlPort)); in TEST()
119 AUDIO_POLICY_DEVICE_STATE_AVAILABLE, aidlPort.hal, AUDIO_FORMAT_DEFAULT)); in TEST()
123 AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE, aidlPort.hal, AUDIO_FORMAT_DEFAULT)); in TEST()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalAidl.cpp815 auto aidlPort = VALUE_OR_RETURN_STATUS( in getAudioPort() local
817 if (aidlPort.ext.getTag() != AudioPortExt::device) { in getAudioPort()
819 __func__, mInstance.c_str(), aidlPort.toString().c_str()); in getAudioPort()
822 const auto& matchDevice = aidlPort.ext.get<AudioPortExt::device>().device; in getAudioPort()
831 const int32_t fwkId = aidlPort.id; in getAudioPort()
832 aidlPort = portsIt->second; in getAudioPort()
833 aidlPort.id = fwkId; in getAudioPort()
835 aidlPort, isInput)); in getAudioPort()
1071 AudioPort aidlPort = VALUE_OR_RETURN_STATUS( in setConnectedState() local
1073 if (aidlPort.ext.getTag() != AudioPortExt::device) { in setConnectedState()
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudiosystem_tests.cpp683 android::media::audio::common::AudioPort aidlPort = GenerateUniqueDeviceAddress(port.hal); in TEST_F() local
684 SCOPED_TRACE(aidlPort.toString()); in TEST_F()
688 aidlPort.ext.get<AudioPortExt::Tag::device>().device, &type, address); in TEST_F()
696 aidlPort, AUDIO_FORMAT_DEFAULT); in TEST_F()
702 aidlPort, AUDIO_FORMAT_DEFAULT); in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp108 media::AudioPortFw aidlPort; in setDeviceConnectionState() local
109 if (status_t status = deviceToAudioPort(device, device_address, device_name, &aidlPort); in setDeviceConnectionState()
111 return setDeviceConnectionState(state, aidlPort.hal, encodedFormat); in setDeviceConnectionState()
165 media::AudioPortFw aidlPort; in setDeviceConnectionStateInt() local
166 if (status_t status = deviceToAudioPort(deviceType, device_address, device_name, &aidlPort); in setDeviceConnectionStateInt()
168 return setDeviceConnectionStateInt(state, aidlPort.hal, encodedFormat); in setDeviceConnectionStateInt()
461 media::AudioPortFw* aidlPort) { in deviceToAudioPort() argument
464 return devDescr.writeToParcelable(aidlPort); in deviceToAudioPort()
4699 auto aidlPort = VALUE_OR_RETURN_STATUS(legacy2aidl_audio_port_v7_AudioPortFw(port)); in listDeclaredDevicePorts() local
4700 _aidl_return->push_back(std::move(aidlPort)); in listDeclaredDevicePorts()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp814 media::AudioPortFw aidlPort = VALUE_OR_RETURN_STATUS( in setDeviceConnectedState() local
816 return statusTFromBinderStatus(mDelegate->setDeviceConnectedState(aidlPort, state)); in setDeviceConnectedState()