diff --git a/system/main/shim/btm_api.cc b/system/main/shim/btm_api.cc index 8f7d59d1d81e34e947b97de713928d99c4cf5403..d2505c3fa03e44ffb4e657017d0f4dc8b44b2fdb 100644 --- a/system/main/shim/btm_api.cc +++ b/system/main/shim/btm_api.cc @@ -1359,6 +1359,12 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) { return BTM_SUCCESS; } +tBTM_STATUS bluetooth::shim::BTM_SetDefaultEventMask() { + // Autoplumbed + controller_get_interface()->set_default_event_mask(); + return BTM_SUCCESS; +} + tBTM_STATUS bluetooth::shim::BTM_SetEventFilterInquiryResultAllDevices() { // Autoplumbed controller_get_interface()->set_event_filter_inquiry_result_all_devices(); diff --git a/system/main/shim/btm_api.h b/system/main/shim/btm_api.h index 9ad1a4e05875a62eabdb49e73f7336f25e3b7e4a..f1544a9a36e67cff6f74a501ef8e08b7ccf1c313 100644 --- a/system/main/shim/btm_api.h +++ b/system/main/shim/btm_api.h @@ -1869,6 +1869,17 @@ tBTM_STATUS BTM_DisconnectAllAcls(void); using LeRandCallback = base::Callback<void(uint64_t)>; tBTM_STATUS BTM_LeRand(LeRandCallback); +/******************************************************************************* + * + * Function BTM_SetDefaultEventMask + * + * Description Floss: Set the default event mask for Classic and LE + * + * Parameters + * + *******************************************************************************/ +tBTM_STATUS BTM_SetDefaultEventMask(void); + /******************************************************************************* * * Function BTM_SetEventFilterInquiryResultAllDevices diff --git a/system/test/mock/mock_main_shim_btm_api.cc b/system/test/mock/mock_main_shim_btm_api.cc index 6f4f155bae83283278385f86cc3cc81393f55df2..4ac9d1fadaa3ded45e8fcd7099242b58cb775978 100644 --- a/system/test/mock/mock_main_shim_btm_api.cc +++ b/system/test/mock/mock_main_shim_btm_api.cc @@ -450,6 +450,11 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) { return BTM_SUCCESS; } +tBTM_STATUS bluetooth::shim::BTM_SetDefaultEventMask() { + mock_function_count_map[__func__]++; + return BTM_SUCCESS; +} + tBTM_STATUS bluetooth::shim::BTM_SetEventFilterInquiryResultAllDevices() { mock_function_count_map[__func__]++; return BTM_SUCCESS;