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