commit | 9ee709c323c013533a2b533a8d45ebe6709b7797 | [log] [tgz] |
---|---|---|
author | Kuowei Li <kuowei.li@mediatek.com> | Fri Jul 23 21:44:07 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jul 23 21:44:07 2021 +0000 |
tree | dcaa2404c0c69e9af383ffcdaed7d983030c522a | |
parent | 4c60ab14894ea3a40d1ed0a0949176f9d5a183b2 [diff] | |
parent | 2950416a760f6c9340df8311b6f8c254dd5a27f4 [diff] |
audio: Allow SetAudioProperties to not be supported am: de829572f9 am: 4f21be2965 am: 2950416a76 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1762588 Change-Id: Ice1083c4c6e5f5f924880f3464d961b5687fc2d2
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; }