commit | a5287fb7a3aeb89c3a652589fc59c706ad4146ef | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Wed Jan 25 19:34:01 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jan 25 19:34:01 2023 +0000 |
tree | ebaa81925c39abb5d5d3962abe7b4a21d247396d | |
parent | c5353bf7cefbc592c25df16a09d90a611e9b4a21 [diff] | |
parent | b7e3b73036bf4a3af9f92047b552b9a3dcad031a [diff] |
audio VTS: Use the right device type in PcmOnlyConfigInputStreamTest am: 6de19308ab am: b7e3b73036 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2367469 Change-Id: I5dc603c6e218caf23a5a58f6d44076e7edbd09b3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/audio/core/all-versions/vts/functional/7.0/AudioPrimaryHidlHalTest.cpp b/audio/core/all-versions/vts/functional/7.0/AudioPrimaryHidlHalTest.cpp index 505c54c..95564e0 100644 --- a/audio/core/all-versions/vts/functional/7.0/AudioPrimaryHidlHalTest.cpp +++ b/audio/core/all-versions/vts/functional/7.0/AudioPrimaryHidlHalTest.cpp
@@ -687,7 +687,12 @@ InputStreamTest::TearDown(); } - bool canQueryCapturePosition() const { return !xsd::isTelephonyDevice(address.deviceType); } + bool canQueryCapturePosition() const { + // See b/263305254 and b/259636577. Must use the device initially passed in + // as a parameter, not 'address' which gets adjusted during test setup for + // the telephony case. + return !xsd::isTelephonyDevice(getAttachedDeviceAddress().deviceType); + } void createPatchIfNeeded() { if (areAudioPatchesSupported()) {