Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java39 protected final ArrayList<AudioMix> mMixes;
53 AudioPolicyConfig(ArrayList<AudioMix> mixes) { in AudioPolicyConfig()
63 public void addMix(AudioMix mix) throws IllegalArgumentException { in addMix()
70 public ArrayList<AudioMix> getMixes() { in getMixes()
87 for (AudioMix mix : mMixes) { in writeToParcel()
111 mMixes = new ArrayList<AudioMix>(); in AudioPolicyConfig()
114 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); in AudioPolicyConfig()
162 for(AudioMix mix : mMixes) { in toLogFriendlyString()
217 for (AudioMix mix : mMixes) { in setRegistration()
222 private void setMixRegistration(@NonNull final AudioMix mix) { in setMixRegistration()
[all …]
DAudioPolicy.java169 private ArrayList<AudioMix> mMixes;
184 mMixes = new ArrayList<AudioMix>(); in Builder()
195 public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException { in addMix()
312 for (AudioMix mix : mMixes) { in build()
313 mix.mCallbackFlags |= AudioMix.CALLBACK_FLAG_NOTIFY_ACTIVITY; in build()
334 public int attachMixes(@NonNull List<AudioMix> mixes) { in attachMixes()
342 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in attachMixes()
343 for (AudioMix mix : mixes) { in attachMixes()
373 public int detachMixes(@NonNull List<AudioMix> mixes) { in detachMixes()
381 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in detachMixes()
[all …]
DAudioMix.java37 public class AudioMix { class
62 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() method in AudioMix
240 final AudioMix that = (AudioMix) o; in equals()
401 public AudioMix build() throws IllegalArgumentException { in build()
424 if (mRule.getTargetMixType() != AudioMix.MIX_TYPE_PLAYERS) { in build()
443 String error = AudioMix.canBeUsedForPrivilegedCapture(mFormat); in build()
448 return new AudioMix(mRule, mFormat, mRouteFlags, mCallbackFlags, mDeviceSystemType, in build()
DAudioMixingRule.java260 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
435 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInternal()
437 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal()
439 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInternal()
441 } else if (((mTargetMixType == AudioMix.MIX_TYPE_PLAYERS) && !isPlayerRule(rule)) in addRuleInternal()
442 || ((mTargetMixType == AudioMix.MIX_TYPE_RECORDERS) && isPlayerRule(rule))) in addRuleInternal()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h34 class AudioPolicyMix : public AudioMix, public RefBase {
36 AudioPolicyMix(const AudioMix &mix) : AudioMix(mix) {} in AudioPolicyMix()
57 status_t registerMix(AudioMix mix, sp<SwAudioOutputDescriptor> desc);
59 status_t unregisterMix(const AudioMix& mix);
111 MixMatchStatus mixMatch(const AudioMix* mix, size_t mixIndex,
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp90 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
114 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
148 void AudioMix::setExcludeUid(uid_t uid) const { in setExcludeUid()
155 void AudioMix::setMatchUid(uid_t uid) const { in setMatchUid()
162 bool AudioMix::hasUidRule(bool match, uid_t uid) const { in hasUidRule()
173 bool AudioMix::hasMatchUidRule() const { in hasMatchUidRule()
182 bool AudioMix::isDeviceAffinityCompatible() const { in isDeviceAffinityCompatible()
DIAudioPolicyService.cpp842 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) in registerPolicyMixes()
1996 Vector<AudioMix> mixes; in onTransact()
2002 AudioMix mix; in onTransact()
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java21 import android.media.audiopolicy.AudioMix;
131 @NonNull AudioMix createAudioMix(@NonNull AudioFormat audioFormat) { in createAudioMix()
132 return new AudioMix.Builder(mAudioMixingRule) in createAudioMix()
134 .setRouteFlags(AudioMix.ROUTE_FLAG_LOOP_BACK | AudioMix.ROUTE_FLAG_RENDER) in createAudioMix()
DAudioSystem.java26 import android.media.audiopolicy.AudioMix;
1026 public static native int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register); in registerPolicyMixes()
DAudioRecord.java29 import android.media.audiopolicy.AudioMix;
653 AudioMix audioMix = mAudioPlaybackCaptureConfiguration.createAudioMix(mFormat); in buildAudioPlaybackCaptureRecord()
/frameworks/av/include/media/
DAudioPolicy.h92 class AudioMix {
98 AudioMix() {} in AudioMix() function
99 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h187 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
DAudioSystem.h346 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h92 class AudioMix {
98 AudioMix() {} in AudioMix() function
99 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h187 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
DAudioSystem.h346 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp76 status_t AudioPolicyMixCollection::registerMix(AudioMix mix, sp<SwAudioOutputDescriptor> desc) in registerMix()
99 status_t AudioPolicyMixCollection::unregisterMix(const AudioMix& mix) in unregisterMix()
209 const AudioMix* mix, size_t mixIndex, const audio_attributes_t& attributes, uid_t uid) { in mixMatch()
DAudioInputDescriptor.cpp324 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in setClientActive()
330 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in setClientActive()
DAudioOutputDescriptor.cpp117 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in setClientActive()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h231 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
232 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h256 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes);
257 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
/frameworks/base/api/
Dtest-current.txt1210 public class AudioMix {
1219 public static class AudioMix.Builder {
1220 …ctor public AudioMix.Builder(android.media.audiopolicy.AudioMixingRule) throws java.lang.IllegalAr…
1221 …method public android.media.audiopolicy.AudioMix build() throws java.lang.IllegalArgumentException;
1222 …method public android.media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDev…
1223 …method public android.media.audiopolicy.AudioMix.Builder setFormat(android.media.AudioFormat) thro…
1224 …method public android.media.audiopolicy.AudioMix.Builder setRouteFlags(int) throws java.lang.Illeg…
1244 method public int attachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
1245 …droid.media.AudioRecord createAudioRecordSink(android.media.audiopolicy.AudioMix) throws java.lang…
1246 …droid.media.AudioTrack createAudioTrackSource(android.media.audiopolicy.AudioMix) throws java.lang…
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1854 AudioMix *nAudioMix, in convertAudioMixToNative()
1957 Vector <AudioMix> mixes; in android_media_AudioSystem_registerPolicyMixes()
1964 AudioMix mix; in android_media_AudioSystem_registerPolicyMixes()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java92 import android.media.audiopolicy.AudioMix;
6805 for (AudioMix mix : policyConfig.getMixes()) { in isPolicyRegisterAllowed()
7105 for (AudioMix mix : policy.getMixes()) { in onDynPolicyMixStateUpdate()
7352 for (AudioMix mix : mMixes) { in hasMixAffectingUsage()
7365 for (AudioMix mix : mMixes) { in hasMixRoutedToDevices()
7380 int addMixes(@NonNull ArrayList<AudioMix> mixes) { in addMixes()
7389 int removeMixes(@NonNull ArrayList<AudioMix> mixes) { in removeMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h220 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);

12