mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
audio VTS: Use the right device type in PcmOnlyConfigInputStreamTest am: 6de19308ab am: b7e3b73036 am: ed51d10840
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2367469 Change-Id: Ie77e0a69b431a5e619a9f6abb532806917701132 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -687,7 +687,12 @@ class PcmOnlyConfigInputStreamTest : public InputStreamTest {
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user