Home
last modified time | relevance | path

Searched refs:AudioMix (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java41 protected final ArrayList<AudioMix> mMixes;
55 AudioPolicyConfig(ArrayList<AudioMix> mixes) { in AudioPolicyConfig()
65 public void addMix(AudioMix mix) throws IllegalArgumentException { in addMix()
72 public ArrayList<AudioMix> getMixes() { in getMixes()
89 for (AudioMix mix : mMixes) { in writeToParcel()
111 mMixes = new ArrayList<AudioMix>(); in AudioPolicyConfig()
114 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); in AudioPolicyConfig()
159 for(AudioMix mix : mMixes) { in toLogFriendlyString()
212 for (AudioMix mix : mMixes) { in setRegistration()
217 private void setMixRegistration(@NonNull final AudioMix mix) { in setMixRegistration()
[all …]
DAudioPolicy.java138 private ArrayList<AudioMix> mMixes;
152 mMixes = new ArrayList<AudioMix>(); in Builder()
163 public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException { in addMix()
247 for (AudioMix mix : mMixes) { in build()
248 mix.mCallbackFlags |= AudioMix.CALLBACK_FLAG_NOTIFY_ACTIVITY; in build()
270 public int attachMixes(@NonNull List<AudioMix> mixes) { in attachMixes()
278 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in attachMixes()
279 for (AudioMix mix : mixes) { in attachMixes()
311 public int detachMixes(@NonNull List<AudioMix> mixes) { in detachMixes()
319 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in detachMixes()
[all …]
DAudioMix.java34 public class AudioMix { class
52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() method in AudioMix
175 final AudioMix that = (AudioMix) o; in equals()
343 public AudioMix build() throws IllegalArgumentException { in build()
371 if (mRule.getTargetMixType() != AudioMix.MIX_TYPE_PLAYERS) { in build()
389 return new AudioMix(mRule, mFormat, mRouteFlags, mCallbackFlags, mDeviceSystemType, in build()
DAudioMixingRule.java240 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
400 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInternal()
402 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal()
404 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInternal()
406 } else if (((mTargetMixType == AudioMix.MIX_TYPE_PLAYERS) && !isPlayerRule(rule)) in addRuleInternal()
407 || ((mTargetMixType == AudioMix.MIX_TYPE_RECORDERS) && isPlayerRule(rule))) in addRuleInternal()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h42 android::AudioMix *getMix();
44 void setMix(AudioMix &mix);
49 AudioMix mMix; // Audio policy mix descriptor
59 status_t registerMix(const String8& address, AudioMix mix, sp<SwAudioOutputDescriptor> desc);
79 AudioMix **policyMix);
81 status_t getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix);
DAudioSession.h43 AudioMix* policyMix,
78 AudioMix* mPolicyMix; // non NULL when used by a dynamic policy
DAudioInputDescriptor.h30 class AudioMix; variable
47 AudioMix *mPolicyMix; // non NULL when used by a dynamic policy
DAudioOutputDescriptor.h32 class AudioMix; variable
144 AudioMix *mPolicyMix; // non NULL when used by a dynamic policy
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp45 void AudioPolicyMix::setMix(AudioMix &mix) in setMix()
50 android::AudioMix *AudioPolicyMix::getMix() in getMix()
115 status_t AudioPolicyMixCollection::registerMix(const String8& address, AudioMix mix, in registerMix()
175 AudioMix *mix = policyMix->getMix(); in getOutputForAttr()
294 AudioMix **policyMix) in getDeviceAndMixForInputSource()
297 AudioMix *mix = valueAt(i)->getMix(); in getDeviceAndMixForInputSource()
320 status_t AudioPolicyMixCollection::getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix) in getInputMixForAttr()
331 AudioMix *mix = policyMix->getMix(); in getInputMixForAttr()
342 AudioMix *mix = audioPolicyMix->getMix(); in getInputMixForAttr()
DAudioSession.cpp39 AudioMix* policyMix, in AudioSession()
82 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeActiveCount()
DAudioOutputDescriptor.cpp311 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
318 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h75 class AudioMix {
81 AudioMix() {} in AudioMix() function
82 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h158 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
DAudioSystem.h328 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/include/media/
DAudioPolicy.h75 class AudioMix {
81 AudioMix() {} in AudioMix() function
82 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h158 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
DAudioSystem.h328 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp63 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
86 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
DIAudioPolicyService.cpp722 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) in registerPolicyMixes()
1475 Vector<AudioMix> mixes; in onTransact()
1481 AudioMix mix; in onTransact()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h227 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes);
228 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
657 AudioMix *policyMix);
671 AudioMix **policyMix = NULL);
DAudioPolicyManager.cpp1148 AudioMix *policyMix = NULL; in startOutput()
1491 AudioMix *policyMix = NULL; in getInputForAttr()
1632 AudioMix *policyMix) in getInputForDevice()
2046 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
2115 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
2476 status_t AudioPolicyManager::registerPolicyMixes(const Vector<AudioMix>& mixes) in registerPolicyMixes()
2572 status_t AudioPolicyManager::unregisterPolicyMixes(Vector<AudioMix> mixes) in unregisterPolicyMixes()
5481 AudioMix **policyMix) in loadConfig()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h233 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
234 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/base/media/java/android/media/
DAudioSystem.java22 import android.media.audiopolicy.AudioMix;
826 public static native int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register); in registerPolicyMixes()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1639 AudioMix *nAudioMix, in convertAudioMixToNative()
1736 Vector <AudioMix> mixes; in android_media_AudioSystem_registerPolicyMixes()
1743 AudioMix mix; in android_media_AudioSystem_registerPolicyMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h193 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);

12