Home
last modified time | relevance | path

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

/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/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp262 ISelectionCriterionInterface *criterion = in addCriterion() local
265 mPolicyCriteria[name] = criterion; in addCriterion()
271 criterion->setCriterionState(numericalValue); in addCriterion()
337 ISelectionCriterionInterface *criterion = in setPhoneState() local
339 if (criterion == NULL) { in setPhoneState()
343 if (!isValueValidForCriterion(criterion, static_cast<int>(mode))) { in setPhoneState()
346 criterion->setCriterionState((int)(mode)); in setPhoneState()
353 const ISelectionCriterionInterface *criterion = in getPhoneState() local
355 if (criterion == NULL) { in getPhoneState()
359 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java96 for (AudioMixMatchCriterion criterion : criteria) { in writeToParcel()
97 criterion.writeToParcel(dest); in writeToParcel()
161 for (AudioMixMatchCriterion criterion : criteria) { in toLogFriendlyString()
162 switch(criterion.mRule) { in toLogFriendlyString()
165 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
169 textDump += criterion.mAttr.usageToString(); in toLogFriendlyString()
173 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
177 textDump += criterion.mAttr.getCapturePreset(); in toLogFriendlyString()
181 textDump += criterion.mIntProp; in toLogFriendlyString()
185 textDump += criterion.mIntProp; in toLogFriendlyString()
DAudioMixingRule.java384 final AudioMixMatchCriterion criterion = crIterator.next(); in addRuleInternal() local
388 if (criterion.mAttr.getUsage() == attrToMatch.getUsage()) { in addRuleInternal()
389 if (criterion.mRule == rule) { in addRuleInternal()
402 … if (criterion.mAttr.getCapturePreset() == attrToMatch.getCapturePreset()) { in addRuleInternal()
403 if (criterion.mRule == rule) { in addRuleInternal()
416 if (criterion.mIntProp == intProp.intValue()) { in addRuleInternal()
417 if (criterion.mRule == rule) { in addRuleInternal()
/frameworks/av/media/libmedia/
DAudioPolicy.cpp78 AudioMixMatchCriterion criterion; in readFromParcel() local
79 if (criterion.readFromParcel(parcel) == NO_ERROR) { in readFromParcel()
80 mCriteria.add(criterion); in readFromParcel()
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h267 bool isValueValidForCriterion(ISelectionCriterionInterface *criterion, int valueToCheck);