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

Commit 8f5c3109 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Tell the controller to allow all devices BTA API

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


/*******************************************************************************
 *
 * Function        BTA_DmSetEventFilterConnectionSetupAllDevices
 *
 * Description    Tell the controller to allow all devices
 *
 * Parameters
 *
 *******************************************************************************/
void bta_dm_set_event_filter_connection_setup_all_devices() {
  // Autoplumbed
  bluetooth::shim::BTM_SetEventFilterConnectionSetupAllDevices();
}

/*******************************************************************************
/*******************************************************************************
 *
 *
 * Function        BTA_DmAllowWakeByHid
 * Function        BTA_DmAllowWakeByHid
+7 −0
Original line number Original line Diff line number Diff line
@@ -690,6 +690,13 @@ void BTA_DmLeRand(LeRandCallback cb) {
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb));
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb));
}
}


void BTA_DmSetEventFilterConnectionSetupAllDevices() {
  APPL_TRACE_API("BTA_DmSetEventFilterConnectionSetupAllDevices");
  do_in_main_thread(
      FROM_HERE,
      base::Bind(bta_dm_set_event_filter_connection_setup_all_devices));
}

void BTA_DmAllowWakeByHid() {
void BTA_DmAllowWakeByHid() {
  APPL_TRACE_API("BTA_DmAllowWakeByHid");
  APPL_TRACE_API("BTA_DmAllowWakeByHid");
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_allow_wake_by_hid));
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_allow_wake_by_hid));
+1 −0
Original line number Original line Diff line number Diff line
@@ -546,6 +546,7 @@ extern void bta_dm_clear_event_mask(void);
extern void bta_dm_clear_filter_accept_list(void);
extern void bta_dm_clear_filter_accept_list(void);
extern void bta_dm_disconnect_all_acls(void);
extern void bta_dm_disconnect_all_acls(void);
extern void bta_dm_le_rand(LeRandCallback cb);
extern void bta_dm_le_rand(LeRandCallback cb);
extern void bta_dm_set_event_filter_connection_setup_all_devices();
extern void bta_dm_allow_wake_by_hid();
extern void bta_dm_allow_wake_by_hid();
extern void bta_dm_restore_filter_accept_list();
extern void bta_dm_restore_filter_accept_list();
extern void bta_dm_set_default_event_mask();
extern void bta_dm_set_default_event_mask();
+11 −0
Original line number Original line Diff line number Diff line
@@ -1223,6 +1223,17 @@ using LeRandCallback = base::Callback<void(uint64_t)>;
 ******************************************************************************/
 ******************************************************************************/
extern void BTA_DmLeRand(LeRandCallback cb);
extern void BTA_DmLeRand(LeRandCallback cb);


/*******************************************************************************
 *
 * Function        BTA_DmSetEventFilterConnectionSetupAllDevices
 *
 * Description    Tell the controller to allow all devices
 *
 * Parameters
 *
 *******************************************************************************/
extern void BTA_DmSetEventFilterConnectionSetupAllDevices();

/*******************************************************************************
/*******************************************************************************
 *
 *
 * Function        BTA_DmAllowWakeByHid
 * Function        BTA_DmAllowWakeByHid