Home
last modified time | relevance | path

Searched refs:AudioMixMatchCriterion (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/media/java/android/media/audiopolicy/
DAudioMixingRule.java58 private AudioMixingRule(int mixType, Collection<AudioMixMatchCriterion> criteria, in AudioMixingRule()
136 public static final class AudioMixMatchCriterion implements Parcelable { class in AudioMixingRule
146 public AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() method in AudioMixingRule.AudioMixMatchCriterion
153 public AudioMixMatchCriterion(Integer intProp, int rule) { in AudioMixMatchCriterion() method in AudioMixingRule.AudioMixMatchCriterion
159 private AudioMixMatchCriterion(@NonNull Parcel in) { in AudioMixMatchCriterion() method in AudioMixingRule.AudioMixMatchCriterion
196 AudioMixMatchCriterion other = (AudioMixMatchCriterion) object; in equals()
228 public static final @NonNull Parcelable.Creator<AudioMixMatchCriterion> CREATOR =
236 public AudioMixMatchCriterion createFromParcel(Parcel p) {
237 return new AudioMixMatchCriterion(p);
239 public AudioMixMatchCriterion[] newArray(int size) {
[all …]
DAudioPolicyConfig.java20 import android.media.audiopolicy.AudioMixingRule.AudioMixMatchCriterion;
134 final ArrayList<AudioMixMatchCriterion> criteria = mix.getRule().getCriteria(); in toLogFriendlyString()
135 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp27 AudioMixMatchCriterion::AudioMixMatchCriterion(audio_usage_t usage, in AudioMixMatchCriterion() function in android::AudioMixMatchCriterion
40 status_t AudioMixMatchCriterion::readFromParcel(Parcel *parcel) in readFromParcel()
71 status_t AudioMixMatchCriterion::writeToParcel(Parcel *parcel) const in writeToParcel()
78 bool AudioMixMatchCriterion::isExcludeCriterion() const { in isExcludeCriterion()
104 AudioMixMatchCriterion criterion; in readFromParcel()
148 AudioMixMatchCriterion crit; in setExcludeUid()
155 AudioMixMatchCriterion crit; in setMatchUid()
182 AudioMixMatchCriterion crit; in setExcludeUserId()
189 AudioMixMatchCriterion crit; in setMatchUserId()
DPolicyAidlConversion.cpp129 using AudioMixMatchCriterionValue = decltype(AudioMixMatchCriterion::mValue);
204 ConversionResult<AudioMixMatchCriterion>
205 aidl2legacy_AudioMixMatchCriterion(const media::AudioMixMatchCriterion& aidl) { in aidl2legacy_AudioMixMatchCriterion()
206 AudioMixMatchCriterion legacy; in aidl2legacy_AudioMixMatchCriterion()
215 ConversionResult<media::AudioMixMatchCriterion>
216 legacy2aidl_AudioMixMatchCriterion(const AudioMixMatchCriterion& legacy) { in legacy2aidl_AudioMixMatchCriterion()
217 media::AudioMixMatchCriterion aidl; in legacy2aidl_AudioMixMatchCriterion()
254 convertContainer<std::vector<media::AudioMixMatchCriterion>>( in legacy2aidl_AudioMix()
DAndroid.bp352 "aidl/android/media/AudioMixMatchCriterion.aidl",
DAudioSystem.cpp1923 const std::vector<std::pair<AudioMix, std::vector<AudioMixMatchCriterion>>>& in updatePolicyMixes()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h73 class AudioMixMatchCriterion {
75 AudioMixMatchCriterion() {} in AudioMixMatchCriterion() function
76 AudioMixMatchCriterion(audio_usage_t usage, audio_source_t source, uint32_t rule);
99 AudioMix(const std::vector<AudioMixMatchCriterion> &criteria, uint32_t mixType, in AudioMix()
124 std::vector<AudioMixMatchCriterion> mCriteria;
DPolicyAidlConversion.h72 ConversionResult<AudioMixMatchCriterion>
73 aidl2legacy_AudioMixMatchCriterion(const media::AudioMixMatchCriterion& aidl);
74 ConversionResult<media::AudioMixMatchCriterion>
75 legacy2aidl_AudioMixMatchCriterion(const AudioMixMatchCriterion& legacy);
DAudioSystem.h490 std::pair<AudioMix, std::vector<AudioMixMatchCriterion>>>& mixesWithUpdates);
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioMixUpdate.aidl20 import android.media.AudioMixMatchCriterion;
30 AudioMixMatchCriterion[] newCriteria;
DAudioMix.aidl20 import android.media.AudioMixMatchCriterion;
30 AudioMixMatchCriterion[] criteria;
DAudioMixMatchCriterion.aidl24 parcelable AudioMixMatchCriterion {
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp47 bool isCriterionMatched(const AudioMixMatchCriterion& criterion, in isCriterionMatched()
76 bool areMixCriteriaMatched(const std::vector<AudioMixMatchCriterion>& criteria, in areMixCriteriaMatched()
81 auto isMatchingExcludeCriterion = [&](const AudioMixMatchCriterion& c) { in areMixCriteriaMatched()
104 bool areMixCriteriaConsistent(const std::vector<AudioMixMatchCriterion>& criteria) { in areMixCriteriaConsistent()
106 for (const AudioMixMatchCriterion& c : criteria) { in areMixCriteriaConsistent()
113 auto isConflictingCriterion = [&positiveCriteria](const AudioMixMatchCriterion& c) { in areMixCriteriaConsistent()
122 void EraseCriteriaIf(std::vector<AudioMixMatchCriterion>& v, in EraseCriteriaIf()
248 const AudioMix& mix, const std::vector<AudioMixMatchCriterion>& updatedCriteria) { in updateMix()
620 EraseCriteriaIf(mix->mCriteria, [uid](const AudioMixMatchCriterion& c) { in removeUidDeviceAffinities()
712 EraseCriteriaIf(mix->mCriteria, [userId](const AudioMixMatchCriterion& c) { in removeUserIdDeviceAffinities()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp54 AudioMixMatchCriterion createUidCriterion(uint32_t uid, bool exclude = false) { in createUidCriterion()
55 AudioMixMatchCriterion criterion; in createUidCriterion()
61 AudioMixMatchCriterion createUserIdCriterion(int userId, bool exclude = false) { in createUserIdCriterion()
62 AudioMixMatchCriterion criterion; in createUserIdCriterion()
68 AudioMixMatchCriterion createUsageCriterion(audio_usage_t usage, bool exclude = false) { in createUsageCriterion()
69 AudioMixMatchCriterion criterion; in createUsageCriterion()
75 AudioMixMatchCriterion createCapturePresetCriterion(audio_source_t source, bool exclude = false) { in createCapturePresetCriterion()
76 AudioMixMatchCriterion criterion; in createCapturePresetCriterion()
83 AudioMixMatchCriterion createSessionIdCriterion(audio_session_t session, bool exclude = false) { in createSessionIdCriterion()
84 AudioMixMatchCriterion criterion; in createSessionIdCriterion()
[all …]
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java23 import android.media.audiopolicy.AudioMixingRule.AudioMixMatchCriterion;
119 ToIntFunction<AudioMixMatchCriterion> getPredicate) { in getIntPredicates()
/frameworks/av/media/libaudioclient/tests/
Daudioclient_serialization_tests.cpp198 std::vector<AudioMixMatchCriterion> criteria; in TEST_F()
201 AudioMixMatchCriterion ammc{kUsages[rand() % kUsages.size()], in TEST_F()
262 AudioMixMatchCriterion ammc{mAudioUsage, mAudioSource, mAudioMixMatchRules}; in TEST_P()
267 AudioMixMatchCriterion ammcCopy; in TEST_P()
Daudiorouting_tests.cpp146 AudioMixMatchCriterion criterion(AUDIO_USAGE_MEDIA, AUDIO_SOURCE_DEFAULT, in SetUp()
148 std::vector<AudioMixMatchCriterion> criteria{criterion}; in SetUp()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h62 status_t updateMix(const AudioMix& mix, const std::vector<AudioMixMatchCriterion>& newCriteria);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h284 const std::vector<AudioMixMatchCriterion>& updatedCriteria) = 0;
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp558 std::vector<AudioMixMatchCriterion> myMixMatchCriteria; in addPolicyMix()
563 AudioMixMatchCriterion(std::get<0>(rule), std::get<1>(rule), std::get<2>(rule))); in addPolicyMix()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h303 const std::vector<AudioMixMatchCriterion>& updatedCriteria) override;
DAudioPolicyManager.cpp4071 const std::vector<AudioMixMatchCriterion>& updatedCriteria) { in updatePolicyMix()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2188 std::vector<AudioMixMatchCriterion> *nCriteria) { in convertAudioMixingRuleToNative()
2202 AudioMixMatchCriterion &nCriterion = (*nCriteria)[i]; in convertAudioMixingRuleToNative()
2453 std::vector<std::pair<AudioMix, std::vector<AudioMixMatchCriterion>>> updates(updatesCount); in android_media_AudioSystem_updatePolicyMixes()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1835 std::vector<AudioMixMatchCriterion> newCriteria = in updatePolicyMixes()
1836 VALUE_OR_RETURN_BINDER_STATUS(convertContainer<std::vector<AudioMixMatchCriterion>>( in updatePolicyMixes()
/frameworks/base/boot/
Dpreloaded-classes5394 android.media.audiopolicy.AudioMixingRule$AudioMixMatchCriterion$1
5395 android.media.audiopolicy.AudioMixingRule$AudioMixMatchCriterion

12