Searched refs:criterion (Results 1 – 6 of 6) sorted by relevance
641 String getString(int criterion) { in getString() argument642 return (String) mSelectorAttributes.get(criterion, null); in getString()645 boolean getBoolean(int criterion) { in getBoolean() argument646 return (Boolean) mSelectorAttributes.get(criterion, false); in getBoolean()649 int getInt(int criterion) { in getInt() argument650 return (Integer) mSelectorAttributes.get(criterion, 0); in getInt()653 Pattern getPattern(int criterion) { in getPattern() argument654 return (Pattern) mSelectorAttributes.get(criterion, null); in getPattern()661 int criterion = mSelectorAttributes.keyAt(x); in isMatchFor() local662 switch(criterion) { in isMatchFor()[all …]
262 ISelectionCriterionInterface *criterion = in addCriterion() local265 mPolicyCriteria[name] = criterion; in addCriterion()271 criterion->setCriterionState(numericalValue); in addCriterion()337 ISelectionCriterionInterface *criterion = in setPhoneState() local339 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() local355 if (criterion == NULL) { in getPhoneState()359 return static_cast<audio_mode_t>(criterion->getCriterionState()); in getPhoneState()[all …]
96 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()
384 final AudioMixMatchCriterion criterion = crIterator.next(); in addRuleInternal() local388 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()
78 AudioMixMatchCriterion criterion; in readFromParcel() local79 if (criterion.readFromParcel(parcel) == NO_ERROR) { in readFromParcel()80 mCriteria.add(criterion); in readFromParcel()
267 bool isValueValidForCriterion(ISelectionCriterionInterface *criterion, int valueToCheck);