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

Commit 687e10cb authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Restore the state of the for the filter accept list BTM API

Bug: 223832309
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: Ie638437076b635d111affcaa226f1b60018c822a
parent db10906d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,12 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) {
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_RestoreFilterAcceptList() {
  LOG_ERROR("%s: TODO(230604670): Figure out what address for A2DP Connected Resume", __func__);
  // TODO(230604670): Figure out what address for A2DP Connected Resume
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetDefaultEventMask() {
  // Autoplumbed
  controller_get_interface()->set_default_event_mask();
+11 −0
Original line number Diff line number Diff line
@@ -1869,6 +1869,17 @@ tBTM_STATUS BTM_DisconnectAllAcls(void);
using LeRandCallback = base::Callback<void(uint64_t)>;
tBTM_STATUS BTM_LeRand(LeRandCallback);

/*******************************************************************************
 *
 * Function        BTM_RestoreFilterAcceptList
 *
 * Description    Floss: Restore the state of the for the filter accept list
 *
 * Parameters
 *
 *******************************************************************************/
tBTM_STATUS BTM_RestoreFilterAcceptList(void);

/*******************************************************************************
 *
 * Function        BTM_SetDefaultEventMask
+5 −0
Original line number Diff line number Diff line
@@ -450,6 +450,11 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) {
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_RestoreFilterAcceptList() {
  mock_function_count_map[__func__]++;
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetDefaultEventMask() {
  mock_function_count_map[__func__]++;
  return BTM_SUCCESS;