Lines Matching refs:portIt
246 auto portIt = findById<AudioPort>(ports, *it); in findConnectedDevices() local
247 if (portIt != ports.end() && portIt->ext.getTag() == AudioPortExt::Tag::device) { in findConnectedDevices()
248 result.push_back(portIt->ext.template get<AudioPortExt::Tag::device>().device); in findConnectedDevices()
287 auto portIt = findById<AudioPort>(ports, portId); in findPortIdForNewStream() local
288 if (portIt == ports.end()) { in findPortIdForNewStream()
298 if (portIt->ext.getTag() != AudioPortExt::Tag::mix) { in findPortIdForNewStream()
303 const size_t maxOpenStreamCount = portIt->ext.get<AudioPortExt::Tag::mix>().maxOpenStreamCount; in findPortIdForNewStream()
310 *port = &(*portIt); in findPortIdForNewStream()
714 auto portIt = findById<AudioPort>(ports, in_portId); in disconnectExternalDevice() local
715 if (portIt == ports.end()) { in disconnectExternalDevice()
719 if (portIt->ext.getTag() != AudioPortExt::Tag::device) { in disconnectExternalDevice()
745 onExternalDeviceConnectionChanged(*portIt, false /*connected*/); in disconnectExternalDevice()
746 ports.erase(portIt); in disconnectExternalDevice()
782 auto portIt = findById<AudioPort>(ports, in_portId); in prepareToDisconnectExternalDevice() local
783 if (portIt == ports.end()) { in prepareToDisconnectExternalDevice()
787 if (portIt->ext.getTag() != AudioPortExt::Tag::device) { in prepareToDisconnectExternalDevice()
799 onPrepareToDisconnectExternalDevice(*portIt); in prepareToDisconnectExternalDevice()
812 auto portIt = findById<AudioPort>(ports, in_portId); in getAudioPort() local
813 if (portIt != ports.end()) { in getAudioPort()
814 *_aidl_return = *portIt; in getAudioPort()
844 if (auto portIt = findById<AudioPort>(ports, in_portId); portIt == ports.end()) { in getAudioRoutesForAudioPort() local
1097 auto portIt = findById<AudioPort>(ports, portId); in setAudioPortConfigImpl() local
1098 if (portIt == ports.end()) { in setAudioPortConfigImpl()
1107 newConfig.portId = portIt->id; in setAudioPortConfigImpl()
1108 if (fillPortConfig(*portIt, &newConfig)) { in setAudioPortConfigImpl()
1122 const bool allowDynamicConfig = portIt->ext.getTag() == AudioPortExt::device && in setAudioPortConfigImpl()
1123 hasDynamicProfilesOnly(portIt->profiles); in setAudioPortConfigImpl()
1126 AudioIoFlags portFlags = portIt->flags; in setAudioPortConfigImpl()
1142 findAudioProfile(*portIt, format, &portProfile)) { in setAudioPortConfigImpl()
1153 !findAudioProfile(*portIt, out_suggested->format.value(), &portProfile)) { in setAudioPortConfigImpl()