From 864c9048977fdd27f8aab8ec478833768d7514a3 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 24 Jul 2024 14:39:05 -0700 Subject: [PATCH] VtsBluetooth: Update advertising set requirements The requirements for advertising sets are the same in the published VSR requirements for TV and other Android devices, so there should be no difference in the test. Bug: 353619486 Test: mma -j32 Change-Id: I48189896138da4efacbe1ce8e46f4267e956771f --- bluetooth/aidl/vts/VtsHalBluetoothTargetTest.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bluetooth/aidl/vts/VtsHalBluetoothTargetTest.cpp b/bluetooth/aidl/vts/VtsHalBluetoothTargetTest.cpp index aaf436f4aa..dcb5fac53c 100644 --- a/bluetooth/aidl/vts/VtsHalBluetoothTargetTest.cpp +++ b/bluetooth/aidl/vts/VtsHalBluetoothTargetTest.cpp @@ -27,7 +27,6 @@ #include #include -#include #include #include #include @@ -68,8 +67,8 @@ using ::bluetooth::hci::PacketView; using ::bluetooth::hci::ReadLocalVersionInformationBuilder; using ::bluetooth::hci::ReadLocalVersionInformationCompleteView; -static constexpr uint8_t kMinLeAdvSetForBt5 = 16; -static constexpr uint8_t kMinLeAdvSetForBt5FoTv = 10; +static constexpr uint8_t kMinLeAdvSetForBt5 = 10; +static constexpr uint8_t kMinLeAdvSetForBt5ForTv = 10; static constexpr uint8_t kMinLeResolvingListForBt5 = 8; static constexpr size_t kNumHciCommandsBandwidth = 100; @@ -1036,7 +1035,7 @@ TEST_P(BluetoothAidlTest, Vsr_Bluetooth5Requirements) { auto num_adv_set = num_adv_set_view.GetNumberSupportedAdvertisingSets(); if (isTv() && get_vsr_api_level() == __ANDROID_API_U__) { - ASSERT_GE(num_adv_set, kMinLeAdvSetForBt5FoTv); + ASSERT_GE(num_adv_set, kMinLeAdvSetForBt5ForTv); } else { ASSERT_GE(num_adv_set, kMinLeAdvSetForBt5); }