Home
last modified time | relevance | path

Searched refs:AudioMix (Results 1 – 25 of 37) 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()
115 mMixes = new ArrayList<AudioMix>(); in AudioPolicyConfig()
118 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); in AudioPolicyConfig()
170 for(AudioMix mix : mMixes) { in toLogFriendlyString()
236 for (AudioMix mix : mMixes) { in toCompactLogString()
246 case AudioMix.MIX_TYPE_PLAYERS: in mixTypePrefix()
[all …]
DAudioPolicy.java170 private ArrayList<AudioMix> mMixes;
185 mMixes = new ArrayList<AudioMix>(); in Builder()
196 public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException { in addMix()
313 for (AudioMix mix : mMixes) { in build()
314 mix.mCallbackFlags |= AudioMix.CALLBACK_FLAG_NOTIFY_ACTIVITY; in build()
335 public int attachMixes(@NonNull List<AudioMix> mixes) { in attachMixes()
343 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in attachMixes()
344 for (AudioMix mix : mixes) { in attachMixes()
374 public int detachMixes(@NonNull List<AudioMix> mixes) { in detachMixes()
382 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in detachMixes()
[all …]
DAudioMix.java36 public class AudioMix { class
61 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() method in AudioMix
249 final AudioMix that = (AudioMix) o; in equals()
410 public AudioMix build() throws IllegalArgumentException { in build()
433 if (mRule.getTargetMixType() != AudioMix.MIX_TYPE_PLAYERS) { in build()
452 String error = AudioMix.canBeUsedForPrivilegedMediaCapture(mFormat); in build()
457 return new AudioMix(mRule, mFormat, mRouteFlags, mCallbackFlags, mDeviceSystemType, in build()
DAudioMixingRule.java326 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID;
541 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInternal()
543 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal()
545 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInternal()
549 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal()
551 } else if ((isPlayerRule(rule) && (mTargetMixType != AudioMix.MIX_TYPE_PLAYERS)) in addRuleInternal()
552 || (isRecorderRule(rule)) && (mTargetMixType != AudioMix.MIX_TYPE_RECORDERS)) in addRuleInternal()
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp78 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel()
103 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel()
138 void AudioMix::setExcludeUid(uid_t uid) const { in setExcludeUid()
145 void AudioMix::setMatchUid(uid_t uid) const { in setMatchUid()
152 bool AudioMix::hasUidRule(bool match, uid_t uid) const { in hasUidRule()
163 bool AudioMix::hasMatchUidRule() const { in hasMatchUidRule()
172 void AudioMix::setExcludeUserId(int userId) const { in setExcludeUserId()
179 void AudioMix::setMatchUserId(int userId) const { in setMatchUserId()
186 bool AudioMix::hasUserIdRule(bool match, int userId) const { in hasUserIdRule()
197 bool AudioMix::hasMatchUserIdRule() const { in hasMatchUserIdRule()
[all …]
DPolicyAidlConversion.cpp65 return AudioMix::kCbFlagNotifyActivity; in aidl2legacy_AudioMixCallbackFlag_uint32_t()
73 case AudioMix::kCbFlagNotifyActivity: in legacy2aidl_uint32_t_AudioMixCallbackFlag()
228 ConversionResult<AudioMix>
229 aidl2legacy_AudioMix(const media::AudioMix& aidl) { in aidl2legacy_AudioMix()
230 AudioMix legacy; in aidl2legacy_AudioMix()
246 ConversionResult<media::AudioMix>
247 legacy2aidl_AudioMix(const AudioMix& legacy) { in legacy2aidl_AudioMix()
248 media::AudioMix aidl; in legacy2aidl_AudioMix()
DAndroid.bp378 "aidl/android/media/AudioMix.aidl",
/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);
127 MixMatchStatus mixMatch(const AudioMix* mix, size_t mixIndex,
/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()
DAudioRecord.java34 import android.media.audiopolicy.AudioMix;
773 AudioMix audioMix = mAudioPlaybackCaptureConfiguration.createAudioMix(mFormat); in buildAudioPlaybackCaptureRecord()
DAudioSystem.java28 import android.media.audiopolicy.AudioMix;
1694 public static native int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register); in registerPolicyMixes()
/frameworks/av/media/libaudioclient/include/media/
DPolicyAidlConversion.h82 ConversionResult<AudioMix>
83 aidl2legacy_AudioMix(const media::AudioMix& aidl);
84 ConversionResult<media::AudioMix>
85 legacy2aidl_AudioMix(const AudioMix& legacy);
DAudioPolicy.h84 class AudioMix {
90 AudioMix() {} in AudioMix() function
91 AudioMix(Vector<AudioMixMatchCriterion> criteria, uint32_t mixType, audio_config_t format, in AudioMix() function
DAudioSystem.h392 static status_t registerPolicyMixes(const Vector<AudioMix>& mixes, bool registration);
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioMix.aidl29 parcelable AudioMix {
DIAudioPolicyService.aidl28 import android.media.AudioMix;
252 void registerPolicyMixes(in AudioMix[] mixes, boolean registration); in registerPolicyMixes()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioSystemAdapter.java23 import android.media.audiopolicy.AudioMix;
449 public int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register) { in registerPolicyMixes()
DAudioService.java103 import android.media.audiopolicy.AudioMix;
7768 AudioMix.ROUTE_FLAG_LOOP_BACK_RENDER)) { in hasMediaDynamicPolicy()
9238 ArrayList<AudioMix> voiceCommunicationCaptureMixes = null; in isPolicyRegisterAllowed()
9247 for (AudioMix mix : policyConfig.getMixes()) { in isPolicyRegisterAllowed()
9269 voiceCommunicationCaptureMixes = new ArrayList<AudioMix>(); in isPolicyRegisterAllowed()
9300 for (AudioMix mix : voiceCommunicationCaptureMixes) { in isPolicyRegisterAllowed()
9614 for (AudioMix mix : policy.getMixes()) { in onDynPolicyMixStateUpdate()
9929 for (AudioMix mix : mMixes) { in hasMixAffectingUsage()
9943 for (AudioMix mix : mMixes) { in hasMixRoutedToDevices()
9958 int addMixes(@NonNull ArrayList<AudioMix> mixes) { in addMixes()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp81 status_t AudioPolicyMixCollection::registerMix(AudioMix mix, sp<SwAudioOutputDescriptor> desc) in registerMix()
104 status_t AudioPolicyMixCollection::unregisterMix(const AudioMix& mix) in unregisterMix()
205 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.h254 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0;
255 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0;
/frameworks/base/core/api/
Dtest-lint-baseline.txt184 BannedThrow: android.media.audiopolicy.AudioMix.Builder#Builder(android.media.audiopolicy.AudioMixi…
186 BannedThrow: android.media.audiopolicy.AudioMix.Builder#build():
188 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setDevice(android.media.AudioDeviceInfo):
190 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setFormat(android.media.AudioFormat):
192 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setRouteFlags(int):
202 …w: android.media.audiopolicy.AudioPolicy#createAudioRecordSink(android.media.audiopolicy.AudioMix):
204 …: android.media.audiopolicy.AudioPolicy#createAudioTrackSource(android.media.audiopolicy.AudioMix):
208 …nedThrow: android.media.audiopolicy.AudioPolicy.Builder#addMix(android.media.audiopolicy.AudioMix):
508 IllegalStateException: android.media.audiopolicy.AudioMix.Builder#build():
622 MissingGetterMatchingBuilder: android.media.audiopolicy.AudioMix.Builder#setDevice(android.media.Au…
[all …]
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h265 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes);
266 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes);
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp525 Vector<AudioMix> mAudioMixes;
543 AudioMix myAudioMix(myMixMatchCriteria, mixType, audioConfig, mixFlag, in addPolicyMix()

12