Lines Matching refs:devDesc

119     sp<DeviceDescriptor> devDesc =  in setDeviceConnectionStateInt()  local
126 ssize_t index = mAvailableOutputDevices.indexOf(devDesc); in setDeviceConnectionStateInt()
142 index = mAvailableOutputDevices.add(devDesc); in setDeviceConnectionStateInt()
148 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
158 broadcastDeviceConnectionState(device, state, devDesc->mAddress); in setDeviceConnectionStateInt()
160 if (checkOutputsForDevice(devDesc, state, outputs, devDesc->mAddress) != NO_ERROR) { in setDeviceConnectionStateInt()
161 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
164 devDesc->mAddress); in setDeviceConnectionStateInt()
168 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
187 broadcastDeviceConnectionState(device, state, devDesc->mAddress); in setDeviceConnectionStateInt()
190 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
192 checkOutputsForDevice(devDesc, state, outputs, devDesc->mAddress); in setDeviceConnectionStateInt()
195 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
244 cleanUpForDevice(devDesc); in setDeviceConnectionStateInt()
255 ssize_t index = mAvailableInputDevices.indexOf(devDesc); in setDeviceConnectionStateInt()
273 broadcastDeviceConnectionState(device, state, devDesc->mAddress); in setDeviceConnectionStateInt()
275 if (checkInputsForDevice(devDesc, state, inputs, devDesc->mAddress) != NO_ERROR) { in setDeviceConnectionStateInt()
277 devDesc->mAddress); in setDeviceConnectionStateInt()
281 index = mAvailableInputDevices.add(devDesc); in setDeviceConnectionStateInt()
289 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
302 broadcastDeviceConnectionState(device, state, devDesc->mAddress); in setDeviceConnectionStateInt()
304 checkInputsForDevice(devDesc, state, inputs, devDesc->mAddress); in setDeviceConnectionStateInt()
305 mAvailableInputDevices.remove(devDesc); in setDeviceConnectionStateInt()
308 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
327 cleanUpForDevice(devDesc); in setDeviceConnectionStateInt()
341 sp<DeviceDescriptor> devDesc = in getDeviceConnectionState() local
345 if (devDesc == 0) { in getDeviceConnectionState()
382 sp<DeviceDescriptor> devDesc = in handleDeviceConfigChange() local
384 ssize_t index = mAvailableOutputDevices.indexOf(devDesc); in handleDeviceConfigChange()
2922 sp<DeviceDescriptor> devDesc = in createAudioPatch() local
2924 if (devDesc == 0) { in createAudioPatch()
2929 if (!outputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2930 devDesc->mAddress, in createAudioPatch()
2939 devDesc->type()); in createAudioPatch()
2942 devices.add(devDesc); in createAudioPatch()
2980 sp<DeviceDescriptor> devDesc = in createAudioPatch() local
2982 if (devDesc == 0) { in createAudioPatch()
2986 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2987 devDesc->mAddress, in createAudioPatch()
3002 devDesc->type(), inputDesc->mIoHandle); in createAudioPatch()
3003 setInputDevice(inputDesc->mIoHandle, devDesc->type(), true, handle); in createAudioPatch()
4098 sp<DeviceDescriptor> devDesc = mAvailableInputDevices[index]; in loadConfig() local
4099 if (!devDesc->isAttached()) { in loadConfig()
4100 devDesc->attach(hwModule); in loadConfig()
4101 devDesc->importAudioPort(inProfile, true); in loadConfig()
4212 sp<DeviceDescriptor> devDesc = in loadConfig() local
4214 if (devDesc != 0) { in loadConfig()
4221 status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor>& devDesc, in loadConfig() argument
4226 audio_devices_t device = devDesc->type(); in loadConfig()
4231 devDesc->clearAudioProfiles(); in loadConfig()
4284 devDesc->importAudioPort(profile); in loadConfig()
4383 devDesc->importAudioPort(profile); in loadConfig()
4432 status_t AudioPolicyManager::checkInputsForDevice(const sp<DeviceDescriptor>& devDesc, in loadConfig() argument
4437 audio_devices_t device = devDesc->type(); in loadConfig()
4442 devDesc->clearAudioProfiles(); in loadConfig()
4491 devDesc->importAudioPort(profile); in loadConfig()
4540 devDesc->importAudioPort(profile); in loadConfig()