commit | 7118c26d220fa2b010a154a18dc8308e12b3de6a | [log] [tgz] |
---|---|---|
author | Kuowei Li <kuowei.li@mediatek.com> | Tue Aug 10 17:55:02 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 10 17:55:02 2021 +0000 |
tree | f23ab23b5e32818141425697e720df467d7e5290 | |
parent | f68e7ee118021463fa5d9cb20b5d3450f3c21209 [diff] | |
parent | 9faa583bf37d6e3fbf50890a86eab2b2185a32a9 [diff] |
audio: Allow SetAudioProperties to not be supported am: 9faa583bf3 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15363188 Change-Id: I902be86aae3c8cd338abb0339e62ed9a522fdf30
diff --git a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h index aa7fd8e..340903a 100644 --- a/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h +++ b/audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h
@@ -1390,6 +1390,9 @@ config.channelMask.value(channelMask); auto ret = stream->setAudioProperties(config); EXPECT_TRUE(ret.isOk()); + if (ret == Result::NOT_SUPPORTED) { + GTEST_SKIP() << "setAudioProperties is not supported"; + } EXPECT_EQ(Result::OK, ret) << profile.format << "; " << sampleRate << "; " << channelMask; }