Home
last modified time | relevance | path

Searched refs:policyMix (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp208 sp<AudioPolicyMix> policyMix = sp<AudioPolicyMix>::make(mix); in registerMix() local
209 add(policyMix); in registerMix()
211 policyMix->mDeviceType, policyMix->mDeviceAddress.c_str()); in registerMix()
214 desc->mPolicyMix = policyMix; in registerMix()
215 policyMix->setOutput(desc); in registerMix()
273 const String8& address, sp<AudioPolicyMix> &policyMix) const in getAudioPolicyMix()
281 policyMix = itemAt(i); in getAudioPolicyMix()
297 sp<AudioPolicyMix> policyMix = itemAt(i); in closeOutput() local
298 if (policyMix->getOutput() != desc) { in closeOutput()
301 policyMix->clearOutput(); in closeOutput()
[all …]
DAudioInputDescriptor.cpp335 sp<AudioPolicyMix> policyMix = mPolicyMix.promote(); in setClientActive() local
337 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in setClientActive()
339 mClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in setClientActive()
343 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in setClientActive()
345 mClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in setClientActive()
DAudioOutputDescriptor.cpp119 sp<AudioPolicyMix> policyMix = mPolicyMix.promote(); in setClientActive() local
120 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in setClientActive()
122 mClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in setClientActive()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h56 const String8& address, sp<AudioPolicyMix> &policyMix) const;
103 sp<AudioPolicyMix> *policyMix) const;
115 status_t getInputMixForAttr(audio_attributes_t attr, sp<AudioPolicyMix> *policyMix);
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp285 sp<AudioPolicyMix> policyMix = desc->mPolicyMix.promote(); in setDeviceConnectionStateInt() local
286 if (policyMix != nullptr in setDeviceConnectionStateInt()
287 && policyMix->mMixType == MIX_TYPE_RECORDERS in setDeviceConnectionStateInt()
288 && device->address() == policyMix->mDeviceAddress.c_str()) { in setDeviceConnectionStateInt()
2400 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in startSource() local
2402 if (policyMix != nullptr) { in startSource()
2404 address = policyMix->mDeviceAddress.c_str(); in startSource()
2405 if ((policyMix->mRouteFlags & MIX_ROUTE_FLAG_LOOP_BACK) == MIX_ROUTE_FLAG_LOOP_BACK) { in startSource()
2408 newDeviceType = policyMix->mDeviceType; in startSource()
2559 policyMix != NULL && policyMix->mMixType == MIX_TYPE_RECORDERS) { in startSource()
[all …]
DAudioPolicyManager.h1222 const sp<AudioPolicyMix> &policyMix);