Searched refs:refAttributes (Results 1 – 2 of 2) sorted by relevance
63 int AudioProductStrategy::attributesMatchesScore(audio_attributes_t refAttributes, in attributesMatchesScore() argument66 refAttributes.flags = static_cast<audio_flags_mask_t>( in attributesMatchesScore()67 refAttributes.flags & AUDIO_FLAGS_AFFECT_STRATEGY_SELECTION); in attributesMatchesScore()70 if (refAttributes == clientAttritubes) { in attributesMatchesScore()73 if (refAttributes == AUDIO_ATTRIBUTES_INITIALIZER) { in attributesMatchesScore()81 if (refAttributes.usage == AUDIO_USAGE_UNKNOWN) { in attributesMatchesScore()83 } else if (clientAttritubes.usage == refAttributes.usage) { in attributesMatchesScore()88 if (refAttributes.content_type == AUDIO_CONTENT_TYPE_UNKNOWN) { in attributesMatchesScore()90 } else if (clientAttritubes.content_type == refAttributes.content_type) { in attributesMatchesScore()95 if (strlen(refAttributes.tags) == 0) { in attributesMatchesScore()[all …]
61 static int attributesMatchesScore(audio_attributes_t refAttributes,64 static bool attributesMatches(audio_attributes_t refAttributes, in attributesMatches() argument66 return attributesMatchesScore(refAttributes, clientAttritubes) > 0; in attributesMatches()