Lines Matching refs:availableOutputDevices
146 DeviceVector& availableOutputDevices, in filterOutputDevicesForStrategy() argument
155 availableOutputDevices.remove(availableOutputDevices.getDevicesFromType( in filterOutputDevicesForStrategy()
177 DeviceVector availPrimaryOutputDevices = availableOutputDevices.getDevicesFromTypes( in filterOutputDevicesForStrategy()
180 availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_HEARING_AID)); in filterOutputDevicesForStrategy()
187 availableOutputDevices = availPrimaryOutputDevices; in filterOutputDevicesForStrategy()
194 availableOutputDevices.remove(availableOutputDevices.getDevicesFromTypes({ in filterOutputDevicesForStrategy()
205 availableOutputDevices.remove(desc->devices().getDevicesFromTypes({ in filterOutputDevicesForStrategy()
258 DeviceVector availableOutputDevices, in getDevicesForStrategyInt() argument
266 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER); in getDevicesForStrategyInt()
270 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_HEARING_AID); in getDevicesForStrategyInt()
272 devices = availableOutputDevices.getFirstDevicesFromTypes( in getDevicesForStrategyInt()
275 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_EARPIECE); in getDevicesForStrategyInt()
287 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER); in getDevicesForStrategyInt()
292 if (!availableOutputDevices.getDevicesFromTypes(getAudioDeviceOutAllScoSet()).isEmpty()) { in getDevicesForStrategyInt()
294 devices2 = availableOutputDevices.getFirstDevicesFromTypes({ in getDevicesForStrategyInt()
310 availableOutputDevices, STRATEGY_PHONE))) { in getDevicesForStrategyInt()
314 availableOutputDevices.getDevicesFromType( in getDevicesForStrategyInt()
335 if ((remoteSubmix = availableOutputDevices.getDevice( in getDevicesForStrategyInt()
344 devices2 = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER); in getDevicesForStrategyInt()
349 devices2 = availableOutputDevices.getFirstDevicesFromTypes( in getDevicesForStrategyInt()
353 devices2 = availableOutputDevices.getFirstDevicesFromTypes( in getDevicesForStrategyInt()
359 devices2 = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_AUX_DIGITAL); in getDevicesForStrategyInt()
363 devices2 = availableOutputDevices.getDevicesFromType( in getDevicesForStrategyInt()
367 devices2 = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER); in getDevicesForStrategyInt()
372 devices3 = availableOutputDevices.getDevicesFromTypes({ in getDevicesForStrategyInt()
407 availableOutputDevices.getDevicesFromType( in getDevicesForStrategyInt()
413 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_TELEPHONY_TX); in getDevicesForStrategyInt()
443 const DeviceVector availableOutputDevices = getApmObserver()->getAvailableOutputDevices(); in getDeviceForInputSource() local
471 getPreferredDeviceTypeForLegacyStrategy(availableOutputDevices, STRATEGY_PHONE); in getDeviceForInputSource()
494 (availableOutputDevices.getDevice(AUDIO_DEVICE_OUT_TELEPHONY_TX, in getDeviceForInputSource()
628 const DeviceVector& availableOutputDevices, legacy_strategy legacyStrategy) const { in getPreferredDeviceTypeForLegacyStrategy() argument
631 availableOutputDevices, strategy); in getPreferredDeviceTypeForLegacyStrategy()
639 const DeviceVector& availableOutputDevices, product_strategy_t strategy) const { in getPreferredAvailableDevicesForProductStrategy() argument
647 availableOutputDevices.getDevicesFromDeviceTypeAddrVec(preferredStrategyDevices); in getPreferredAvailableDevicesForProductStrategy()
668 DeviceVector availableOutputDevices = getApmObserver()->getAvailableOutputDevices(); in getDevicesForProductStrategy() local
670 filterOutputDevicesForStrategy(legacyStrategy, availableOutputDevices, outputs); in getDevicesForProductStrategy()
675 getPreferredAvailableDevicesForProductStrategy(availableOutputDevices, strategy); in getDevicesForProductStrategy()
681 availableOutputDevices, in getDevicesForProductStrategy()
695 const DeviceVector availableOutputDevices = getApmObserver()->getAvailableOutputDevices(); in getOutputDevicesForAttributes() local
703 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes()