Lines Matching refs:policyMix

229                 sp<AudioPolicyMix> policyMix = desc->mPolicyMix.promote();  in setDeviceConnectionStateInt()  local
230 if (policyMix != nullptr in setDeviceConnectionStateInt()
231 && policyMix->mMixType == MIX_TYPE_RECORDERS in setDeviceConnectionStateInt()
232 && device->address() == policyMix->mDeviceAddress.string()) { in setDeviceConnectionStateInt()
1666 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in startSource() local
1668 if (policyMix != nullptr) { in startSource()
1670 address = policyMix->mDeviceAddress.string(); in startSource()
1671 if ((policyMix->mRouteFlags & MIX_ROUTE_FLAG_LOOP_BACK) == MIX_ROUTE_FLAG_LOOP_BACK) { in startSource()
1674 newDeviceType = policyMix->mDeviceType; in startSource()
1801 policyMix != NULL && policyMix->mMixType == MIX_TYPE_RECORDERS) { in startSource()
1847 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in stopSource() local
1850 policyMix != nullptr && in stopSource()
1851 policyMix->mMixType == MIX_TYPE_RECORDERS) { in stopSource()
1854 policyMix->mDeviceAddress, in stopSource()
1970 sp<AudioPolicyMix> policyMix; in getInputForAttr() local
2042 status = mPolicyMixes.getInputMixForAttr(attributes, &policyMix); in getInputForAttr()
2058 if (is_mix_loopback_render(policyMix->mRouteFlags)) { in getInputForAttr()
2069 device = mEngine->getInputDeviceForAttributes(attributes, &policyMix); in getInputForAttr()
2076 if (policyMix) { in getInputForAttr()
2077 ALOG_ASSERT(policyMix->mMixType == MIX_TYPE_RECORDERS, "Invalid Mix Type"); in getInputForAttr()
2092 *input = getInputForDevice(device, session, attributes, config, flags, policyMix); in getInputForAttr()
2128 const sp<AudioPolicyMix> &policyMix) in getInputForDevice() argument
2244 inputDesc->mPolicyMix = policyMix; in getInputForDevice()
2295 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in startInput() local
2297 if ((policyMix != nullptr) in startInput()
2298 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
2299 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in startInput()
2314 if (policyMix == nullptr) { in startInput()
2316 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in startInput()
2317 address = policyMix->mDeviceAddress; in startInput()
2359 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in stopInput() local
2361 if ((policyMix != nullptr) in stopInput()
2362 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
2363 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in stopInput()
2371 if (policyMix == nullptr) { in stopInput()
2373 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in stopInput()
2374 address = policyMix->mDeviceAddress; in stopInput()
4863 sp<AudioPolicyMix> policyMix; in checkOutputsForDevice() local
4864 if (mPolicyMixes.getAudioPolicyMix(deviceType, address, policyMix) in checkOutputsForDevice()
4866 policyMix->setOutput(desc); in checkOutputsForDevice()
4867 desc->mPolicyMix = policyMix; in checkOutputsForDevice()
5574 sp<AudioPolicyMix> policyMix; in getDevicesForAttributes() local
5576 AUDIO_OUTPUT_FLAG_NONE, policyMix, nullptr); in getDevicesForAttributes()
5580 if (policyMix != nullptr && policyMix->getOutput() != nullptr) { in getDevicesForAttributes()
5581 AudioDeviceTypeAddr device(policyMix->mDeviceType, policyMix->mDeviceAddress.c_str()); in getDevicesForAttributes()