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.java330 private static boolean attributesMatches(@NonNull AudioAttributes refAttr, in attributesMatches() argument
332 Preconditions.checkNotNull(refAttr, "refAttr must not be null"); in attributesMatches()
334 String refFormattedTags = TextUtils.join(";", refAttr.getTags()); in attributesMatches()
336 if (refAttr.equals(sDefaultAttributes)) { in attributesMatches()
339 return ((refAttr.getSystemUsage() == AudioAttributes.USAGE_UNKNOWN) in attributesMatches()
340 || (attr.getSystemUsage() == refAttr.getSystemUsage())) in attributesMatches()
341 && ((refAttr.getContentType() == AudioAttributes.CONTENT_TYPE_UNKNOWN) in attributesMatches()
342 || (attr.getContentType() == refAttr.getContentType())) in attributesMatches()
343 && ((refAttr.getAllFlags() == 0) in attributesMatches()
345 && (attr.getAllFlags() & refAttr.getAllFlags()) == refAttr.getAllFlags())) in attributesMatches()
/frameworks/av/media/libaudioclient/
DAudioSystem.cpp1494 auto iter = std::find_if(begin(attrVect), end(attrVect), [&attr](const auto &refAttr) { in attributesToStreamType() argument
1496 refAttr.getAttributes(), attr); }); in attributesToStreamType()