Home
last modified time | relevance | path

Searched refs:DeviceDescriptor (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DDeviceDescriptor.cpp32 DeviceDescriptor::DeviceDescriptor(audio_devices_t type) : in DeviceDescriptor() function in android::DeviceDescriptor
33 DeviceDescriptor(type, "" /*tagName*/) in DeviceDescriptor()
37 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, in DeviceDescriptor() function in android::DeviceDescriptor
40 DeviceDescriptor(type, tagName, "" /*address*/, encodedFormats) in DeviceDescriptor()
44 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, in DeviceDescriptor() function in android::DeviceDescriptor
48 DeviceDescriptor(AudioDeviceTypeAddr(type, address), tagName, encodedFormats) in DeviceDescriptor()
54 DeviceDescriptor::DeviceDescriptor(const AudioDeviceTypeAddr &deviceTypeAddr, in DeviceDescriptor() function in android::DeviceDescriptor
72 void DeviceDescriptor::attach(const sp<HwModule>& module) in attach()
78 void DeviceDescriptor::detach() { in detach()
95 bool DeviceDescriptor::equals(const sp<DeviceDescriptor>& other) const in equals()
[all …]
DHwModule.cpp48 sp<DeviceDescriptor> deviceDesc = declaredDevices.getDevice(device, address, codec); in getTagForDevice()
60 sp<DeviceDescriptor> devDesc = in addOutputProfile()
61 new DeviceDescriptor(device, getTagForDevice(device), address.string()); in addOutputProfile()
128 sp<DeviceDescriptor> devDesc = in addInputProfile()
129 new DeviceDescriptor(device, getTagForDevice(device), address.string()); in addInputProfile()
164 sp<DeviceDescriptor> HwModule::getRouteSinkDevice(const sp<AudioRoute> &route) const in getRouteSinkDevice()
166 sp<DeviceDescriptor> sinkDevice = 0; in getRouteSinkDevice()
223 sp<DeviceDescriptor> sinkDevice = getRouteSinkDevice(route); in refreshSupportedDevices()
295 sp <DeviceDescriptor> deviceDesc = in getModuleForDeviceType()
315 sp<HwModule> HwModuleCollection::getModuleForDevice(const sp<DeviceDescriptor> &device, in getModuleForDevice()
[all …]
DIOProfile.cpp109 const sp<DeviceDescriptor>& device) const { in containsSingleDeviceSupportingEncodedFormats()
115 [&device](sp<DeviceDescriptor> deviceDesc) { in containsSingleDeviceSupportingEncodedFormats()
DClientDescriptor.cpp93 const sp<DeviceDescriptor>& srcDevice, audio_stream_type_t stream, in SourceClientDescriptor()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DDeviceDescriptor.h33 class DeviceDescriptor : public DeviceDescriptorBase,
38 explicit DeviceDescriptor(audio_devices_t type);
39 DeviceDescriptor(audio_devices_t type, const std::string &tagName,
41 DeviceDescriptor(audio_devices_t type, const std::string &tagName,
43 DeviceDescriptor(const AudioDeviceTypeAddr &deviceTypeAddr, const std::string &tagName = "",
46 virtual ~DeviceDescriptor() {} in ~DeviceDescriptor()
62 bool equals(const sp<DeviceDescriptor>& other) const;
73 return static_cast<PolicyAudioPort*>(const_cast<DeviceDescriptor*>(this)); in getPolicyAudioPort()
84 return static_cast<AudioPort*>(const_cast<DeviceDescriptor*>(this)); in asAudioPort()
115 class DeviceVector : public SortedVector<sp<DeviceDescriptor> >
[all …]
DAudioPolicyConfig.h51 sp<DeviceDescriptor> &defaultOutputDevice) in AudioPolicyConfig()
92 void addDevice(const sp<DeviceDescriptor> &device) in addDevice()
138 void setDefaultOutputDevice(const sp<DeviceDescriptor> &defaultDevice) in setDefaultOutputDevice()
143 const sp<DeviceDescriptor> &getDefaultOutputDevice() const { return mDefaultOutputDevice; } in getDefaultOutputDevice()
149 mDefaultOutputDevice = new DeviceDescriptor(AUDIO_DEVICE_OUT_SPEAKER); in setDefault()
151 sp<DeviceDescriptor> defaultInputDevice = new DeviceDescriptor(AUDIO_DEVICE_IN_BUILTIN_MIC); in setDefault()
213 sp<DeviceDescriptor> &mDefaultOutputDevice;
DHwModule.h58 void addDynamicDevice(const sp<DeviceDescriptor> &device) in addDynamicDevice()
64 bool removeDynamicDevice(const sp<DeviceDescriptor> &device) in removeDynamicDevice()
81 sp<DeviceDescriptor> getRouteSinkDevice(const sp<AudioRoute> &route) const;
150 sp<HwModule> getModuleForDevice(const sp<DeviceDescriptor> &device,
173 sp<DeviceDescriptor> getDeviceDescriptor(const audio_devices_t type,
190 sp<DeviceDescriptor> createDevice(const audio_devices_t type,
202 void cleanUpForDevice(const sp<DeviceDescriptor> &device);
DAudioIODescriptorInterface.h42 sp<DeviceDescriptor> findPreferredDevice( in findPreferredDevice()
69 sp<DeviceDescriptor> findPreferredDevice( in findPreferredDevice()
72 sp<DeviceDescriptor> device; in findPreferredDevice()
76 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
DAudioInputDescriptor.h52 sp<DeviceDescriptor> getDevice() const { return mDevice; } in getDevice()
53 void setDevice(const sp<DeviceDescriptor> &device) { mDevice = device; } in setDevice()
103 const sp<DeviceDescriptor> &device,
133 sp<DeviceDescriptor> mDevice = nullptr; /**< current device this input is routed to */
178 void clearSessionRoutesForDevice(const sp<DeviceDescriptor> &disconnectedDevice);
DIOProfile.h136 bool supportsDevice(const sp<DeviceDescriptor> &device, bool forceCheckOnAddress = false) const
159 bool containsSingleDeviceSupportingEncodedFormats(const sp<DeviceDescriptor>& device) const;
162 void addSupportedDevice(const sp<DeviceDescriptor> &device) in addSupportedDevice()
166 void removeSupportedDevice(const sp<DeviceDescriptor> &device) in removeSupportedDevice()
DClientDescriptor.h39 class DeviceDescriptor; variable
198 const sp<DeviceDescriptor>& srcDevice,
204 void connect(audio_patch_handle_t patchHandle, const sp<DeviceDescriptor>& sinkDevice) { in connect()
214 sp<DeviceDescriptor> srcDevice() const { return mSrcDevice; } in srcDevice()
215 sp<DeviceDescriptor> sinkDevice() const { return mSinkDevice; } in sinkDevice()
226 const sp<DeviceDescriptor> mSrcDevice;
227 sp<DeviceDescriptor> mSinkDevice;
DAudioPolicyMix.h78 sp<DeviceDescriptor> getDeviceAndMixForInputSource(audio_source_t inputSource,
90 sp<DeviceDescriptor> getDeviceAndMixForOutput(const sp<SwAudioOutputDescriptor> &output,
DAudioRoute.h29 class DeviceDescriptor; variable
DAudioOutputDescriptor.h342 const sp<DeviceDescriptor>& device) const;
389 bool supportsDevice(const sp<DeviceDescriptor> &device) const;
501 void clearSessionRoutesForDevice(const sp<DeviceDescriptor> &disconnectedDevice);
/frameworks/av/services/audiopolicy/engine/common/include/
DLastRemovableMediaDevices.h36 void setRemovableMediaDevices(sp<DeviceDescriptor> desc, audio_policy_dev_state_t state);
39 sp<DeviceDescriptor> getLastRemovableMediaDevice(
44 sp<DeviceDescriptor> desc;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h410 virtual const sp<DeviceDescriptor> &getDefaultOutputDevice() const in getDefaultOutputDevice()
468 const sp<DeviceDescriptor> &device,
542 status_t checkOutputsForDevice(const sp<DeviceDescriptor>& device,
546 status_t checkInputsForDevice(const sp<DeviceDescriptor>& device,
635 sp<DeviceDescriptor> getNewInputDevice(const sp<AudioInputDescriptor>& inputDesc);
671 sp<IOProfile> getInputProfile(const sp<DeviceDescriptor> & device,
745 sp<AudioPatch> createTelephonyPatch(bool isRx, const sp<DeviceDescriptor> &device,
757 bool isDeviceOfModule(const sp<DeviceDescriptor>& devDesc, const char *moduleId) const;
785 void cleanUpForDevice(const sp<DeviceDescriptor>& deviceDesc);
817 sp<DeviceDescriptor> mDefaultOutputDevice; // output device selected by default at boot time
[all …]
DAudioPolicyManager.cpp112 void AudioPolicyManager::broadcastDeviceConnectionState(const sp<DeviceDescriptor> &device, in broadcastDeviceConnectionState()
134 sp<DeviceDescriptor> device = in setDeviceConnectionStateInt()
140 status_t AudioPolicyManager::setDeviceConnectionStateInt(const sp<DeviceDescriptor> &device, in setDeviceConnectionStateInt()
402 void AudioPolicyManager::setEngineDeviceConnectionState(const sp<DeviceDescriptor> device, in setEngineDeviceConnectionState()
416 sp<DeviceDescriptor> devDesc = in getDeviceConnectionState()
465 sp<DeviceDescriptor> devDesc = deviceList.itemAt(0); in handleDeviceConfigChange()
559 sp<DeviceDescriptor> rxSourceDevice = mAvailableInputDevices.getDevice( in selectBestRxSinkDevicesForCall()
615 sp<DeviceDescriptor> rxSourceDevice = in updateCallRoutingInternal()
619 sp<DeviceDescriptor> txSinkDevice = in updateCallRoutingInternal()
675 bool isRx, const sp<DeviceDescriptor> &device, uint32_t delayMs) { in createTelephonyPatch()
[all …]
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.h59 const sp<DeviceDescriptor> &preferedDevice = nullptr,
65 sp<DeviceDescriptor> getInputDeviceForAttributes(const audio_attributes_t &attr,
92 sp<DeviceDescriptor> getDeviceForInputSource(audio_source_t inputSource) const;
DEngine.cpp334 sp<DeviceDescriptor> remoteSubmix; in getDevicesForStrategyInt()
427 sp<DeviceDescriptor> defaultOutputDevice = getApmObserver()->getDefaultOutputDevice(); in getDevicesForStrategyInt()
441 sp<DeviceDescriptor> Engine::getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
450 sp<DeviceDescriptor> device; in getDeviceForInputSource()
686 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes()
703 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes()
717 sp<DeviceDescriptor> Engine::getInputDeviceForAttributes(const audio_attributes_t &attr, in getInputDeviceForAttributes()
732 sp<DeviceDescriptor> device = in getInputDeviceForAttributes()
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.h54 android::status_t setDeviceConnectionState(const sp<DeviceDescriptor> devDesc,
58 const sp<DeviceDescriptor> &preferedDevice = nullptr,
64 sp<DeviceDescriptor> getInputDeviceForAttributes(const audio_attributes_t &attr,
DEngine.cpp166 status_t Engine::setDeviceConnectionState(const sp<DeviceDescriptor> device, in setDeviceConnectionState()
281 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes()
298 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes()
312 sp<DeviceDescriptor> Engine::getInputDeviceForAttributes(const audio_attributes_t &attr, in getInputDeviceForAttributes()
326 sp<DeviceDescriptor> device = in getInputDeviceForAttributes()
/frameworks/av/services/audiopolicy/engine/interface/
DEngineInterface.h108 virtual status_t setDeviceConnectionState(const android::sp<android::DeviceDescriptor> devDesc,
145 const sp<DeviceDescriptor> &preferedDevice = nullptr,
176 virtual sp<DeviceDescriptor> getInputDeviceForAttributes(const audio_attributes_t &attr,
DAudioPolicyManagerObserver.h52 virtual const sp<DeviceDescriptor> &getDefaultOutputDevice() const = 0;
/frameworks/av/services/audiopolicy/engine/common/src/
DLastRemovableMediaDevices.cpp25 void LastRemovableMediaDevices::setRemovableMediaDevices(sp<DeviceDescriptor> desc, in setRemovableMediaDevices()
58 sp<DeviceDescriptor> LastRemovableMediaDevices::getLastRemovableMediaDevice( in getLastRemovableMediaDevice()
/frameworks/av/services/audiopolicy/common/managerdefinitions/
DAndroid.bp22 "src/DeviceDescriptor.cpp",

12