Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java36 protected ArrayList<AudioMix> mMixes;
45 AudioPolicyConfig(ArrayList<AudioMix> mixes) { in AudioPolicyConfig()
55 public void addMix(AudioMix mix) throws IllegalArgumentException { in addMix()
62 public ArrayList<AudioMix> getMixes() { in getMixes()
79 for (AudioMix mix : mMixes) { in writeToParcel()
98 mMixes = new ArrayList<AudioMix>(); in AudioPolicyConfig()
101 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); in AudioPolicyConfig()
144 for(AudioMix mix : mMixes) { in toLogFriendlyString()
190 for (AudioMix mix : mMixes) { in setRegistration()
201 if (type == AudioMix.MIX_TYPE_PLAYERS) return "p"; in mixTypeId()
[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.java143 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
220 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInt()
222 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInt()
224 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInt()
226 } else if (((mTargetMixType == AudioMix.MIX_TYPE_PLAYERS) && !isPlayerRule(rule)) in addRuleInt()
227 || ((mTargetMixType == AudioMix.MIX_TYPE_RECORDERS) && isPlayerRule(rule))) in addRuleInt()
DAudioMix.java32 public class AudioMix { class
45 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags) { in AudioMix() method in AudioMix
271 public AudioMix build() throws IllegalArgumentException { in build()
286 return new AudioMix(mRule, mFormat, mRouteFlags, mCallbackFlags); 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);
76 AudioMix **policyMix);
78 status_t getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix);
DAudioInputDescriptor.h28 class AudioMix; variable
44 AudioMix *mPolicyMix; // non NULL when used by a dynamic policy
DAudioOutputDescriptor.h29 class AudioMix; variable
122 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()
106 AudioMix *mix = policyMix->getMix(); in getOutputForAttr()
144 AudioMix **policyMix) in getDeviceAndMixForInputSource()
147 AudioMix *mix = valueAt(i)->getMix(); in getDeviceAndMixForInputSource()
170 status_t AudioPolicyMixCollection::getInputMixForAttr(audio_attributes_t attr, AudioMix **policyMix) in getInputMixForAttr()
183 AudioMix *mix = audioPolicyMix->getMix(); in getInputMixForAttr()
DAudioOutputDescriptor.cpp318 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
325 if ((mPolicyMix != NULL) && ((mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in changeRefCount()
/frameworks/av/include/media/
DAudioPolicy.h71 class AudioMix {
77 AudioMix() {} in AudioMix() function
78 AudioMix(Vector<AttributeMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h162 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration) = 0;
DAudioSystem.h315 static status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration);
/frameworks/av/media/libmedia/
DAudioPolicy.cpp63 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
85 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
DIAudioPolicyService.cpp703 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
1273 Vector<AudioMix> mixes; in onTransact()
1279 AudioMix mix; in onTransact()
DAudioSystem.cpp1133 status_t AudioSystem::registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h223 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes) = 0;
224 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h223 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes);
224 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
609 AudioMix **policyMix = NULL);
DAudioPolicyManager.cpp1307 AudioMix *policyMix = NULL; in getInputForAttr()
1505 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
1569 && ((inputDesc->mPolicyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
1882 status_t AudioPolicyManager::registerPolicyMixes(Vector<AudioMix> mixes) in registerPolicyMixes()
1929 status_t AudioPolicyManager::unregisterPolicyMixes(Vector<AudioMix> mixes) in unregisterPolicyMixes()
4485 AudioMix **policyMix) in getDeviceAndMixForInputSource()
/frameworks/base/media/java/android/media/
DAudioSystem.java21 import android.media.audiopolicy.AudioMix;
650 public static native int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register); in registerPolicyMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImplLegacy.cpp604 status_t AudioPolicyService::registerPolicyMixes(Vector<AudioMix> mixes __unused, in registerPolicyMixes()
DAudioPolicyService.h198 virtual status_t registerPolicyMixes(Vector<AudioMix> mixes, bool registration);
DAudioPolicyInterfaceImpl.cpp663 status_t AudioPolicyService::registerPolicyMixes(Vector<AudioMix> mixes, bool registration) in registerPolicyMixes()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1492 AudioMix *nAudioMix, in convertAudioMixToNative()
1577 Vector <AudioMix> mixes; in android_media_AudioSystem_registerPolicyMixes()
1584 AudioMix mix; in android_media_AudioSystem_registerPolicyMixes()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java74 import android.media.audiopolicy.AudioMix;
6092 for (AudioMix mix : policy.getMixes()) { in onDynPolicyMixStateUpdate()
/frameworks/base/
Dpreloaded-classes1270 android.media.audiopolicy.AudioMix

12