Lines Matching refs:devDesc
75 sp<DeviceDescriptor> devDesc = in setDeviceConnectionStateInt() local
82 ssize_t index = mAvailableOutputDevices.indexOf(devDesc); in setDeviceConnectionStateInt()
98 index = mAvailableOutputDevices.add(devDesc); in setDeviceConnectionStateInt()
104 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
112 if (checkOutputsForDevice(devDesc, state, outputs, devDesc->mAddress) != NO_ERROR) { in setDeviceConnectionStateInt()
113 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
117 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
126 AudioParameter param = AudioParameter(devDesc->mAddress); in setDeviceConnectionStateInt()
141 AudioParameter param = AudioParameter(devDesc->mAddress); in setDeviceConnectionStateInt()
146 mAvailableOutputDevices.remove(devDesc); in setDeviceConnectionStateInt()
148 checkOutputsForDevice(devDesc, state, outputs, devDesc->mAddress); in setDeviceConnectionStateInt()
151 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
200 cleanUpForDevice(devDesc); in setDeviceConnectionStateInt()
211 ssize_t index = mAvailableInputDevices.indexOf(devDesc); in setDeviceConnectionStateInt()
226 if (checkInputsForDevice(devDesc, state, inputs, devDesc->mAddress) != NO_ERROR) { in setDeviceConnectionStateInt()
230 index = mAvailableInputDevices.add(devDesc); in setDeviceConnectionStateInt()
238 AudioParameter param = AudioParameter(devDesc->mAddress); in setDeviceConnectionStateInt()
243 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
256 AudioParameter param = AudioParameter(devDesc->mAddress); in setDeviceConnectionStateInt()
260 checkInputsForDevice(devDesc, state, inputs, devDesc->mAddress); in setDeviceConnectionStateInt()
261 mAvailableInputDevices.remove(devDesc); in setDeviceConnectionStateInt()
264 mEngine->setDeviceConnectionState(devDesc, state); in setDeviceConnectionStateInt()
280 cleanUpForDevice(devDesc); in setDeviceConnectionStateInt()
294 sp<DeviceDescriptor> devDesc = in getDeviceConnectionState() local
298 if (devDesc == 0) { in getDeviceConnectionState()
2477 sp<DeviceDescriptor> devDesc = in createAudioPatch() local
2479 if (devDesc == 0) { in createAudioPatch()
2484 if (!outputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2485 devDesc->mAddress, in createAudioPatch()
2494 devDesc->type()); in createAudioPatch()
2497 devices.add(devDesc); in createAudioPatch()
2535 sp<DeviceDescriptor> devDesc = in createAudioPatch() local
2537 if (devDesc == 0) { in createAudioPatch()
2541 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2542 devDesc->mAddress, in createAudioPatch()
2557 devDesc->type(), inputDesc->mIoHandle); in createAudioPatch()
2558 setInputDevice(inputDesc->mIoHandle, devDesc->type(), true, handle); in createAudioPatch()
3329 sp<DeviceDescriptor> devDesc = mAvailableInputDevices[index]; in AudioPolicyManager() local
3330 if (!devDesc->isAttached()) { in AudioPolicyManager()
3331 devDesc->attach(mHwModules[i]); in AudioPolicyManager()
3332 devDesc->importAudioPort(inProfile); in AudioPolicyManager()
3608 sp<DeviceDescriptor> devDesc = in AudioPolicyManager() local
3610 if (devDesc != 0) { in AudioPolicyManager()
3617 status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor> devDesc, in AudioPolicyManager() argument
3622 audio_devices_t device = devDesc->type(); in AudioPolicyManager()
3627 devDesc->clearAudioProfiles(); in AudioPolicyManager()
3684 devDesc->importAudioPort(profile); in AudioPolicyManager()
3810 devDesc->importAudioPort(profile); in AudioPolicyManager()
3863 status_t AudioPolicyManager::checkInputsForDevice(const sp<DeviceDescriptor> devDesc, in AudioPolicyManager() argument
3868 audio_devices_t device = devDesc->type(); in AudioPolicyManager()
3873 devDesc->clearAudioProfiles(); in AudioPolicyManager()
3926 devDesc->importAudioPort(profile); in AudioPolicyManager()
3980 devDesc->importAudioPort(profile); in AudioPolicyManager()