/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicyConfig.java | 41 protected final ArrayList<AudioMix> mMixes; 54 public AudioPolicyConfig(ArrayList<AudioMix> mixes) { in AudioPolicyConfig() 64 public void addMix(AudioMix mix) throws IllegalArgumentException { in addMix() 71 public ArrayList<AudioMix> getMixes() { in getMixes() 88 for (AudioMix mix : mMixes) { in writeToParcel() 97 mMixes.add(AudioMix.CREATOR.createFromParcel(in)); in AudioPolicyConfig() 119 for(AudioMix mix : mMixes) { in toLogFriendlyString() 193 for (AudioMix mix : mMixes) { in toCompactLogString() 203 case AudioMix.MIX_TYPE_PLAYERS: in mixTypePrefix() 205 case AudioMix.MIX_TYPE_RECORDERS: in mixTypePrefix() [all …]
|
D | AudioPolicy.java | 192 private ArrayList<AudioMix> mMixes; 207 mMixes = new ArrayList<AudioMix>(); in Builder() 218 public Builder addMix(@NonNull AudioMix mix) throws IllegalArgumentException { in addMix() 338 for (AudioMix mix : mMixes) { in build() 339 mix.mCallbackFlags |= AudioMix.CALLBACK_FLAG_NOTIFY_ACTIVITY; in build() 362 public int attachMixes(@NonNull List<AudioMix> mixes) { in attachMixes() 370 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in attachMixes() 371 for (AudioMix mix : mixes) { in attachMixes() 407 public int detachMixes(@NonNull List<AudioMix> mixes) { in detachMixes() 415 final ArrayList<AudioMix> zeMixes = new ArrayList<AudioMix>(mixes.size()); in detachMixes() [all …]
|
D | AudioMix.java | 47 public class AudioMix implements Parcelable { class 80 private AudioMix(@NonNull AudioMixingRule rule, @NonNull AudioFormat format, in AudioMix() method in AudioMix 291 final AudioMix that = (AudioMix) o; in equals() 331 public static final @NonNull Parcelable.Creator<AudioMix> CREATOR = new Parcelable.Creator<>() { 338 public AudioMix createFromParcel(Parcel p) { 339 final AudioMix.Builder mixBuilder = new AudioMix.Builder(); 353 public AudioMix[] newArray(int size) { 354 return new AudioMix[size]; 536 public AudioMix build() throws IllegalArgumentException { in build() 597 String error = AudioMix.canBeUsedForPrivilegedMediaCapture(mFormat); in build() [all …]
|
D | AudioMixingRule.java | 285 public static final int MIX_ROLE_PLAYERS = AudioMix.MIX_TYPE_PLAYERS; 289 public static final int MIX_ROLE_INJECTOR = AudioMix.MIX_TYPE_RECORDERS; 305 return mTargetMixType == AudioMix.MIX_TYPE_RECORDERS ? MIX_ROLE_INJECTOR : MIX_ROLE_PLAYERS; in getTargetMixRole() 451 private int mTargetMixType = AudioMix.MIX_TYPE_INVALID; 634 ? AudioMix.MIX_TYPE_RECORDERS : AudioMix.MIX_TYPE_PLAYERS; in setTargetMixRole() 698 if (mTargetMixType == AudioMix.MIX_TYPE_INVALID) { in addRuleInternal() 700 mTargetMixType = AudioMix.MIX_TYPE_PLAYERS; in addRuleInternal() 702 mTargetMixType = AudioMix.MIX_TYPE_RECORDERS; in addRuleInternal() 704 } else if ((isPlayerRule(rule) && (mTargetMixType != AudioMix.MIX_TYPE_PLAYERS)) in addRuleInternal() 705 || (isRecorderRule(rule)) && (mTargetMixType != AudioMix.MIX_TYPE_RECORDERS)) in addRuleInternal() [all …]
|
D | AudioMix.aidl | 3 parcelable AudioMix;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPolicyMix.h | 35 class AudioPolicyMix : public AudioMix, public RefBase { 37 AudioPolicyMix(const AudioMix &mix) : AudioMix(mix) {} in AudioPolicyMix() 58 status_t registerMix(const AudioMix& mix, const sp<SwAudioOutputDescriptor>& desc); 60 status_t unregisterMix(const AudioMix& mix); 62 status_t updateMix(const AudioMix& mix, const std::vector<AudioMixMatchCriterion>& newCriteria); 148 bool mixMatch(const AudioMix* mix, size_t mixIndex, 153 bool mixDisallowsRequestedDevice(const AudioMix* mix, 158 sp<DeviceDescriptor> getOutputDeviceForMix(const AudioMix* mix,
|
/frameworks/av/media/libaudioclient/ |
D | AudioPolicy.cpp | 86 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel() 112 status_t AudioMix::writeToParcel(Parcel *parcel) const in writeToParcel() 147 void AudioMix::setExcludeUid(uid_t uid) { in setExcludeUid() 154 void AudioMix::setMatchUid(uid_t uid) { in setMatchUid() 161 bool AudioMix::hasUidRule(bool match, uid_t uid) const { in hasUidRule() 172 bool AudioMix::hasMatchUidRule() const { in hasMatchUidRule() 181 void AudioMix::setExcludeUserId(int userId) { in setExcludeUserId() 188 void AudioMix::setMatchUserId(int userId) { in setMatchUserId() 195 bool AudioMix::hasUserIdRule(bool match, int userId) const { in hasUserIdRule() 206 bool AudioMix::hasUserIdRule(bool match) const { in hasUserIdRule() [all …]
|
D | PolicyAidlConversion.cpp | 56 return AudioMix::kCbFlagNotifyActivity; in aidl2legacy_AudioMixCallbackFlag_uint32_t() 64 case AudioMix::kCbFlagNotifyActivity: in legacy2aidl_uint32_t_AudioMixCallbackFlag() 227 ConversionResult<AudioMix> 228 aidl2legacy_AudioMix(const media::AudioMix& aidl) { in aidl2legacy_AudioMix() 229 AudioMix legacy; in aidl2legacy_AudioMix() 250 ConversionResult<media::AudioMix> 251 legacy2aidl_AudioMix(const AudioMix& legacy) { in legacy2aidl_AudioMix() 252 media::AudioMix aidl; in legacy2aidl_AudioMix()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | VirtualAudioSession.java | 31 import android.media.audiopolicy.AudioMix; 250 AudioMix audioRecordMix = null; in createAudioStreams() 251 AudioMix audioTrackMix = null; in createAudioStreams() 310 private static AudioMix createAudioRecordMix(@NonNull AudioFormat audioFormat, int[] appUids) { in createAudioRecordMix() 317 AudioMix audioMix = in createAudioRecordMix() 318 new AudioMix.Builder(audioMixingRule) in createAudioRecordMix() 320 .setRouteFlags(AudioMix.ROUTE_FLAG_LOOP_BACK) in createAudioRecordMix() 325 private static AudioMix createAudioTrackMix(@NonNull AudioFormat audioFormat, int[] appUids) { in createAudioTrackMix() 332 AudioMix audioMix = in createAudioTrackMix() 333 new AudioMix.Builder(audioMixingRule) in createAudioTrackMix() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioPlaybackCaptureConfiguration.java | 21 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()
|
D | AudioRecord.java | 41 import android.media.audiopolicy.AudioMix; 790 AudioMix audioMix = mAudioPlaybackCaptureConfiguration.createAudioMix(mFormat); in buildAudioPlaybackCaptureRecord() 852 AudioMix audioMix = new AudioMix.Builder(audioMixingRule) in buildCallExtractionRecord() 854 .setRouteFlags(AudioMix.ROUTE_FLAG_LOOP_BACK) in buildCallExtractionRecord()
|
D | IAudioService.aidl | 61 import android.media.audiopolicy.AudioMix; 372 List<AudioMix> getRegisteredPolicyMixes(); in getRegisteredPolicyMixes() 381 int updateMixingRulesForPolicy(in AudioMix[] mixesToUpdate, in updateMixingRulesForPolicy()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | PolicyAidlConversion.h | 77 ConversionResult<AudioMix> 78 aidl2legacy_AudioMix(const media::AudioMix& aidl); 79 ConversionResult<media::AudioMix> 80 legacy2aidl_AudioMix(const AudioMix& legacy);
|
D | AudioPolicy.h | 92 class AudioMix { 98 AudioMix() {} in AudioMix() function 99 AudioMix(const std::vector<AudioMixMatchCriterion> &criteria, uint32_t mixType, in AudioMix() function
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | AudioMixUpdate.aidl | 19 import android.media.AudioMix; 28 AudioMix audioMix;
|
D | AudioMix.aidl | 29 parcelable AudioMix {
|
D | IAudioPolicyService.aidl | 22 import android.media.AudioMix; 270 void registerPolicyMixes(in AudioMix[] mixes, boolean registration); in registerPolicyMixes() 272 List<AudioMix> getRegisteredPolicyMixes(); in getRegisteredPolicyMixes()
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioPolicyDeathTestActivity.java | 24 import android.media.audiopolicy.AudioMix; 64 AudioMix audioMix = new AudioMix.Builder(audioMixingRuleBuilder.build()) in onCreate() 66 .setRouteFlags(AudioMix.ROUTE_FLAG_LOOP_BACK) in onCreate()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioSystemAdapter.java | 28 import android.media.audiopolicy.AudioMix; 621 public int registerPolicyMixes(ArrayList<AudioMix> mixes, boolean register) { in registerPolicyMixes() 629 public List<AudioMix> getRegisteredPolicyMixes() { in getRegisteredPolicyMixes() 634 List<AudioMix> audioMixes = new ArrayList<>(); in getRegisteredPolicyMixes() 652 public int updateMixingRules(@NonNull AudioMix[] mixes, in updateMixingRules()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyMix.cpp | 184 status_t AudioPolicyMixCollection::registerMix(const AudioMix& mix, in registerMix() 220 status_t AudioPolicyMixCollection::unregisterMix(const AudioMix& mix) in unregisterMix() 248 const AudioMix& mix, const std::vector<AudioMixMatchCriterion>& updatedCriteria) { in updateMix() 403 sp<DeviceDescriptor> AudioPolicyMixCollection::getOutputDeviceForMix(const AudioMix* mix, in getOutputDeviceForMix() 411 bool AudioPolicyMixCollection::mixDisallowsRequestedDevice(const AudioMix* mix, in mixDisallowsRequestedDevice() 424 bool AudioPolicyMixCollection::mixMatch(const AudioMix* mix, size_t mixIndex, in mixMatch()
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterface.h | 278 virtual status_t registerPolicyMixes(const Vector<AudioMix>& mixes) = 0; 279 virtual status_t unregisterPolicyMixes(Vector<AudioMix> mixes) = 0; 280 virtual status_t getRegisteredPolicyMixes(std::vector<AudioMix>& mixes) = 0; 283 const AudioMix& mix,
|
/frameworks/av/media/audio/aconfig/ |
D | audiopolicy_framework.aconfig | 12 …on: "Improves ownership model of AudioMixes and the relationship between AudioPolicy and AudioMix."
|
/frameworks/av/media/libaudioclient/tests/ |
D | audiorouting_tests.cpp | 153 AudioMix mix(criteria, mixType, config, mixFlag, String8{mAddress.c_str()}, 0); in SetUp() 171 Vector<AudioMix> mMixes;
|
D | audioclient_serialization_tests.cpp | 212 AudioMix am{criteria, in TEST_F() 222 AudioMix amCopy; in TEST_F()
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 1244 status_t addPolicyMix(const AudioMix& mix); 1246 status_t removePolicyMixes(const Vector<AudioMix>& mixes); 1248 std::vector<AudioMix> getRegisteredPolicyMixes(); 1258 Vector<AudioMix> mAudioMixes; 1280 AudioMix myAudioMix(matchCriteria, mixType, audioConfig, mixFlag, 1289 status_t AudioPolicyManagerTestDynamicPolicy::addPolicyMix(const AudioMix& mix) { in addPolicyMix() 1298 status_t AudioPolicyManagerTestDynamicPolicy::removePolicyMixes(const Vector<AudioMix>& mixes) { in removePolicyMixes() 1303 std::vector<AudioMix> AudioPolicyManagerTestDynamicPolicy::getRegisteredPolicyMixes() { in getRegisteredPolicyMixes() 1304 std::vector<AudioMix> audioMixes; in getRegisteredPolicyMixes() 1479 AudioMix validAudioMix(validMixMatchCriteria, MIX_TYPE_PLAYERS, audioConfig, in TEST_F_WITH_FLAGS() [all …]
|