[BUG] audio: Misalignement of Native/Java AudioAttributes
Native audio attributes are initialized with a default source,
whereas JAVA AudioAttributes are initialized with an INVALID source.
It leads to equality failure, thus preventing to identify the
right strategy / volume group.
This CL fixes this misalignement by using the builder constructor
from AudioAttributes, thus cleaning the input source.
Test: AudioVolumeGroupTest
Bug: 238058094
Bug: 248287204
Merged-In: I0aa6f19bb0f448e853adcc0dacece4d69c665602
Change-Id: I0aa6f19bb0f448e853adcc0dacece4d69c665602
(cherry picked from commit 47e3b6bf552e7d82c58999ad0a68f2d82219646e)
1 file changed