Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java38 protected ArrayList<AudioMix> mMixes;
47 AudioPolicyConfig(ArrayList<AudioMix> mixes) { in AudioPolicyConfig()
57 public void addMix(AudioMix mix) throws IllegalArgumentException { in addMix()
64 public ArrayList<AudioMix> getMixes() { in getMixes()
81 for (AudioMix mix : mMixes) { in writeToParcel()
103 mMixes = new ArrayList<AudioMix>(); in AudioPolicyConfig()
106 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); in AudioPolicyConfig()
151 for(AudioMix mix : mMixes) { in toLogFriendlyString()
205 for (AudioMix mix : mMixes) { in setRegistration()
207 if ((mix.getRouteFlags() & AudioMix.ROUTE_FLAG_LOOP_BACK) == in setRegistration()
[all …]
DAudioPolicy.java126 private ArrayList<AudioMix> mMixes;
138 mMixes = new ArrayList<AudioMix>(); in Builder()
149 public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException { in addMix()
194 for (AudioMix mix : mMixes) { in build()
195 mix.mCallbackFlags |= AudioMix.CALLBACK_FLAG_NOTIFY_ACTIVITY; in build()
240 private void checkMixReadyToUse(AudioMix mix, boolean forTrack) in checkMixReadyToUse()
250 if ((mix.getRouteFlags() & AudioMix.ROUTE_FLAG_LOOP_BACK) != AudioMix.ROUTE_FLAG_LOOP_BACK) in checkMixReadyToUse()
254 if (forTrack && (mix.getMixType() != AudioMix.MIX_TYPE_RECORDERS)) { in checkMixReadyToUse()
258 if (!forTrack && (mix.getMixType() != AudioMix.MIX_TYPE_PLAYERS)) { in checkMixReadyToUse()
330 public AudioRecord createAudioRecordSink(AudioMix mix) throws IllegalArgumentException { in createAudioRecordSink()
[all …]
DAudioMixingRule.java209 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
369 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInternal()
371 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal()
373 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInternal()
375 } else if (((mTargetMixType == AudioMix.MIX_TYPE_PLAYERS) && !isPlayerRule(rule)) in addRuleInternal()
376 || ((mTargetMixType == AudioMix.MIX_TYPE_RECORDERS) && isPlayerRule(rule))) in addRuleInternal()
DAudioMix.java34 public class AudioMix { class
52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() method in AudioMix
325 public AudioMix build() throws IllegalArgumentException { in build()
353 if (mRule.getTargetMixType() != AudioMix.MIX_TYPE_PLAYERS) { in build()
371 return new AudioMix(mRule, mFormat, mRouteFlags, mCallbackFlags, mDeviceSystemType, in build()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h42 android::AudioMix *getMix();
44 void setMix(AudioMix &mix);
47 AudioMix mMix; // Audio policy mix descriptor
57 status_t registerMix(String8 address, AudioMix mix, sp<SwAudioOutputDescriptor> desc);
77 AudioMix **policyMix);
79 status_t getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix);
DAudioInputDescriptor.h30 class AudioMix; variable
47 AudioMix *mPolicyMix; // non NULL when used by a dynamic policy
DAudioSession.h42 AudioMix* policyMix,
75 AudioMix* mPolicyMix; // non NULL when used by a dynamic policy
DAudioOutputDescriptor.h30 class AudioMix; variable
127 AudioMix *mPolicyMix; // non NULL when used by a dynamic policy
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp44 void AudioPolicyMix::setMix(AudioMix &mix) in setMix()
49 android::AudioMix *AudioPolicyMix::getMix() in getMix()
54 status_t AudioPolicyMixCollection::registerMix(String8 address, AudioMix mix, in registerMix()
114 AudioMix *mix = policyMix->getMix(); in getOutputForAttr()
233 AudioMix **policyMix) in getDeviceAndMixForInputSource()
236 AudioMix *mix = valueAt(i)->getMix(); in getDeviceAndMixForInputSource()
259 status_t AudioPolicyMixCollection::getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix) in getInputMixForAttr()
270 AudioMix *mix = policyMix->getMix(); in getInputMixForAttr()
281 AudioMix *mix = audioPolicyMix->getMix(); in getInputMixForAttr()
DAudioSession.cpp37 AudioMix* policyMix, in AudioSession()
80 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeActiveCount()
DAudioOutputDescriptor.cpp316 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
323 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
/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.h163 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration) = 0;
DAudioSystem.h329 static status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration);
/frameworks/av/media/libmedia/
DAudioPolicy.cpp63 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
86 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
DIAudioPolicyService.cpp707 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
1313 Vector<AudioMix> mixes; in onTransact()
1319 AudioMix mix; in onTransact()
DAudioSystem.cpp1169 status_t AudioSystem::registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h225 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes);
226 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
630 AudioMix *policyMix);
644 AudioMix **policyMix = NULL);
DAudioPolicyManager.cpp1093 AudioMix *policyMix = NULL; in startOutput()
1384 AudioMix *policyMix = NULL; in getInputForAttr()
1460 AudioMix *policyMix) in getInputForDevice()
1650 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
1714 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
2045 status_t AudioPolicyManager::registerPolicyMixes(Vector<AudioMix> mixes) in registerPolicyMixes()
2148 status_t AudioPolicyManager::unregisterPolicyMixes(Vector<AudioMix> mixes) in unregisterPolicyMixes()
4873 AudioMix **policyMix) in AudioPolicyManager()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h223 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes) = 0;
224 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/base/media/java/android/media/
DAudioSystem.java21 import android.media.audiopolicy.AudioMix;
723 public static native int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register); in registerPolicyMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImplLegacy.cpp605 status_t AudioPolicyService::registerPolicyMixes(Vector<AudioMix> mixes __unused, in registerPolicyMixes()
DAudioPolicyInterfaceImpl.cpp681 status_t AudioPolicyService::registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
DAudioPolicyService.h199 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration);
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1571 AudioMix *nAudioMix, in convertAudioMixToNative()
1668 Vector <AudioMix> mixes; in android_media_AudioSystem_registerPolicyMixes()
1675 AudioMix mix; in android_media_AudioSystem_registerPolicyMixes()

12