/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_storage.h | 74 std::function<bt_status_t(const std::string& remote_bd_addr, int add, 80 bt_status_t operator()(const std::string& remote_bd_addr, int add, in operator() 82 return body(remote_bd_addr, add, p_bonded_devices); in operator() 119 std::function<bt_status_t(RawAddress* remote_bd_addr, 125 bt_status_t operator()(RawAddress* remote_bd_addr, const uint8_t* key_value, in operator() 127 return body(remote_bd_addr, key_value, key_type, key_length); in operator() 152 std::function<bt_status_t(RawAddress* remote_bd_addr, LinkKey link_key, 157 bt_status_t operator()(RawAddress* remote_bd_addr, LinkKey link_key, in operator() 159 return body(remote_bd_addr, link_key, key_type, pin_length); in operator() 169 std::function<bt_status_t(const RawAddress* remote_bd_addr, [all …]
|
D | mock_btif_storage.cc | 132 const std::string& remote_bd_addr, int add, in btif_in_fetch_bonded_ble_device() argument 136 remote_bd_addr, add, p_bonded_devices); in btif_in_fetch_bonded_ble_device() 148 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, in btif_storage_add_ble_bonding_key() argument 154 remote_bd_addr, key_value, key_type, key_length); in btif_storage_add_ble_bonding_key() 162 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, in btif_storage_add_bonded_device() argument 167 remote_bd_addr, link_key, key_type, pin_length); in btif_storage_add_bonded_device() 169 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, in btif_storage_add_remote_device() argument 174 remote_bd_addr, num_properties, properties); in btif_storage_add_remote_device() 186 bt_status_t btif_storage_get_ble_bonding_key(const RawAddress& remote_bd_addr, in btif_storage_get_ble_bonding_key() argument 192 remote_bd_addr, key_type, key_value, key_length); in btif_storage_get_ble_bonding_key() [all …]
|
D | mock_btif_profile_storage.h | 210 std::function<bool(const RawAddress& remote_bd_addr)> body{ 212 bool operator()(const RawAddress& remote_bd_addr) { in operator() 213 return body(remote_bd_addr); in operator() 389 std::function<bt_status_t(RawAddress* remote_bd_addr)> body{ 391 bt_status_t operator()(RawAddress* remote_bd_addr) { in operator() 392 return body(remote_bd_addr); in operator() 435 std::function<bt_status_t(const RawAddress& remote_bd_addr)> body{ 437 bt_status_t operator()(const RawAddress& remote_bd_addr) { in operator() 438 return body(remote_bd_addr); in operator() 548 std::function<void(const RawAddress& remote_bd_addr, [all …]
|
D | mock_btif_profile_storage.cc | 187 bool btif_storage_is_pce_version_102(const RawAddress& remote_bd_addr) { in btif_storage_is_pce_version_102() argument 190 remote_bd_addr); in btif_storage_is_pce_version_102() 261 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr) { in btif_storage_remove_hidd() argument 264 remote_bd_addr); in btif_storage_remove_hidd() 280 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr) { in btif_storage_set_hidd() argument 283 remote_bd_addr); in btif_storage_set_hidd() 330 void btif_storage_set_pce_profile_version(const RawAddress& remote_bd_addr, in btif_storage_set_pce_profile_version() argument 334 remote_bd_addr, peer_pce_version); in btif_storage_set_pce_profile_version()
|
/packages/modules/Bluetooth/system/btif/include/ |
D | btif_storage.h | 72 const std::string& remote_bd_addr, int add, 117 const RawAddress* remote_bd_addr, bt_property_t* property); 131 const RawAddress* remote_bd_addr, bt_property_t* property); 145 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 160 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 174 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 341 bool btif_storage_is_restricted_device(const RawAddress* remote_bd_addr); 343 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, 347 bt_status_t btif_storage_get_ble_bonding_key(const RawAddress& remote_bd_addr, 355 const RawAddress* remote_bd_addr); [all …]
|
D | btif_profile_storage.h | 173 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr); 185 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr); 196 void btif_storage_set_pce_profile_version(const RawAddress& remote_bd_addr, 210 bool btif_storage_is_pce_version_102(const RawAddress& remote_bd_addr);
|
/packages/modules/Bluetooth/system/stack/test/common/ |
D | mock_btm_api_layer.h | 33 virtual uint8_t acl_link_role(const RawAddress& remote_bd_addr, 35 virtual bool IsEncrypted(const RawAddress& remote_bd_addr, 37 virtual bool IsLinkKeyKnown(const RawAddress& remote_bd_addr, 39 virtual uint8_t ReadSecKeySize(const RawAddress& remote_bd_addr) = 0; 49 MOCK_METHOD2(acl_link_role, uint8_t(const RawAddress& remote_bd_addr, 52 bool(const RawAddress& remote_bd_addr, tBT_TRANSPORT transport)); 54 bool(const RawAddress& remote_bd_addr, tBT_TRANSPORT transport)); 55 MOCK_METHOD1(ReadSecKeySize, uint8_t(const RawAddress& remote_bd_addr));
|
D | mock_btm_api_layer.cc | 35 bool BTM_IsEncrypted(const RawAddress& remote_bd_addr, in BTM_IsEncrypted() argument 37 return btm_api_interface->IsEncrypted(remote_bd_addr, transport); in BTM_IsEncrypted() 40 bool BTM_IsLinkKeyKnown(const RawAddress& remote_bd_addr, in BTM_IsLinkKeyKnown() argument 42 return btm_api_interface->IsLinkKeyKnown(remote_bd_addr, transport); in BTM_IsLinkKeyKnown()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_storage.cc | 115 static void btif_storage_set_mode(RawAddress* remote_bd_addr) { in btif_storage_set_mode() argument 116 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_set_mode() 118 log::info("{} will be removed exiting restricted mode", *remote_bd_addr); in btif_storage_set_mode() 123 static bool prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) { in prop2cfg() argument 125 if (remote_bd_addr) { in prop2cfg() 126 bdstr = remote_bd_addr->ToString(); in prop2cfg() 145 if (remote_bd_addr) { in prop2cfg() 228 static bool cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { in cfg2prop() argument 230 if (remote_bd_addr) { in cfg2prop() 231 bdstr = remote_bd_addr->ToString(); in cfg2prop() [all …]
|
D | btif_profile_storage.cc | 1153 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr) { in btif_storage_set_hidd() argument 1154 std::string remote_device_address_string = remote_bd_addr.ToString(); in btif_storage_set_hidd() 1157 if (bd_addr == remote_bd_addr) continue; in btif_storage_set_hidd() 1177 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr) { in btif_storage_remove_hidd() argument 1178 btif_config_remove(remote_bd_addr->ToString(), in btif_storage_remove_hidd() 1244 void btif_storage_set_pce_profile_version(const RawAddress& remote_bd_addr, in btif_storage_set_pce_profile_version() argument 1249 remote_bd_addr.ToString(), BTIF_STORAGE_KEY_PBAP_PCE_VERSION, in btif_storage_set_pce_profile_version() 1252 log::warn("Failed to store peer_pce_version for {}", remote_bd_addr); in btif_storage_set_pce_profile_version() 1266 bool btif_storage_is_pce_version_102(const RawAddress& remote_bd_addr) { in btif_storage_is_pce_version_102() argument 1271 if (!btif_config_get_bin(remote_bd_addr.ToString(), in btif_storage_is_pce_version_102() [all …]
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_ble_conn_params.cc | 172 log::debug("{} enable {} current upd state 0x{:02x}", p_lcb->remote_bd_addr, in l2c_enable_update_ble_conn_params() 202 if (!BTM_IsAclConnectionUp(p_lcb->remote_bd_addr, BT_TRANSPORT_LE)) { in l2cble_start_conn_update() 203 log::error("No known connection ACL for {}", p_lcb->remote_bd_addr); in l2cble_start_conn_update() 210 btm_find_or_alloc_dev(p_lcb->remote_bd_addr); in l2cble_start_conn_update() 238 p_lcb->remote_bd_addr))) { in l2cble_start_conn_update() 258 p_lcb->remote_bd_addr))) { in l2cble_start_conn_update() 365 if (!BTM_IsAclConnectionUp(p_lcb->remote_bd_addr, BT_TRANSPORT_LE)) { in l2cble_start_subrate_change() 366 log::error("No known connection ACL for {}", p_lcb->remote_bd_addr); in l2cble_start_subrate_change() 370 btm_find_or_alloc_dev(p_lcb->remote_bd_addr); in l2cble_start_subrate_change() 394 !acl_peer_supports_ble_connection_subrating(p_lcb->remote_bd_addr) || in l2cble_start_subrate_change() [all …]
|
D | l2c_csm.cc | 108 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open() 120 p_ccb->p_lcb->remote_bd_addr); in l2c_csm_indicate_connection_open() 232 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 236 btm_sec_l2cap_access_req(p_ccb->p_lcb->remote_bd_addr, in l2c_csm_closed() 244 btm_acl_notif_conn_collision(p_ccb->p_lcb->remote_bd_addr); in l2c_csm_closed() 260 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 263 if (!BTM_SetLinkPolicyActiveMode(p_ccb->p_lcb->remote_bd_addr)) { in l2c_csm_closed() 269 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, true, in l2c_csm_closed() 319 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, false, in l2c_csm_closed() 340 if (!BTM_SetLinkPolicyActiveMode(p_ccb->p_lcb->remote_bd_addr)) { in l2c_csm_closed() [all …]
|
D | l2c_ble.cc | 80 p_lcb->remote_bd_addr = identity_addr; in L2CA_Consolidate() 381 (*p_rcb->api.pL2CA_CreditBasedCollisionInd_Cb)(p_lcb->remote_bd_addr); in l2cble_process_sig_cmd() 915 if (!acl_create_le_connection(p_lcb->remote_bd_addr)) { in l2cble_create_conn() 1099 BTM_SetBleDataLength(p_lcb->remote_bd_addr, tx_mtu); in l2cble_update_data_length() 1131 p_lcb->remote_bd_addr, p_lcb->tx_data_len, tx_data_len); in l2cble_process_data_length_change_event() 1132 BTM_LogHistory(kBtmLogTag, p_lcb->remote_bd_addr, "LE Data length change", in l2cble_process_data_length_change_event() 1140 p_lcb->remote_bd_addr, tx_data_len); in l2cble_process_data_length_change_event() 1146 p_lcb->remote_bd_addr, tx_data_len); in l2cble_process_data_length_change_event()
|
D | l2c_link.cc | 324 l2c_link_iot_store_disc_reason(p_lcb->remote_bd_addr, reason); in l2c_link_hci_disc_comp() 353 btm_sco_acl_removed(&p_lcb->remote_bd_addr); in l2c_link_hci_disc_comp() 385 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp() 545 ci.bd_addr = p_lcb->remote_bd_addr; in l2c_info_resp_timer_timeout() 814 if (BTM_ReadPowerMode(p_lcb->remote_bd_addr, &mode)) { in l2c_link_check_power_mode() 1026 acl_send_data_packet_br_edr(p_lcb->remote_bd_addr, p_buf); in l2c_link_send_to_lower_br_edr() 1043 acl_send_data_packet_ble(p_lcb->remote_bd_addr, p_buf); in l2c_link_send_to_lower_ble()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_device_search.cc | 81 static void bta_dm_discover_name(const RawAddress& remote_bd_addr); 213 result.inq_res.bd_addr = p_inq->remote_bd_addr; in bta_dm_inq_results_cb() 238 get_btm_client_interface().db.BTM_InqDbRead(p_inq->remote_bd_addr); in bta_dm_inq_results_cb() 373 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_inq_cmpl() 499 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_discover_next_device() 507 const RawAddress& remote_bd_addr) { in bta_dm_determine_discovery_transport() argument 511 get_btm_client_interface().peer.BTM_ReadDevInfo(remote_bd_addr, &dev_type, in bta_dm_determine_discovery_transport() 517 remote_bd_addr, BT_TRANSPORT_BR_EDR)) { in bta_dm_determine_discovery_transport() 520 remote_bd_addr, BT_TRANSPORT_LE)) { in bta_dm_determine_discovery_transport() 527 static void bta_dm_discover_name(const RawAddress& remote_bd_addr) { in bta_dm_discover_name() argument [all …]
|
D | bta_dm_disc_legacy.cc | 107 static void bta_dm_discover_name(const RawAddress& remote_bd_addr); 108 static void bta_dm_discover_services(const RawAddress& remote_bd_addr); 475 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_inq_cmpl() 549 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in store_avrcp_profile_feature() 556 sdp_rec->remote_bd_addr); in store_avrcp_profile_feature() 591 sdp_rec->remote_bd_addr); in bta_dm_store_audio_profiles_version() 594 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in bta_dm_store_audio_profiles_version() 600 sdp_rec->remote_bd_addr); in bta_dm_store_audio_profiles_version() 1180 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_discover_next_device() 1196 const RawAddress& remote_bd_addr) { in bta_dm_determine_discovery_transport() argument [all …]
|
D | bta_dm_sec.cc | 59 static void bta_dm_remove_sec_dev_entry(const RawAddress& remote_bd_addr); 60 static void bta_dm_reset_sec_dev_pending(const RawAddress& remote_bd_addr); 532 static void bta_dm_reset_sec_dev_pending(const RawAddress& remote_bd_addr) { in bta_dm_reset_sec_dev_pending() argument 535 if (dev.peer_bdaddr == remote_bd_addr) { in bta_dm_reset_sec_dev_pending() 558 static void bta_dm_remove_sec_dev_entry(const RawAddress& remote_bd_addr) { in bta_dm_remove_sec_dev_entry() argument 559 if (get_btm_client_interface().peer.BTM_IsAclConnectionUp(remote_bd_addr, in bta_dm_remove_sec_dev_entry() 562 remote_bd_addr, BT_TRANSPORT_BR_EDR)) { in bta_dm_remove_sec_dev_entry() 564 remote_bd_addr); in bta_dm_remove_sec_dev_entry() 566 remote_bd_addr); in bta_dm_remove_sec_dev_entry() 569 if (dev.peer_bdaddr == remote_bd_addr) { in bta_dm_remove_sec_dev_entry() [all …]
|
D | bta_dm_disc_sdp.cc | 102 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in store_avrcp_profile_feature() 109 sdp_rec->remote_bd_addr); in store_avrcp_profile_feature() 144 sdp_rec->remote_bd_addr); in bta_dm_store_audio_profiles_version() 147 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in bta_dm_store_audio_profiles_version() 153 sdp_rec->remote_bd_addr); in bta_dm_store_audio_profiles_version()
|
/packages/modules/Bluetooth/system/test/headless/ |
D | headless.cc | 141 void pin_request([[maybe_unused]] RawAddress* remote_bd_addr, in pin_request() argument 148 void ssp_request([[maybe_unused]] RawAddress* remote_bd_addr, in ssp_request() argument 157 [[maybe_unused]] RawAddress* remote_bd_addr, in bond_state_changed() argument 174 void acl_state_changed(bt_status_t status, RawAddress* remote_bd_addr, in acl_state_changed() argument 178 log::assert_that(remote_bd_addr != nullptr, in acl_state_changed() 183 RawAddress raw_address(*remote_bd_addr); in acl_state_changed() 192 bt_status_text(status), remote_bd_addr->ToString(), in acl_state_changed()
|
D | interface.h | 122 acl_state_changed_params_t(bt_status_t status, RawAddress remote_bd_addr, in acl_state_changed_params_t() 128 remote_bd_addr(remote_bd_addr), in acl_state_changed_params_t() 139 RawAddress remote_bd_addr; member 150 bt_status_text(status), remote_bd_addr.ToString(), in ToString()
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bluetooth.h | 531 typedef void (*pin_request_callback)(RawAddress* remote_bd_addr, 540 typedef void (*ssp_request_callback)(RawAddress* remote_bd_addr, 547 RawAddress* remote_bd_addr, 565 bt_status_t status, RawAddress* remote_bd_addr, bt_acl_state_t state, 978 void (*metadata_changed)(const RawAddress& remote_bd_addr, int key,
|
/packages/modules/Bluetooth/system/stack/test/btm/ |
D | stack_btm_dm_inq_db_test.cc | 185 RawAddress exp = it->inq_info.results.remote_bd_addr; in TEST_F() 187 if (exp != it->inq_info.results.remote_bd_addr) { in TEST_F() 188 EXPECT_EQ(exp, it->inq_info.results.remote_bd_addr); in TEST_F()
|
/packages/modules/Bluetooth/system/test/suite/adapter/ |
D | bluetooth_test.cc | 60 RawAddress* remote_bd_addr, in RemoteDevicePropertiesCallback() argument 63 instance->curr_remote_device_ = *remote_bd_addr; in RemoteDevicePropertiesCallback()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | acl_api.h | 99 tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role); 117 tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr);
|
D | btm_client_interface.h | 82 [[nodiscard]] tBTM_STATUS (*BTM_GetRole)(const RawAddress& remote_bd_addr, 92 const RawAddress& remote_bd_addr);
|