diff --git a/system/bta/dm/bta_dm_act.cc b/system/bta/dm/bta_dm_act.cc index d2e0bd76a2f7b1bc259b02a9389c7d7e31797d34..f9fa7e1230b2eb31ec2faaecbb3128d582bb80ad 100644 --- a/system/bta/dm/bta_dm_act.cc +++ b/system/bta/dm/bta_dm_act.cc @@ -4069,6 +4069,20 @@ void bta_dm_le_rand(LeRandCallback cb) { bluetooth::shim::BTM_LeRand(cb); } +/******************************************************************************* + * + * Function BTA_DmSetDefaultEventMask + * + * Description Floss: Set the default event mask for Classic and LE + * + * Parameters + * + *******************************************************************************/ +void bta_dm_set_default_event_mask() { + // Autoplumbed + bluetooth::shim::BTM_SetDefaultEventMask(); +} + /******************************************************************************* * * Function BTA_DmSetEventFilterInquiryResultAllDevices diff --git a/system/bta/dm/bta_dm_api.cc b/system/bta/dm/bta_dm_api.cc index f222b53a193208ff2cc54a86fed922d773c759f7..480151b9f48bcfeb561efff51c6f709e1c8241bb 100644 --- a/system/bta/dm/bta_dm_api.cc +++ b/system/bta/dm/bta_dm_api.cc @@ -699,6 +699,11 @@ void BTA_DmLeRand(LeRandCallback cb) { do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb)); } +void BTA_DmSetDefaultEventMask() { + APPL_TRACE_API("BTA_DmSetDefaultEventMask"); + do_in_main_thread(FROM_HERE, base::Bind(bta_dm_set_default_event_mask)); +} + void BTA_DmSetEventFilterInquiryResultAllDevices() { APPL_TRACE_API("BTA_DmSetEventFilterInquiryResultAllDevices"); do_in_main_thread( diff --git a/system/bta/dm/bta_dm_int.h b/system/bta/dm/bta_dm_int.h index 9d0e90aaba7f4d91c008b03b4e7052c626dab7a0..a80856e58c60ee59499900ac7c4543b41f17e11b 100644 --- a/system/bta/dm/bta_dm_int.h +++ b/system/bta/dm/bta_dm_int.h @@ -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_default_event_mask(); extern void bta_dm_set_event_filter_inquiry_result_all_devices(); uint8_t bta_dm_search_get_state(); diff --git a/system/bta/include/bta_api.h b/system/bta/include/bta_api.h index 175936788c42e50f40e9eed99b69a175ff61e604..c0d8a681a4aa7fce2736d44d2c02904260a9c582 100644 --- a/system/bta/include/bta_api.h +++ b/system/bta/include/bta_api.h @@ -1218,6 +1218,17 @@ using LeRandCallback = base::Callback<void(uint64_t)>; ******************************************************************************/ extern void BTA_DmLeRand(LeRandCallback cb); +/******************************************************************************* + * + * Function BTA_DmSetDefaultEventMask + * + * Description Floss: Set the default event mask for Classic and LE + * + * Parameters + * + *******************************************************************************/ +extern void BTA_DmSetDefaultEventMask(); + /******************************************************************************* * * Function BTA_DmSetEventFilterInquiryResultAllDevices