summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorKevin Rocard <krocard@google.com>2018-10-26 15:35:16 -0700
committerKevin Rocard <krocard@google.com>2018-11-28 20:29:52 -0800
commit575c63f7f0fedf19e374cac10a7cd02c0f2264e6 (patch)
tree53ace8ebe0c9b386ada37115d05d4e2622fb365a /identity/support/src/cppbor_parse.cpp
parent55a5b8b482a26030dfe0a5dc3173b982c1615f34 (diff)
Audio HAL: do not test input stream if no Built-in mic on primary
The test use to always test input stream, assuming that all devices had built-in device on the primary Module. Nevertheless, although uncommon, the mic could be on any module or even not exist. This patch makes sure that the input stream tests are only run if there is a Built-in mic on the primary module. As the policy config is now imported, it will be easy for the next HAL version to add tests to test all supported audio config for each device. Test: adb shell cd /data/nativetest64/VtsHalAudioV4_0TargetTest VtsHalAudioV4_0TargetTest --gtest_list_tests | grep Input VtsHalAudioV4_0TargetTest // Remove Mic from the available devices, the input tests should be skipped sed -i /item.*Built-In.Mic/d /vendor/etc/audio_policy_configuration.xml ! VtsHalAudioV4_0TargetTest --gtest_list_tests | grep Input VtsHalAudioV4_0TargetTest // Remove the primary hal, test should fail sed -i 's/"primary"/"notPrimary"/' /vendor/etc/audio_policy_configuration.xml ! VtsHalAudioV4_0TargetTest Bug: 114303641 Bug: 111681420 Change-Id: Ibc1c1dadd6bcad18f184ab8c3bc75216c9f66adb Signed-off-by: Kevin Rocard <krocard@google.com>
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions