Searched refs:refAttr (Results 1 – 2 of 2) sorted by relevance
330 private static boolean attributesMatches(@NonNull AudioAttributes refAttr, in attributesMatches() argument332 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()
1494 auto iter = std::find_if(begin(attrVect), end(attrVect), [&attr](const auto &refAttr) { in attributesToStreamType() argument1496 refAttr.getAttributes(), attr); }); in attributesToStreamType()