Home
last modified time | relevance | path

Searched refs:refAttr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java436 private static boolean attributesMatches(@NonNull AudioAttributes refAttr, in attributesMatches() argument
438 Objects.requireNonNull(refAttr, "reference AudioAttributes must not be null"); in attributesMatches()
440 String refFormattedTags = TextUtils.join(";", refAttr.getTags()); in attributesMatches()
442 if (refAttr.equals(DEFAULT_ATTRIBUTES)) { in attributesMatches()
445 return ((refAttr.getSystemUsage() == AudioAttributes.USAGE_UNKNOWN) in attributesMatches()
446 || (attr.getSystemUsage() == refAttr.getSystemUsage())) in attributesMatches()
447 && ((refAttr.getContentType() == AudioAttributes.CONTENT_TYPE_UNKNOWN) in attributesMatches()
448 || (attr.getContentType() == refAttr.getContentType())) in attributesMatches()
449 && (((refAttr.getAllFlags() & AUDIO_FLAGS_AFFECT_STRATEGY_SELECTION) == 0) in attributesMatches()
451 && (attr.getAllFlags() & refAttr.getAllFlags()) == refAttr.getAllFlags())) in attributesMatches()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp2254 auto iter = std::find_if(begin(attrVect), end(attrVect), [&attr](const auto& refAttr) { in attributesToStreamType() argument
2255 return refAttr.matchesScore(attr) > 0; in attributesToStreamType()