Home
last modified time | relevance | path

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

/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp134 auto criterion = mPfwConnector->createSelectionCriterion(name, criterionType); in addCriterion() local
135 mPolicyCriteria[name] = criterion; in addCriterion()
143 criterion->setCriterionState(numericalValue); in addCriterion()
195 ISelectionCriterionInterface *criterion = in setPhoneState() local
197 if (criterion == NULL) { in setPhoneState()
201 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
204 criterion->setCriterionState((int)(mode)); in setPhoneState()
211 const ISelectionCriterionInterface *criterion = in getPhoneState() local
213 if (criterion == NULL) { in getPhoneState()
217 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/audiopolicy/
DAudioMixingRule.java166 for (AudioMixMatchCriterion criterion : mCriteria) { in isAffectingUsage()
167 if ((criterion.mRule & RULE_MATCH_ATTRIBUTE_USAGE) != 0 in isAffectingUsage()
168 && criterion.mAttr != null in isAffectingUsage()
169 && criterion.mAttr.getUsage() == usage) { in isAffectingUsage()
183 for (AudioMixMatchCriterion criterion : mCriteria) { in containsMatchAttributeRuleForUsage()
184 if (criterion.mRule == RULE_MATCH_ATTRIBUTE_USAGE in containsMatchAttributeRuleForUsage()
185 && criterion.mAttr != null in containsMatchAttributeRuleForUsage()
186 && criterion.mAttr.getUsage() == usage) { in containsMatchAttributeRuleForUsage()
527 final AudioMixMatchCriterion criterion = crIterator.next(); in addRuleInternal() local
529 if ((criterion.mRule & ~RULE_EXCLUSION_MASK) != match_rule) { in addRuleInternal()
[all …]
DAudioPolicyConfig.java106 for (AudioMixMatchCriterion criterion : criteria) { in writeToParcel()
107 criterion.writeToParcel(dest); in writeToParcel()
180 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
181 switch(criterion.mRule) { in toLogFriendlyString()
184 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
188 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
192 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
196 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
200 textDump += criterion.mIntProp; in toLogFriendlyString()
204 textDump += criterion.mIntProp; in toLogFriendlyString()
[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/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.bp28 // Tools for audio policy engine criterion type configuration file
DbuildPolicyCriterionTypes.py50 audio criterion type file generator.\n\
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp189 for (auto& criterion : configCriteria) { in loadAudioPolicyEngineConfig() local
192 if (configCriterionType.name == criterion.typeName) { in loadAudioPolicyEngineConfig()
198 criterion.name.c_str()); in loadAudioPolicyEngineConfig()
199 mPolicyParameterMgr->addCriterion(criterion.name, criterionType.isInclusive, in loadAudioPolicyEngineConfig()
201 criterion.defaultLiteralValue); in loadAudioPolicyEngineConfig()
/frameworks/base/tests/RollbackTest/lib/src/com/android/tests/rollback/host/
DWatchdogEventLogger.java92 for (String criterion: eventCriteria) { in watchdogEventOccurred()
93 if (!loggingEvent.contains(criterion)) { in watchdogEventOccurred()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp51 for (const auto &criterion : mCriteria) { in dump() local
55 bool unknownRule = !RuleTypeConverter::toString(criterion.mRule, ruleType); in dump()
56 switch (criterion.mRule & ~RULE_EXCLUSION_MASK) { // no need to match RULE_EXCLUDE_... in dump()
58 UsageTypeConverter::toString(criterion.mValue.mUsage, ruleValue); in dump()
61 SourceTypeConverter::toString(criterion.mValue.mSource, ruleValue); in dump()
64 ruleValue = std::to_string(criterion.mValue.mUid); in dump()
67 ruleValue = std::to_string(criterion.mValue.mUserId); in dump()
76 dst->appendFormat("Unknown rule type value 0x%x\n", criterion.mRule); in dump()
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp95 AudioMixMatchCriterion criterion; in readFromParcel() local
96 if (criterion.readFromParcel(parcel) == NO_ERROR) { in readFromParcel()
97 mCriteria.add(criterion); in readFromParcel()
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/caremu/
DAndroid.bp49 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive/
DAndroid.bp53 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone/
DAndroid.bp58 // Generate audio_policy_engine criterion type file => provides device addresses criterion type
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java396 String criterion = null; in onCommand() local
402 criterion = flagarg; in onCommand()
418 if (duration > 0 || criterion != null) { in onCommand()
424 criterion)); in onCommand()
426 mDirectService.snoozeNotificationInt(key, duration, criterion, null); in onCommand()
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h196 bool isValueValidForCriterion(ISelectionCriterionInterface *criterion, int valueToCheck);
/frameworks/ml/nn/tools/test_generator/test_harness/
DTestHarness.cpp68 void expectNear(const TestOperand& op, const TestBuffer& result, const AccuracyCriterion& criterion, in expectNear() argument
79 double tolerableRange = criterion.atol + criterion.rtol * std::fabs(expected); in expectNear()
110 EXPECT_LE(std::fabs(bias), criterion.bias); in expectNear()
111 EXPECT_LE(mse, criterion.mse); in expectNear()