commit | d24ab2ba3a52466a60e566592f6c20b4f8908444 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Mon Mar 09 23:31:29 2020 +0000 |
committer | Mikhail Naganov <mnaganov@google.com> | Tue Mar 10 15:36:43 2020 -0700 |
tree | 0cf87bf878175d238eb52831e58fc51ef996b49a | |
parent | db3e1cb76790be1e4fc76748fa6208ffbf2f0395 [diff] |
Update audio VTS source code to match the change in AudioPolicyConfig Use getInputDevices instead of getAvailableInputDevices. Bug: 149854039 Test: atest VtsHalAudioV5_0TargetTest Change-Id: I0fed71eba8d031465ef98da2bf6be16c2fbfb5ff Merged-In: I0fed71eba8d031465ef98da2bf6be16c2fbfb5ff
diff --git a/audio/core/all-versions/vts/functional/ConfigHelper.h b/audio/core/all-versions/vts/functional/ConfigHelper.h index a2f4116..8ef2b43 100644 --- a/audio/core/all-versions/vts/functional/ConfigHelper.h +++ b/audio/core/all-versions/vts/functional/ConfigHelper.h
@@ -40,7 +40,7 @@ return devs.getDevice(AUDIO_DEVICE_IN_BUILTIN_MIC, {}, AUDIO_FORMAT_DEFAULT); }; auto primaryMic = getMic(policyConfig.getPrimaryModule()->getDeclaredDevices()); - auto availableMic = getMic(policyConfig.getAvailableInputDevices()); + auto availableMic = getMic(policyConfig.getInputDevices()); return primaryMic != nullptr && primaryMic->equals(availableMic); }