Home
last modified time | relevance | path

Searched refs:audio_devices_t (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h95 virtual status_t setDeviceConnectionState(audio_devices_t device,
99 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
101 virtual status_t handleDeviceConfigChange(audio_devices_t device,
157 audio_devices_t device);
160 audio_devices_t device);
168 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream);
220 audio_devices_t *device);
239 audio_stream_type_t stream, int index, audio_devices_t device);
318 virtual audio_devices_t getDeviceForStrategy(routing_strategy strategy,
327 audio_devices_t device,
[all …]
DAudioPolicyManager.cpp87 status_t AudioPolicyManager::setDeviceConnectionState(audio_devices_t device, in setDeviceConnectionState()
97 void AudioPolicyManager::broadcastDeviceConnectionState(audio_devices_t device, in broadcastDeviceConnectionState()
108 status_t AudioPolicyManager::setDeviceConnectionStateInt(audio_devices_t device, in setDeviceConnectionStateInt()
225 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt()
231 audio_devices_t newDevice = getNewOutputDevice(desc, true /*fromCache*/); in setDeviceConnectionStateInt()
322 audio_devices_t newDevice = getNewOutputDevice(mPrimaryOutput, false /*fromCache*/); in setDeviceConnectionStateInt()
338 audio_policy_dev_state_t AudioPolicyManager::getDeviceConnectionState(audio_devices_t device, in getDeviceConnectionState()
366 status_t AudioPolicyManager::handleDeviceConfigChange(audio_devices_t device, in handleDeviceConfigChange()
433 uint32_t AudioPolicyManager::updateCallRouting(audio_devices_t rxDevice, uint32_t delayMs) in updateCallRouting()
441 audio_devices_t txDevice = getDeviceAndMixForInputSource(AUDIO_SOURCE_VOICE_COMMUNICATION); in updateCallRouting()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DDeviceDescriptor.h33 explicit DeviceDescriptor(audio_devices_t type, const String8 &tagName = String8(""));
39 audio_devices_t type() const { return mDeviceType; } in type()
61 audio_devices_t mDeviceType;
77 audio_devices_t types() const { return mDeviceTypes; } in types()
79 sp<DeviceDescriptor> getDevice(audio_devices_t type, const String8& address) const;
80 DeviceVector getDevicesFromType(audio_devices_t types) const;
83 DeviceVector getDevicesFromTypeAddr(audio_devices_t type, const String8& address) const;
85 audio_devices_t getDevicesFromHwModule(audio_module_handle_t moduleHandle) const;
91 audio_devices_t mDeviceTypes;
DAudioOutputDescriptor.h49 virtual audio_devices_t device() const;
51 virtual audio_devices_t supportedDevices();
54 virtual bool isFixedVolume(audio_devices_t device);
59 audio_devices_t device,
80 audio_devices_t mDevice; // current device this output is routed to
104 virtual audio_devices_t device() const;
106 virtual audio_devices_t supportedDevices();
109 virtual bool isFixedVolume(audio_devices_t device);
115 audio_devices_t device,
124 audio_devices_t device,
[all …]
DStreamDescriptor.h33 int getVolumeIndex(audio_devices_t device) const;
36 void addCurrentVolumeIndex(audio_devices_t device, int index);
41 bool hasVolumeIndexForDevice(audio_devices_t device) const in hasVolumeIndexForDevice()
57 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */
73 virtual void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device,
80 virtual int getVolumeIndex(audio_stream_type_t stream, audio_devices_t device) in getVolumeIndex()
94 audio_devices_t device) const in hasVolumeIndexForDevice()
DIOProfile.h64 bool isCompatibleProfile(audio_devices_t device,
81 bool supportDevice(audio_devices_t device) const in supportDevice()
95 audio_devices_t getSupportedDeviceForType(audio_devices_t deviceType) const in getSupportedDeviceForType()
98 audio_devices_t profileType = mSupportedDevices[k]->type(); in getSupportedDeviceForType()
106 audio_devices_t getSupportedDevicesType() const { return mSupportedDevices.types(); } in getSupportedDevicesType()
119 sp<DeviceDescriptor> getSupportedDeviceByAddress(audio_devices_t type, String8 address) const in getSupportedDeviceByAddress()
DVolumeCurve.h87 int getVolumeIndex(audio_devices_t device) const in getVolumeIndex()
99 void addCurrentVolumeIndex(audio_devices_t device, int index) { mIndexCur.add(device, index); } in addCurrentVolumeIndex()
107 bool hasVolumeIndexForDevice(audio_devices_t device) const in hasVolumeIndexForDevice()
151 KeyedVector<audio_devices_t, int> mIndexCur; /**< current volume index per device. */
182 … virtual void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) in addCurrentVolumeIndex()
196 virtual int getVolumeIndex(audio_stream_type_t stream, audio_devices_t device) in getVolumeIndex()
215 audio_devices_t device) const in hasVolumeIndexForDevice()
DIVolumeCurvesCollection.h31 virtual void addCurrentVolumeIndex(audio_stream_type_t stream, audio_devices_t device,
35 virtual int getVolumeIndex(audio_stream_type_t stream, audio_devices_t device) = 0;
48 audio_devices_t device) const = 0;
DAudioInputDescriptor.h46 audio_devices_t mDevice; // current device this input is routed to
77 audio_devices_t device,
115 uint32_t activeInputsCountOnDevices(audio_devices_t devices = AUDIO_DEVICE_IN_DEFAULT) const;
124 audio_devices_t getSupportedDevices(audio_io_handle_t handle) const;
DHwModule.h70 audio_devices_t device, const String8& address);
73 audio_devices_t device, const String8& address);
105 sp<HwModule> getModuleForDevice(audio_devices_t device) const;
107 sp<DeviceDescriptor> getDeviceDescriptor(const audio_devices_t device,
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DStrategy.cpp47 status_t Element<routing_strategy>::set<audio_devices_t>(audio_devices_t devices) in set()
60 audio_devices_t Element<routing_strategy>::get<audio_devices_t>() const in get()
DEngine.h59 virtual audio_devices_t getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
61 return mPolicyEngine->getPropertyForKey<audio_devices_t, audio_source_t>(inputSource); in getDeviceForInputSource()
63 virtual audio_devices_t getDeviceForStrategy(routing_strategy stategy) const;
118 virtual bool setDeviceForStrategy(const routing_strategy &strategy, audio_devices_t devices) in setDeviceForStrategy()
120 return mPolicyEngine->setPropertyForKey<audio_devices_t, routing_strategy>(devices, in setDeviceForStrategy()
138 audio_devices_t device) in setDeviceForInputSource()
140 return mPolicyEngine->setPropertyForKey<audio_devices_t, audio_source_t>(device, in setDeviceForInputSource()
DInputSource.cpp47 status_t Element<audio_source_t>::set(audio_devices_t devices) in set()
63 audio_devices_t Element<audio_source_t>::get<audio_devices_t>() const in get()
DEngine.cpp146 audio_devices_t Engine::ManagerInterfaceImpl::getDeviceForStrategy(routing_strategy strategy) const in getDeviceForStrategy()
165 return mPolicyEngine->getPropertyForKey<audio_devices_t, routing_strategy>(STRATEGY_MEDIA); in getDeviceForStrategy()
172 return mPolicyEngine->getPropertyForKey<audio_devices_t, routing_strategy>( in getDeviceForStrategy()
175 return mPolicyEngine->getPropertyForKey<audio_devices_t, routing_strategy>(strategy); in getDeviceForStrategy()
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.h57 virtual audio_devices_t getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
61 virtual audio_devices_t getDeviceForStrategy(routing_strategy strategy) const in getDeviceForStrategy()
123 status_t setDefaultDevice(audio_devices_t device);
127 audio_devices_t getDeviceForStrategy(routing_strategy strategy) const;
128 audio_devices_t getDeviceForStrategyInt(routing_strategy strategy,
133 audio_devices_t getDeviceForInputSource(audio_source_t inputSource) const;
/frameworks/av/include/media/
DIAudioPolicyService.h45 virtual status_t setDeviceConnectionState(audio_devices_t device,
49 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
51 virtual status_t handleDeviceConfigChange(audio_devices_t device,
97 audio_devices_t device) = 0;
100 audio_devices_t device) = 0;
102 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0;
152 audio_devices_t *device) = 0;
168 audio_stream_type_t stream, int index, audio_devices_t device) = 0;
DAudioSystem.h206 static status_t setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state,
208 static audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
210 static status_t handleDeviceConfigChange(audio_devices_t device,
259 audio_devices_t device);
262 audio_devices_t device);
265 static audio_devices_t getDevicesForStream(audio_stream_type_t stream);
323 audio_devices_t *device);
339 audio_stream_type_t stream, int index, audio_devices_t device);
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyService.h45 virtual status_t setDeviceConnectionState(audio_devices_t device,
49 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
51 virtual status_t handleDeviceConfigChange(audio_devices_t device,
97 audio_devices_t device) = 0;
100 audio_devices_t device) = 0;
102 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0;
152 audio_devices_t *device) = 0;
168 audio_stream_type_t stream, int index, audio_devices_t device) = 0;
DAudioSystem.h206 static status_t setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state,
208 static audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
210 static status_t handleDeviceConfigChange(audio_devices_t device,
259 audio_devices_t device);
262 audio_devices_t device);
265 static audio_devices_t getDevicesForStream(audio_stream_type_t stream);
323 audio_devices_t *device);
339 audio_stream_type_t stream, int index, audio_devices_t device);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h89 virtual status_t setDeviceConnectionState(audio_devices_t device,
94 virtual audio_policy_dev_state_t getDeviceConnectionState(audio_devices_t device,
97 virtual status_t handleDeviceConfigChange(audio_devices_t device,
175 audio_devices_t device) = 0;
182 audio_devices_t device) = 0;
188 virtual audio_devices_t getDevicesForStream(audio_stream_type_t stream) = 0;
229 audio_devices_t *device) = 0;
246 audio_stream_type_t stream, int index, audio_devices_t device) = 0;
282 audio_devices_t *devices,
305 audio_devices_t *device,
/frameworks/av/services/audiopolicy/common/include/
DVolume.h71 static audio_devices_t getDeviceForVolume(audio_devices_t device) in getDeviceForVolume()
95 device = (audio_devices_t)(device & AUDIO_DEVICE_OUT_ALL_A2DP); in getDeviceForVolume()
117 static device_category getDeviceCategory(audio_devices_t device) in getDeviceCategory()
Dpolicy.h77 static inline bool is_virtual_input_device(audio_devices_t device) in is_virtual_input_device()
95 static inline bool device_distinguishes_on_address(audio_devices_t device) in device_distinguishes_on_address()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp68 audio_devices_t AudioOutputDescriptor::device() const in device()
73 audio_devices_t AudioOutputDescriptor::supportedDevices() in supportedDevices()
139 bool AudioOutputDescriptor::isFixedVolume(audio_devices_t device __unused) in isFixedVolume()
146 audio_devices_t device __unused, in setVolume()
252 audio_devices_t SwAudioOutputDescriptor::device() const in device()
255 return (audio_devices_t)(mOutput1->mDevice | mOutput2->mDevice); in device()
274 audio_devices_t SwAudioOutputDescriptor::supportedDevices() in supportedDevices()
277 return (audio_devices_t)(mOutput1->supportedDevices() | mOutput2->supportedDevices()); in supportedDevices()
327 bool SwAudioOutputDescriptor::isFixedVolume(audio_devices_t device) in isFixedVolume()
369 audio_devices_t device, in setVolume()
[all …]
DDeviceDescriptor.cpp28 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, const String8 &tagName) : in DeviceDescriptor()
124 audio_devices_t DeviceVector::getDevicesFromHwModule(audio_module_handle_t moduleHandle) const in getDevicesFromHwModule()
126 audio_devices_t devices = AUDIO_DEVICE_NONE; in getDevicesFromHwModule()
135 sp<DeviceDescriptor> DeviceVector::getDevice(audio_devices_t type, const String8& address) const in getDevice()
163 DeviceVector DeviceVector::getDevicesFromType(audio_devices_t type) const in getDevicesFromType()
170 audio_devices_t curType = itemAt(i)->mDeviceType & ~AUDIO_DEVICE_BIT_IN; in getDevicesFromType()
182 audio_devices_t type, const String8& address) const in getDevicesFromTypeAddr()
/frameworks/av/services/audiopolicy/engine/interface/
DAudioPolicyManagerInterface.h59 virtual audio_devices_t getDeviceForInputSource(audio_source_t inputSource) const = 0;
68 virtual audio_devices_t getDeviceForStrategy(routing_strategy stategy) const = 0;

1234