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.h35 class AudioPolicyMix : public AudioMix, public RefBase {
37 AudioPolicyMix(const AudioMix &mix) : AudioMix(mix) {} in AudioPolicyMix()
58 status_t registerMix(AudioMix mix, sp<SwAudioOutputDescriptor> desc);
60 status_t unregisterMix(const AudioMix& mix);
112 MixMatchStatus mixMatch(const AudioMix* mix, size_t mixIndex,
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp74 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
98 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
132 void AudioMix::setExcludeUid(uid_t uid) const { in setExcludeUid()
139 void AudioMix::setMatchUid(uid_t uid) const { in setMatchUid()
146 bool AudioMix::hasUidRule(bool match, uid_t uid) const { in hasUidRule()
157 bool AudioMix::hasMatchUidRule() const { in hasMatchUidRule()
166 bool AudioMix::isDeviceAffinityCompatible() const { in isDeviceAffinityCompatible()
DIAudioPolicyService.cpp846 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) in registerPolicyMixes()
2061 Vector<AudioMix> mixes; in onTransact()
2067 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.java27 import android.media.audiopolicy.AudioMix;
1269 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/media/libaudioclient/include/media/
DAudioPolicy.h80 class AudioMix {
86 AudioMix() {} in AudioMix() function
87 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DIAudioPolicyService.h189 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration) = 0;
DAudioSystem.h348 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp75 status_t AudioPolicyMixCollection::registerMix(AudioMix mix, sp<SwAudioOutputDescriptor> desc) in registerMix()
98 status_t AudioPolicyMixCollection::unregisterMix(const AudioMix& mix) in unregisterMix()
208 const AudioMix* mix, size_t mixIndex, const audio_attributes_t& attributes, uid_t uid) { in mixMatch()
DAudioInputDescriptor.cpp336 if ((policyMix != NULL) && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) in setClientActive()
342 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.h237 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
238 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/base/api/
Dtest-lint-baseline.txt178 BannedThrow: android.media.audiopolicy.AudioMix.Builder#Builder(android.media.audiopolicy.AudioMixi…
180 BannedThrow: android.media.audiopolicy.AudioMix.Builder#build():
182 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setDevice(android.media.AudioDeviceInfo):
184 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setFormat(android.media.AudioFormat):
186 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setRouteFlags(int):
196 …w: android.media.audiopolicy.AudioPolicy#createAudioRecordSink(android.media.audiopolicy.AudioMix):
198 …: android.media.audiopolicy.AudioPolicy#createAudioTrackSource(android.media.audiopolicy.AudioMix):
202 …nedThrow: android.media.audiopolicy.AudioPolicy.Builder#addMix(android.media.audiopolicy.AudioMix):
442 IllegalStateException: android.media.audiopolicy.AudioMix.Builder#build():
916 MissingNullability: android.media.audiopolicy.AudioMix.Builder#Builder(android.media.audiopolicy.Au…
[all …]
Dtest-current.txt1275 public class AudioMix {
1284 public static class AudioMix.Builder {
1285 …ctor public AudioMix.Builder(android.media.audiopolicy.AudioMixingRule) throws java.lang.IllegalAr…
1286 …method public android.media.audiopolicy.AudioMix build() throws java.lang.IllegalArgumentException;
1287 …method public android.media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDev…
1288 …method public android.media.audiopolicy.AudioMix.Builder setFormat(android.media.AudioFormat) thro…
1289 …method public android.media.audiopolicy.AudioMix.Builder setRouteFlags(int) throws java.lang.Illeg…
1309 method public int attachMixes(@NonNull java.util.List<android.media.audiopolicy.AudioMix>);
1310 …droid.media.AudioRecord createAudioRecordSink(android.media.audiopolicy.AudioMix) throws java.lang…
1311 …droid.media.AudioTrack createAudioTrackSource(android.media.audiopolicy.AudioMix) throws java.lang…
[all …]
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h258 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes);
259 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
DAudioPolicyManager.cpp2245 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
2309 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
2836 status_t AudioPolicyManager::registerPolicyMixes(const Vector<AudioMix>& mixes) in registerPolicyMixes()
2844 AudioMix mix = mixes[i]; in registerPolicyMixes()
2951 status_t AudioPolicyManager::unregisterPolicyMixes(Vector<AudioMix> mixes) in unregisterPolicyMixes()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp508 Vector<AudioMix> mAudioMixes;
527 AudioMix myAudioMix(myMixMatchCriteria, mixType, audioConfig, mixFlag, in addPolicyMix()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java88 import android.media.audiopolicy.AudioMix;
5708 AudioMix.ROUTE_FLAG_LOOP_BACK_RENDER)) { in hasMediaDynamicPolicy()
6952 for (AudioMix mix : policyConfig.getMixes()) { in isPolicyRegisterAllowed()
7252 for (AudioMix mix : policy.getMixes()) { in onDynPolicyMixStateUpdate()
7539 for (AudioMix mix : mMixes) { in hasMixAffectingUsage()
7553 for (AudioMix mix : mMixes) { in hasMixRoutedToDevices()
7568 int addMixes(@NonNull ArrayList<AudioMix> mixes) { in addMixes()
7577 int removeMixes(@NonNull ArrayList<AudioMix> mixes) { in removeMixes()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1855 AudioMix *nAudioMix, in convertAudioMixToNative()
1958 Vector <AudioMix> mixes; in android_media_AudioSystem_registerPolicyMixes()
1965 AudioMix mix; in android_media_AudioSystem_registerPolicyMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h222 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);

12