Loading system/stack/acl/btm_acl.cc +13 −0 Original line number Diff line number Diff line Loading @@ -2329,6 +2329,13 @@ void BTM_ReadConnectionAddr(const RawAddress& remote_bda, return bluetooth::shim::BTM_ReadConnectionAddr(remote_bda, local_conn_addr, p_addr_type); } if (bluetooth::shim::is_gd_l2cap_enabled()) { bluetooth::shim::L2CA_ReadConnectionAddr(remote_bda, local_conn_addr, p_addr_type); return; } tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_LE); if (p_acl == NULL) { Loading Loading @@ -2485,6 +2492,12 @@ bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, return bluetooth::shim::BTM_ReadRemoteConnectionAddr(pseudo_addr, conn_addr, p_addr_type); } if (bluetooth::shim::is_gd_l2cap_enabled()) { return bluetooth::shim::L2CA_ReadRemoteConnectionAddr( pseudo_addr, conn_addr, p_addr_type); } bool st = true; tACL_CONN* p_acl = internal_.btm_bda_to_acl(pseudo_addr, BT_TRANSPORT_LE); Loading system/stack/test/common/mock_main_shim_l2c_api.cc +11 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,17 @@ bool bluetooth::shim::L2CA_IsLeLink(uint16_t) { mock_function_count_map[__func__]++; return false; } void bluetooth::shim::L2CA_ReadConnectionAddr(const RawAddress& pseudo_addr, RawAddress& conn_addr, uint8_t* p_addr_type) { mock_function_count_map[__func__]++; } bool bluetooth::shim::L2CA_ReadRemoteConnectionAddr( const RawAddress& pseudo_addr, RawAddress& conn_addr, uint8_t* p_addr_type) { mock_function_count_map[__func__]++; return false; } bool bluetooth::shim::L2CA_ReconfigCreditBasedConnsReq( const RawAddress& bd_addr, std::vector<uint16_t>& lcids, tL2CAP_LE_CFG_INFO* p_cfg) { Loading Loading
system/stack/acl/btm_acl.cc +13 −0 Original line number Diff line number Diff line Loading @@ -2329,6 +2329,13 @@ void BTM_ReadConnectionAddr(const RawAddress& remote_bda, return bluetooth::shim::BTM_ReadConnectionAddr(remote_bda, local_conn_addr, p_addr_type); } if (bluetooth::shim::is_gd_l2cap_enabled()) { bluetooth::shim::L2CA_ReadConnectionAddr(remote_bda, local_conn_addr, p_addr_type); return; } tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_LE); if (p_acl == NULL) { Loading Loading @@ -2485,6 +2492,12 @@ bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, return bluetooth::shim::BTM_ReadRemoteConnectionAddr(pseudo_addr, conn_addr, p_addr_type); } if (bluetooth::shim::is_gd_l2cap_enabled()) { return bluetooth::shim::L2CA_ReadRemoteConnectionAddr( pseudo_addr, conn_addr, p_addr_type); } bool st = true; tACL_CONN* p_acl = internal_.btm_bda_to_acl(pseudo_addr, BT_TRANSPORT_LE); Loading
system/stack/test/common/mock_main_shim_l2c_api.cc +11 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,17 @@ bool bluetooth::shim::L2CA_IsLeLink(uint16_t) { mock_function_count_map[__func__]++; return false; } void bluetooth::shim::L2CA_ReadConnectionAddr(const RawAddress& pseudo_addr, RawAddress& conn_addr, uint8_t* p_addr_type) { mock_function_count_map[__func__]++; } bool bluetooth::shim::L2CA_ReadRemoteConnectionAddr( const RawAddress& pseudo_addr, RawAddress& conn_addr, uint8_t* p_addr_type) { mock_function_count_map[__func__]++; return false; } bool bluetooth::shim::L2CA_ReconfigCreditBasedConnsReq( const RawAddress& bd_addr, std::vector<uint16_t>& lcids, tL2CAP_LE_CFG_INFO* p_cfg) { Loading