audio: Restrict the new VTS test for effects to T+ am: 978a0f9ea0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19531023 Change-Id: I39798c9c133a9cbf8e36d085b40bc2ab9203e29e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1ac4ee14fa
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <common/all-versions/VersionUtils.h>
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <hidl/GtestPrinter.h>
|
||||
#include <hidl/ServiceManagement.h>
|
||||
|
@ -625,6 +626,10 @@ TEST_P(AudioEffectHidlTest, GetParameter) {
|
|||
|
||||
TEST_P(AudioEffectHidlTest, GetParameterInvalidMaxReplySize) {
|
||||
description("Verify that GetParameter caps the maximum reply size");
|
||||
const bool isNewDeviceLaunchingOnTPlus = property_get_int32("ro.vendor.api_level", 0) >= 33;
|
||||
if (!isNewDeviceLaunchingOnTPlus) {
|
||||
GTEST_SKIP() << "The test only applies to devices launching on T or later";
|
||||
}
|
||||
// Use a non-empty parameter to avoid being rejected by any earlier checks.
|
||||
hidl_vec<uint8_t> parameter;
|
||||
parameter.resize(16);
|
||||
|
|
Loading…
Reference in a new issue