Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 965ff77e authored by Myles Watson's avatar Myles Watson Committed by Cherrypicker Worker
Browse files

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
(cherry picked from https://android-review.googlesource.com/q/commit:864c9048977fdd27f8aab8ec478833768d7514a3)
Merged-In: I48189896138da4efacbe1ce8e46f4267e956771f
Change-Id: I48189896138da4efacbe1ce8e46f4267e956771f
Bug: 350030122
parent 46fb601c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@
#include <android/binder_process.h>
#include <binder/IServiceManager.h>

#include <atomic>
#include <chrono>
#include <condition_variable>
#include <future>
@@ -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);
  }