Home
last modified time | relevance | path

Searched refs:criterion (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp149 auto criterion = mPfwConnector->createSelectionCriterion(name, criterionType); in addCriterion() local
150 mPolicyCriteria[name] = criterion; in addCriterion()
158 criterion->setCriterionState(numericalValue); in addCriterion()
210 ISelectionCriterionInterface *criterion = in setPhoneState() local
212 if (criterion == NULL) { in setPhoneState()
216 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
219 criterion->setCriterionState((int)(mode)); in setPhoneState()
226 const ISelectionCriterionInterface *criterion = in getPhoneState() local
228 if (criterion == NULL) { in getPhoneState()
232 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiSelector.java641 String getString(int criterion) { in getString() argument
642 return (String) mSelectorAttributes.get(criterion, null); in getString()
645 boolean getBoolean(int criterion) { in getBoolean() argument
646 return (Boolean) mSelectorAttributes.get(criterion, false); in getBoolean()
649 int getInt(int criterion) { in getInt() argument
650 return (Integer) mSelectorAttributes.get(criterion, 0); in getInt()
653 Pattern getPattern(int criterion) { in getPattern() argument
654 return (Pattern) mSelectorAttributes.get(criterion, null); in getPattern()
661 int criterion = mSelectorAttributes.keyAt(x); in isMatchFor() local
662 switch(criterion) { in isMatchFor()
[all …]
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java96 criterion -> criterion.getAudioAttributes().getUsage()); in getMatchingUsages()
102 criterion -> criterion.getIntProp()); in getMatchingUids()
109 criterion -> criterion.getAudioAttributes().getUsage()); in getExcludeUsages()
115 criterion -> criterion.getIntProp()); in getExcludeUids()
121 .filter(criterion -> criterion.getRule() == rule) in getIntPredicates()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMixingRule.java250 for (AudioMixMatchCriterion criterion : mCriteria) { in isAffectingUsage()
251 if ((criterion.mRule & RULE_MATCH_ATTRIBUTE_USAGE) != 0 in isAffectingUsage()
252 && criterion.mAttr != null in isAffectingUsage()
253 && criterion.mAttr.getSystemUsage() == usage) { in isAffectingUsage()
267 for (AudioMixMatchCriterion criterion : mCriteria) { in containsMatchAttributeRuleForUsage()
268 if (criterion.mRule == RULE_MATCH_ATTRIBUTE_USAGE in containsMatchAttributeRuleForUsage()
269 && criterion.mAttr != null in containsMatchAttributeRuleForUsage()
270 && criterion.mAttr.getSystemUsage() == usage) { in containsMatchAttributeRuleForUsage()
338 for (AudioMixMatchCriterion criterion : mCriteria) { in isForCallRedirection()
339 if (criterion.mAttr != null in isForCallRedirection()
[all …]
DAudioPolicyConfig.java135 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
136 switch(criterion.mRule) { in toLogFriendlyString()
139 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
143 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
147 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
151 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
155 textDump += criterion.mIntProp; in toLogFriendlyString()
159 textDump += criterion.mIntProp; in toLogFriendlyString()
163 textDump += criterion.mIntProp; in toLogFriendlyString()
167 textDump += criterion.mIntProp; in toLogFriendlyString()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp47 bool isCriterionMatched(const AudioMixMatchCriterion& criterion, in isCriterionMatched() argument
51 uint32_t ruleWithoutExclusion = criterion.mRule & ~RULE_EXCLUSION_MASK; in isCriterionMatched()
54 return criterion.mValue.mUsage == attr.usage; in isCriterionMatched()
56 return criterion.mValue.mSource == attr.source; in isCriterionMatched()
58 return criterion.mValue.mUid == uid; in isCriterionMatched()
62 return criterion.mValue.mUserId == userId; in isCriterionMatched()
65 return criterion.mValue.mAudioSessionId == session; in isCriterionMatched()
67 ALOGE("Encountered invalid mix rule 0x%x", criterion.mRule); in isCriterionMatched()
90 for (const auto& criterion : criteria) { in areMixCriteriaMatched() local
91 if (criterion.isExcludeCriterion()) { in areMixCriteriaMatched()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DdomainGeneratorPolicy.py55 <criterion name="" type=""/> \
122 for criterion in criteria_root.findall('criterion'):
123 criterion_name = criterion.get('name')
124 type_name = criterion.get('type')
189 for criterion in all_criteria:
190 yield ["createSelectionCriterion", criterion['inclusive'],
191 criterion['name']] + criterion['values']
DAndroid.bp26 // Tools for audio policy engine criterion type configuration file
DbuildPolicyCriterionTypes.py50 audio criterion type file generator.\n\
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp104 AudioMixMatchCriterion criterion; in readFromParcel() local
105 if (criterion.readFromParcel(parcel) == NO_ERROR) { in readFromParcel()
106 mCriteria.push_back(criterion); in readFromParcel()
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/caremu/
DAndroid.bp61 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive/
DAndroid.bp66 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone/
DAndroid.bp72 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp208 for (auto& criterion : configCriteria) { in loadAudioPolicyEngineConfig() local
211 if (configCriterionType.name == criterion.typeName) { in loadAudioPolicyEngineConfig()
217 criterion.name.c_str()); in loadAudioPolicyEngineConfig()
218 mPolicyParameterMgr->addCriterion(criterion.name, criterionType.isInclusive, in loadAudioPolicyEngineConfig()
220 criterion.defaultLiteralValue); in loadAudioPolicyEngineConfig()
/frameworks/native/libs/nativewindow/tests/benchmark/
Dbuffer_benchmarks.rs20 use criterion::*;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java385 String criterion = null; in onCommand() local
391 criterion = flagarg; in onCommand()
403 if (duration > 0 || criterion != null) { in onCommand()
419 criterion)); in onCommand()
420 nls.snoozeNotification(key, criterion); in onCommand()
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h205 bool isValueValidForCriterion(ISelectionCriterionInterface *criterion, int valueToCheck);
/frameworks/av/media/libaudioclient/tests/
Daudiorouting_tests.cpp146 AudioMixMatchCriterion criterion(AUDIO_USAGE_MEDIA, AUDIO_SOURCE_DEFAULT, in SetUp() local
148 std::vector<AudioMixMatchCriterion> criteria{criterion}; in SetUp()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp55 AudioMixMatchCriterion criterion; in createUidCriterion() local
56 criterion.mValue.mUid = uid; in createUidCriterion()
57 criterion.mRule = exclude ? RULE_EXCLUDE_UID : RULE_MATCH_UID; in createUidCriterion()
58 return criterion; in createUidCriterion()
62 AudioMixMatchCriterion criterion; in createUserIdCriterion() local
63 criterion.mValue.mUserId = userId; in createUserIdCriterion()
64 criterion.mRule = exclude ? RULE_EXCLUDE_USERID : RULE_MATCH_USERID; in createUserIdCriterion()
65 return criterion; in createUserIdCriterion()
69 AudioMixMatchCriterion criterion; in createUsageCriterion() local
70 criterion.mValue.mUsage = usage; in createUsageCriterion()
[all …]