audiopolicy: Add AudioProfileVector::findBestMatchingOutputConfig

Assuming that the call target AudioProfileVector contains
input profiles, the method finds the best matching config
from provided AudioProfileVector of output
profiles. Matching is performed according to the given
preferences for audio formats and channel masks.

Bug: 63901775
Test: MSD prototype
Change-Id: Id005aad9de8bfe8cea5cb6291efc278d6260210c
2 files changed