Loading system/stack/acl/ble_acl.cc +1 −6 Original line number Diff line number Diff line Loading @@ -127,12 +127,7 @@ void acl_ble_enhanced_connection_complete_from_shim( uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout, const RawAddress& local_rpa, const RawAddress& peer_rpa, tBLE_ADDR_TYPE peer_addr_type) { if (!connection_manager::remove_unconditional_from_shim( address_with_type.bda)) { LOG_WARN( "Unable to remove from legacy connection manager accept list addr:%s", PRIVATE_ADDRESS(address_with_type.bda)); } connection_manager::on_connection_complete(address_with_type.bda); tBLE_BD_ADDR resolved_address_with_type; const bool is_in_security_db = maybe_resolve_received_address( Loading system/stack/gatt/connection_manager.cc +0 −11 Original line number Diff line number Diff line Loading @@ -135,17 +135,6 @@ bool remove_unconditional(const RawAddress& address) { return true; } /** Removes the registrations for connection for given device. * but does not change the controller acceptlist. Used for * shim purposes. * Returns true if anything was removed, false otherwise */ bool remove_unconditional_from_shim(const RawAddress& address) { auto it = bgconn_dev.find(address); if (it == bgconn_dev.end()) return false; bgconn_dev.erase(it); return true; } /** Remove device from the background connection device list or listening to * advertising list. Returns true if device was on the list and was succesfully * removed */ Loading system/stack/gatt/connection_manager.h +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address); extern bool background_connect_remove(tAPP_ID app_id, const RawAddress& address); extern bool remove_unconditional(const RawAddress& address); extern bool remove_unconditional_from_shim(const RawAddress& address); extern void reset(bool after_reset); Loading system/test/mock/mock_stack_gatt_connection_manager.cc +0 −5 Original line number Diff line number Diff line Loading @@ -71,11 +71,6 @@ bool connection_manager::remove_unconditional(const RawAddress& address) { mock_function_count_map[__func__]++; return false; } bool connection_manager::remove_unconditional_from_shim( const RawAddress& address) { mock_function_count_map[__func__]++; return false; } std::set<tAPP_ID> connection_manager::get_apps_connecting_to( const RawAddress& address) { mock_function_count_map[__func__]++; Loading Loading
system/stack/acl/ble_acl.cc +1 −6 Original line number Diff line number Diff line Loading @@ -127,12 +127,7 @@ void acl_ble_enhanced_connection_complete_from_shim( uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout, const RawAddress& local_rpa, const RawAddress& peer_rpa, tBLE_ADDR_TYPE peer_addr_type) { if (!connection_manager::remove_unconditional_from_shim( address_with_type.bda)) { LOG_WARN( "Unable to remove from legacy connection manager accept list addr:%s", PRIVATE_ADDRESS(address_with_type.bda)); } connection_manager::on_connection_complete(address_with_type.bda); tBLE_BD_ADDR resolved_address_with_type; const bool is_in_security_db = maybe_resolve_received_address( Loading
system/stack/gatt/connection_manager.cc +0 −11 Original line number Diff line number Diff line Loading @@ -135,17 +135,6 @@ bool remove_unconditional(const RawAddress& address) { return true; } /** Removes the registrations for connection for given device. * but does not change the controller acceptlist. Used for * shim purposes. * Returns true if anything was removed, false otherwise */ bool remove_unconditional_from_shim(const RawAddress& address) { auto it = bgconn_dev.find(address); if (it == bgconn_dev.end()) return false; bgconn_dev.erase(it); return true; } /** Remove device from the background connection device list or listening to * advertising list. Returns true if device was on the list and was succesfully * removed */ Loading
system/stack/gatt/connection_manager.h +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address); extern bool background_connect_remove(tAPP_ID app_id, const RawAddress& address); extern bool remove_unconditional(const RawAddress& address); extern bool remove_unconditional_from_shim(const RawAddress& address); extern void reset(bool after_reset); Loading
system/test/mock/mock_stack_gatt_connection_manager.cc +0 −5 Original line number Diff line number Diff line Loading @@ -71,11 +71,6 @@ bool connection_manager::remove_unconditional(const RawAddress& address) { mock_function_count_map[__func__]++; return false; } bool connection_manager::remove_unconditional_from_shim( const RawAddress& address) { mock_function_count_map[__func__]++; return false; } std::set<tAPP_ID> connection_manager::get_apps_connecting_to( const RawAddress& address) { mock_function_count_map[__func__]++; Loading