From 20a3e395bf61a216d26ef9403a856a85c1007003 Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Mon, 9 Mar 2020 23:31:29 +0000 Subject: [PATCH] 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 --- audio/core/all-versions/vts/functional/ConfigHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/core/all-versions/vts/functional/ConfigHelper.h b/audio/core/all-versions/vts/functional/ConfigHelper.h index a2f4116baa..8ef2b436bb 100644 --- a/audio/core/all-versions/vts/functional/ConfigHelper.h +++ b/audio/core/all-versions/vts/functional/ConfigHelper.h @@ -40,7 +40,7 @@ struct ConfigHelper { 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); }