/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 33 DeviceDescriptor::DeviceDescriptor(audio_devices_t type) : in DeviceDescriptor() function in android::DeviceDescriptor 34 DeviceDescriptor(type, "" /*tagName*/) in DeviceDescriptor() 38 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, in DeviceDescriptor() function in android::DeviceDescriptor 41 DeviceDescriptor(type, tagName, "" /*address*/, encodedFormats) in DeviceDescriptor() 45 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, in DeviceDescriptor() function in android::DeviceDescriptor 49 DeviceDescriptor(AudioDeviceTypeAddr(type, address), tagName, encodedFormats) in DeviceDescriptor() 55 DeviceDescriptor::DeviceDescriptor(const AudioDeviceTypeAddr &deviceTypeAddr, in DeviceDescriptor() function in android::DeviceDescriptor 64 void DeviceDescriptor::attach(const sp<HwModule>& module) in attach() 70 void DeviceDescriptor::detach() { in detach() 87 bool DeviceDescriptor::equals(const sp<DeviceDescriptor>& other) const in equals() [all …]
|
D | HwModule.cpp | 57 sp<DeviceDescriptor> deviceDesc = declaredDevices.getDevice(device, address, codec); in getTagForDevice() 70 sp<DeviceDescriptor> devDesc = in addOutputProfile() 71 new DeviceDescriptor(device, getTagForDevice(device), address.c_str()); in addOutputProfile() 140 sp<DeviceDescriptor> devDesc = in addInputProfile() 141 new DeviceDescriptor(device, getTagForDevice(device), address.c_str()); in addInputProfile() 176 sp<DeviceDescriptor> HwModule::getRouteSinkDevice(const sp<AudioRoute> &route) const in getRouteSinkDevice() 178 sp<DeviceDescriptor> sinkDevice = 0; in getRouteSinkDevice() 235 sp<DeviceDescriptor> sinkDevice = getRouteSinkDevice(route); in refreshSupportedDevices() 307 sp <DeviceDescriptor> deviceDesc = in getModuleForDeviceType() 327 sp<HwModule> HwModuleCollection::getModuleForDevice(const sp<DeviceDescriptor> &device, in getModuleForDevice() [all …]
|
D | AudioPolicyConfig.cpp | 72 sp<DeviceDescriptor>* defaultOutputDevice) { in aidl2legacy_AudioHwModule_HwModule() 105 sp<DeviceDescriptor>::make(AUDIO_DEVICE_NONE, aidlPort.name); in aidl2legacy_AudioHwModule_HwModule() 151 DeviceVector* attachedOutputDevices, sp<DeviceDescriptor>* defaultOutputDevice) { in aidl2legacy_AudioHwModules_HwModuleCollection() 297 mDefaultOutputDevice = new DeviceDescriptor(AUDIO_DEVICE_OUT_SPEAKER); in setDefault() 299 sp<DeviceDescriptor> defaultInputDevice = new DeviceDescriptor(AUDIO_DEVICE_IN_BUILTIN_MIC); in setDefault()
|
D | AudioPolicyMix.cpp | 329 const sp<DeviceDescriptor>& requestedDevice, in getOutputForAttr() 341 sp<DeviceDescriptor> mixDevice = getOutputDeviceForMix(policyMix.get(), in getOutputForAttr() 403 sp<DeviceDescriptor> AudioPolicyMixCollection::getOutputDeviceForMix(const AudioMix* mix, in getOutputDeviceForMix() 412 const sp<DeviceDescriptor>& requestedDevice, in mixDisallowsRequestedDevice() 413 const sp<DeviceDescriptor>& mixDevice, in mixDisallowsRequestedDevice() 477 sp<DeviceDescriptor> AudioPolicyMixCollection::getDeviceAndMixForOutput( in getDeviceAndMixForOutput() 490 sp<DeviceDescriptor> AudioPolicyMixCollection::getDeviceAndMixForInputSource( in getDeviceAndMixForInputSource()
|
D | IOProfile.cpp | 150 const sp<DeviceDescriptor>& device) const { in containsSingleDeviceSupportingEncodedFormats() 156 [&device](sp<DeviceDescriptor> deviceDesc) { in containsSingleDeviceSupportingEncodedFormats()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | DeviceDescriptor.h | 33 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() = default; 60 bool equals(const sp<DeviceDescriptor>& other) const; 69 return static_cast<PolicyAudioPort*>(const_cast<DeviceDescriptor*>(this)); in getPolicyAudioPort() 80 return static_cast<AudioPort*>(const_cast<DeviceDescriptor*>(this)); in asAudioPort() 115 class DeviceVector : public SortedVector<sp<DeviceDescriptor> > [all …]
|
D | AudioPolicyMix.h | 94 const sp<DeviceDescriptor>& requestedDevice, 99 sp<DeviceDescriptor> getDeviceAndMixForInputSource(const audio_attributes_t& attributes, 112 sp<DeviceDescriptor> getDeviceAndMixForOutput(const sp<SwAudioOutputDescriptor> &output, 154 const sp<DeviceDescriptor>& requestedDevice, 155 const sp<DeviceDescriptor>& mixDevice, 158 sp<DeviceDescriptor> getOutputDeviceForMix(const AudioMix* mix,
|
D | HwModule.h | 59 void addDynamicDevice(const sp<DeviceDescriptor> &device) in addDynamicDevice() 65 bool removeDynamicDevice(const sp<DeviceDescriptor> &device) in removeDynamicDevice() 82 sp<DeviceDescriptor> getRouteSinkDevice(const sp<AudioRoute> &route) const; 154 sp<HwModule> getModuleForDevice(const sp<DeviceDescriptor> &device, 177 sp<DeviceDescriptor> getDeviceDescriptor(const audio_devices_t type, 194 sp<DeviceDescriptor> createDevice(const audio_devices_t type, 206 void cleanUpForDevice(const sp<DeviceDescriptor> &device);
|
D | AudioIODescriptorInterface.h | 42 sp<DeviceDescriptor> findPreferredDevice( in findPreferredDevice() 73 sp<DeviceDescriptor> findPreferredDevice( in findPreferredDevice() 76 sp<DeviceDescriptor> device; in findPreferredDevice() 80 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
|
D | AudioInputDescriptor.h | 52 sp<DeviceDescriptor> getDevice() const { return mDevice; } in getDevice() 53 void setDevice(const sp<DeviceDescriptor> &device) { mDevice = device; } in setDevice() 105 const sp<DeviceDescriptor> &device, 135 sp<DeviceDescriptor> mDevice = nullptr; /**< current device this input is routed to */ 181 void clearSessionRoutesForDevice(const sp<DeviceDescriptor> &disconnectedDevice);
|
D | AudioPolicyConfig.h | 102 void addDevice(const sp<DeviceDescriptor> &device) in addDevice() 119 const sp<DeviceDescriptor>& getDefaultOutputDevice() const { return mDefaultOutputDevice; } in getDefaultOutputDevice() 120 void setDefaultOutputDevice(const sp<DeviceDescriptor> &defaultDevice) in setDefaultOutputDevice() 157 sp<DeviceDescriptor> mDefaultOutputDevice;
|
D | IOProfile.h | 163 bool supportsDevice(const sp<DeviceDescriptor> &device, bool forceCheckOnAddress = false) const 186 bool containsSingleDeviceSupportingEncodedFormats(const sp<DeviceDescriptor>& device) const; 189 void addSupportedDevice(const sp<DeviceDescriptor> &device) in addSupportedDevice() 193 void removeSupportedDevice(const sp<DeviceDescriptor> &device) in removeSupportedDevice()
|
D | ClientDescriptor.h | 41 class DeviceDescriptor; variable 238 const sp<DeviceDescriptor>& srcDevice, 245 void connect(audio_patch_handle_t patchHandle, const sp<DeviceDescriptor>& sinkDevice) { in connect() 261 sp<DeviceDescriptor> srcDevice() const { return mSrcDevice; } in srcDevice() 262 sp<DeviceDescriptor> sinkDevice() const { return mSinkDevice; } in sinkDevice() 276 const sp<DeviceDescriptor> mSrcDevice; 277 sp<DeviceDescriptor> mSinkDevice;
|
D | AudioOutputDescriptor.h | 372 const sp<DeviceDescriptor>& device) const; 436 bool supportsDevice(const sp<DeviceDescriptor> &device) const; 489 bool isUsageActiveOnDevice(audio_usage_t usage, sp<DeviceDescriptor> device) const; 588 void clearSessionRoutesForDevice(const sp<DeviceDescriptor> &disconnectedDevice); 630 bool isUsageActiveOnDevice(audio_usage_t usage, sp<DeviceDescriptor> device) const;
|
D | AudioRoute.h | 29 class DeviceDescriptor; variable
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | LastRemovableMediaDevices.h | 36 void setRemovableMediaDevices(sp<DeviceDescriptor> desc, audio_policy_dev_state_t state); 40 sp<DeviceDescriptor> getLastRemovableMediaDevice( 45 sp<DeviceDescriptor> desc;
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 473 virtual const sp<DeviceDescriptor> &getDefaultOutputDevice() const in getDefaultOutputDevice() 566 const sp<DeviceDescriptor> &device, 680 status_t checkOutputsForDevice(const sp<DeviceDescriptor>& device, 684 status_t checkInputsForDevice(const sp<DeviceDescriptor>& device, 711 void connectTelephonyTxAudioSource(const sp<DeviceDescriptor> &srcdevice, 712 const sp<DeviceDescriptor> &sinkDevice, 780 sp<DeviceDescriptor> getNewInputDevice(const sp<AudioInputDescriptor>& inputDesc); 816 sp<IOProfile> getInputProfile(const sp<DeviceDescriptor> & device, 899 sp<AudioPatch> createTelephonyPatch(bool isRx, const sp<DeviceDescriptor> &device, 911 bool isDeviceOfModule(const sp<DeviceDescriptor>& devDesc, const char *moduleId) const; [all …]
|
D | AudioPolicyManager.cpp | 125 void AudioPolicyManager::broadcastDeviceConnectionState(const sp<DeviceDescriptor> &device, in broadcastDeviceConnectionState() 156 sp<DeviceDescriptor> device = mHwModules.getDeviceDescriptor( in setDeviceConnectionStateInt() 183 status_t AudioPolicyManager::setDeviceConnectionStateInt(const sp<DeviceDescriptor> &device, in setDeviceConnectionStateInt() 479 void AudioPolicyManager::setEngineDeviceConnectionState(const sp<DeviceDescriptor> device, in setEngineDeviceConnectionState() 493 sp<DeviceDescriptor> devDesc = in getDeviceConnectionState() 537 sp<DeviceDescriptor> devDesc = deviceList.itemAt(0); in handleDeviceConfigChange() 668 sp<DeviceDescriptor> rxSourceDevice = mAvailableInputDevices.getDevice( in selectBestRxSinkDevicesForCall() 727 sp<DeviceDescriptor> rxSourceDevice = in updateCallRoutingInternal() 731 sp<DeviceDescriptor> txSinkDevice = in updateCallRoutingInternal() 791 const sp<DeviceDescriptor>& devDesc, const char *moduleId) const { in isDeviceOfModule() [all …]
|
/frameworks/av/services/audiopolicy/enginedefault/src/ |
D | Engine.h | 68 const sp<DeviceDescriptor> &preferedDevice = nullptr, 74 sp<DeviceDescriptor> getInputDeviceForAttributes(const audio_attributes_t &attr, 102 sp<DeviceDescriptor> getDeviceForInputSource(audio_source_t inputSource) const;
|
D | Engine.cpp | 228 sp<DeviceDescriptor> txDeviceDesc = in filterOutputDevicesForStrategy() 416 sp<DeviceDescriptor> remoteSubmix; in getDevicesForStrategyInt() 547 sp<DeviceDescriptor> defaultOutputDevice = getApmObserver()->getDefaultOutputDevice(); in getDevicesForStrategyInt() 592 sp<DeviceDescriptor> Engine::getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource() 601 sp<DeviceDescriptor> device; in getDeviceForInputSource() 845 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes() 862 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes() 876 sp<DeviceDescriptor> Engine::getInputDeviceForAttributes(const audio_attributes_t &attr, in getInputDeviceForAttributes() 892 sp<DeviceDescriptor> device = in getInputDeviceForAttributes()
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
D | Engine.h | 62 status_t setDeviceConnectionState(const sp<DeviceDescriptor> devDesc, 66 const sp<DeviceDescriptor> &preferedDevice = nullptr, 72 sp<DeviceDescriptor> getInputDeviceForAttributes(const audio_attributes_t &attr,
|
D | Engine.cpp | 188 status_t Engine::setDeviceConnectionState(const sp<DeviceDescriptor> device, in setDeviceConnectionState() 413 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes() 430 sp<DeviceDescriptor> device = findPreferredDevice(outputs, strategy, availableOutputDevices); in getOutputDevicesForAttributes() 449 sp<DeviceDescriptor> Engine::getInputDeviceForAttributes(const audio_attributes_t &attr, in getInputDeviceForAttributes() 464 sp<DeviceDescriptor> device = in getInputDeviceForAttributes()
|
/frameworks/av/services/audiopolicy/engine/interface/ |
D | EngineInterface.h | 125 virtual status_t setDeviceConnectionState(const android::sp<android::DeviceDescriptor> devDesc, 162 const sp<DeviceDescriptor> &preferedDevice = nullptr, 193 virtual sp<DeviceDescriptor> getInputDeviceForAttributes(
|
D | AudioPolicyManagerObserver.h | 52 virtual const sp<DeviceDescriptor> &getDefaultOutputDevice() const = 0;
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | LastRemovableMediaDevices.cpp | 25 void LastRemovableMediaDevices::setRemovableMediaDevices(sp<DeviceDescriptor> desc, in setRemovableMediaDevices() 61 sp<DeviceDescriptor> LastRemovableMediaDevices::getLastRemovableMediaDevice( in getLastRemovableMediaDevice()
|