summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jan Sebechlebsky <jsebechlebsky@google.com> 2022-10-12 19:07:24 +0200
committer Jan Sebechlebsky <jsebechlebsky@google.com> 2022-10-18 14:05:48 +0200
commitc16bba7a83761589745299bd28807a588c2f3870 (patch)
tree7b64c78a60790df9a0300286f65e68ea1677f798 /libs/androidfw/StringPool.cpp
parent24c1470c9e6293fc879eafc0a90adf3804c8514f (diff)
Throw exception when attempting to build empty AudioMixingRule.
This fixes android.media.audio.cts.AudioPlaybackCaptureTest#testMatchNothing. The test asserts that attempting to capture playback with no criteria specified throws and Exception. However, the reason why the test was passing and Exception thrown was not because of explicit check for empty AudioMixingRule, but because of invalid mix role (not adding any rules prior to ag/20001744 caused mix type not to be inferred). If the mix role was explicitly set for the AudioMixingRule.Builder the test would also fail the expectation. This cl is adding explicit check for the presence of rules when building AudioMixingRule to fix this. Bug: 252822301 Test: atest AudioPlaybackCaptureTest Change-Id: If3caa635b67eca779bb2026d2da1c4727e4636e9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions