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

Commit 4060a309 authored by Martin Brabham's avatar Martin Brabham
Browse files

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

Bug: 224603536
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: I6dd4cfb9bff0a9c244f960b1f1748673c188d786
parent 687e10cb
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -4069,6 +4069,20 @@ void bta_dm_le_rand(LeRandCallback cb) {
  bluetooth::shim::BTM_LeRand(cb);
}

/*******************************************************************************
 *
 * Function        BTA_DmRestoreFilterAcceptList
 *
 * Description    Floss: Restore the state of the for the filter accept list
 *
 * Parameters
 *
 *******************************************************************************/
void bta_dm_restore_filter_accept_list() {
  // Autoplumbed
  bluetooth::shim::BTM_RestoreFilterAcceptList();
}

/*******************************************************************************
 *
 * Function        BTA_DmSetDefaultEventMask
+5 −0
Original line number Diff line number Diff line
@@ -699,6 +699,11 @@ void BTA_DmLeRand(LeRandCallback cb) {
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb));
}

void BTA_DmRestoreFilterAcceptList() {
  APPL_TRACE_API("BTA_DmRestoreFilterAcceptList");
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_restore_filter_accept_list));
}

void BTA_DmSetDefaultEventMask() {
  APPL_TRACE_API("BTA_DmSetDefaultEventMask");
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_set_default_event_mask));
+1 −0
Original line number Diff line number Diff line
@@ -549,6 +549,7 @@ extern void bta_dm_clear_event_mask(void);
extern void bta_dm_clear_filter_accept_list(void);
extern void bta_dm_disconnect_all_acls(void);
extern void bta_dm_le_rand(LeRandCallback cb);
extern void bta_dm_restore_filter_accept_list();
extern void bta_dm_set_default_event_mask();
extern void bta_dm_set_event_filter_inquiry_result_all_devices();

+11 −0
Original line number Diff line number Diff line
@@ -1218,6 +1218,17 @@ using LeRandCallback = base::Callback<void(uint64_t)>;
 ******************************************************************************/
extern void BTA_DmLeRand(LeRandCallback cb);

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

/*******************************************************************************
 *
 * Function        BTA_DmSetDefaultEventMask