Loading system/main/shim/btm_api.cc +9 −0 Original line number Diff line number Diff line Loading @@ -38,8 +38,10 @@ #include "main/shim/stack.h" #include "osi/include/allocator.h" #include "stack/btm/btm_int_types.h" #include "stack/btm/btm_sec.h" #include "stack/include/bt_hdr.h" #include "stack/include/bt_octets.h" #include "stack/include/hci_error_code.h" #include "types/ble_address_with_type.h" #include "types/bluetooth/uuid.h" #include "types/raw_address.h" Loading Loading @@ -1344,3 +1346,10 @@ tBTM_STATUS bluetooth::shim::BTM_ClearFilterAcceptList() { Stack::GetInstance()->GetAcl()->ClearAcceptList(); return BTM_SUCCESS; } tBTM_STATUS bluetooth::shim::BTM_DisconnectAllAcls() { for (uint16_t i = 0; i < 0xfffe; i++) { btm_sec_disconnect(i, HCI_SUCCESS, ""); } return BTM_SUCCESS; } system/main/shim/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -1843,6 +1843,17 @@ tBTM_STATUS BTM_ClearEventMask(void); ******************************************************************************/ tBTM_STATUS BTM_ClearFilterAcceptList(void); /******************************************************************************* * * Function BTM_DisconnectAllAcls * * Description Disconnects all of the ACL connections * * Returns Return btm status * ******************************************************************************/ tBTM_STATUS BTM_DisconnectAllAcls(void); /** * Send remote name request to GD shim Name module */ Loading system/test/mock/mock_main_shim_btm_api.cc +5 −0 Original line number Diff line number Diff line Loading @@ -439,3 +439,8 @@ tBTM_STATUS bluetooth::shim::BTM_ClearFilterAcceptList() { mock_function_count_map[__func__]++; return BTM_SUCCESS; } tBTM_STATUS bluetooth::shim::BTM_DisconnectAllAcls() { mock_function_count_map[__func__]++; return BTM_SUCCESS; } Loading
system/main/shim/btm_api.cc +9 −0 Original line number Diff line number Diff line Loading @@ -38,8 +38,10 @@ #include "main/shim/stack.h" #include "osi/include/allocator.h" #include "stack/btm/btm_int_types.h" #include "stack/btm/btm_sec.h" #include "stack/include/bt_hdr.h" #include "stack/include/bt_octets.h" #include "stack/include/hci_error_code.h" #include "types/ble_address_with_type.h" #include "types/bluetooth/uuid.h" #include "types/raw_address.h" Loading Loading @@ -1344,3 +1346,10 @@ tBTM_STATUS bluetooth::shim::BTM_ClearFilterAcceptList() { Stack::GetInstance()->GetAcl()->ClearAcceptList(); return BTM_SUCCESS; } tBTM_STATUS bluetooth::shim::BTM_DisconnectAllAcls() { for (uint16_t i = 0; i < 0xfffe; i++) { btm_sec_disconnect(i, HCI_SUCCESS, ""); } return BTM_SUCCESS; }
system/main/shim/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -1843,6 +1843,17 @@ tBTM_STATUS BTM_ClearEventMask(void); ******************************************************************************/ tBTM_STATUS BTM_ClearFilterAcceptList(void); /******************************************************************************* * * Function BTM_DisconnectAllAcls * * Description Disconnects all of the ACL connections * * Returns Return btm status * ******************************************************************************/ tBTM_STATUS BTM_DisconnectAllAcls(void); /** * Send remote name request to GD shim Name module */ Loading
system/test/mock/mock_main_shim_btm_api.cc +5 −0 Original line number Diff line number Diff line Loading @@ -439,3 +439,8 @@ tBTM_STATUS bluetooth::shim::BTM_ClearFilterAcceptList() { mock_function_count_map[__func__]++; return BTM_SUCCESS; } tBTM_STATUS bluetooth::shim::BTM_DisconnectAllAcls() { mock_function_count_map[__func__]++; return BTM_SUCCESS; }