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

Commit db21e975 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Set the event filter to inquiry result device all BTA API

Bug: 218496276
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: I92e27e61ca155e1c9cba97659246a9d8b9a7e188
parent 10af15cd
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_DmSetEventFilterInquiryResultAllDevices
 *
 * Description    Floss: Set the event filter to inquiry result device all
 *
 * Parameters
 *
 *******************************************************************************/
void bta_dm_set_event_filter_inquiry_result_all_devices() {
  // Autoplumbed
  bluetooth::shim::BTM_SetEventFilterInquiryResultAllDevices();
}

/*******************************************************************************
 *
 * Function         bta_dm_gattc_callback
+7 −0
Original line number Diff line number Diff line
@@ -698,3 +698,10 @@ void BTA_DmLeRand(LeRandCallback cb) {
  APPL_TRACE_API("BTA_DmLeRand");
  do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb));
}

void BTA_DmSetEventFilterInquiryResultAllDevices() {
  APPL_TRACE_API("BTA_DmSetEventFilterInquiryResultAllDevices");
  do_in_main_thread(
      FROM_HERE,
      base::Bind(bta_dm_set_event_filter_inquiry_result_all_devices));
}
+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_set_event_filter_inquiry_result_all_devices();

uint8_t bta_dm_search_get_state();
void bta_dm_search_set_state(uint8_t state);
+11 −0
Original line number Diff line number Diff line
@@ -1218,4 +1218,15 @@ using LeRandCallback = base::Callback<void(uint64_t)>;
 ******************************************************************************/
extern void BTA_DmLeRand(LeRandCallback cb);

/*******************************************************************************
 *
 * Function        BTA_DmSetEventFilterInquiryResultAllDevices
 *
 * Description    Floss: Set the event filter to inquiry result device all
 *
 * Parameters
 *
 *******************************************************************************/
extern void BTA_DmSetEventFilterInquiryResultAllDevices();

#endif /* BTA_API_H */