Replace AudioPlaybackConfiguration attribute check with TestId matching
For some short play, test the predicate after timeout may get an empty
config because the playback already end, update to do predicate test
for every onPlaybackConfigChanged to make sure to capture the expected
config update.
Also set the predicate to callback before playback start.
Remove the AudioManager getActivePlaybackConfigurations validation.
Flag: EXEMPT bugfix
Bug: 438201693
Test: atest android.media.audio.cts.AudioPlaybackConfigurationTest --iterations 10
Change-Id: I195b2fbd2da0ef2caa385d4df8fe22f2a2602a9a
1 file changed