/packages/modules/Bluetooth/system/btif/include/ |
D | btif_storage.h | 73 const std::string& remote_bd_addr, int add, 118 const RawAddress* remote_bd_addr, bt_property_t* property); 132 const RawAddress* remote_bd_addr, bt_property_t* property); 159 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 174 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 188 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 232 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, 260 bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr); 352 bool btif_storage_is_restricted_device(const RawAddress* remote_bd_addr); 356 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, [all …]
|
D | btif_profile_storage.h | 48 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, 76 bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr); 171 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr); 183 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr); 194 void btif_storage_set_pce_profile_version(const RawAddress& remote_bd_addr, 208 bool btif_storage_is_pce_version_102(const RawAddress& remote_bd_addr);
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_storage.cc | 57 bool btif_storage_is_restricted_device(const RawAddress* remote_bd_addr) { in btif_storage_is_restricted_device() argument 61 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, in btif_storage_add_ble_bonding_key() argument 73 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, in btif_storage_add_bonded_device() argument 80 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, in btif_storage_add_hid_device_info() argument 87 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, in btif_storage_add_remote_device() argument 97 bt_status_t btif_storage_get_ble_bonding_key(const RawAddress& remote_bd_addr, in btif_storage_get_ble_bonding_key() argument 109 bt_status_t btif_storage_get_remote_addr_type(const RawAddress* remote_bd_addr, in btif_storage_get_remote_addr_type() argument 115 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_get_remote_device_property() argument 132 const RawAddress* remote_bd_addr) { in btif_storage_remove_ble_bonding_keys() argument 141 const RawAddress* remote_bd_addr) { in btif_storage_remove_bonded_device() argument [all …]
|
D | mock_stack_acl.h | 421 std::function<tBTM_STATUS(const RawAddress& remote_bd_addr, 423 body{[](const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) { 426 tBTM_STATUS operator()(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) { in operator() 427 return body(remote_bd_addr, p_role); in operator() 482 std::function<tBTM_STATUS(const RawAddress& remote_bd_addr)> body{ 483 [](const RawAddress& remote_bd_addr) { return 0; }}; 484 tBTM_STATUS operator()(const RawAddress& remote_bd_addr) { in operator() 485 return body(remote_bd_addr); in operator()
|
D | mock_stack_btm.cc | 71 .BTM_GetRole = [](const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) 80 .BTM_SwitchRoleToCentral = [](const RawAddress& remote_bd_addr) argument
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_storage.cc | 134 static int prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) { in prop2cfg() argument 136 if (remote_bd_addr) { in prop2cfg() 137 bdstr = remote_bd_addr->ToString(); in prop2cfg() 159 if (remote_bd_addr) { in prop2cfg() 239 static int cfg2prop(const RawAddress* remote_bd_addr, bt_property_t* prop) { in cfg2prop() argument 241 if (remote_bd_addr) { in cfg2prop() 242 bdstr = remote_bd_addr->ToString(); in cfg2prop() 258 if (remote_bd_addr) in cfg2prop() 757 const RawAddress* remote_bd_addr, bt_property_t* property) { in btif_storage_get_remote_device_property() argument 758 return cfg2prop(remote_bd_addr, property) ? BT_STATUS_SUCCESS in btif_storage_get_remote_device_property() [all …]
|
D | btif_profile_storage.cc | 120 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, in btif_storage_add_hid_device_info() argument 125 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_add_hid_device_info() 221 bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr) { in btif_storage_remove_hid_info() argument 222 std::string bdstr = remote_bd_addr.ToString(); in btif_storage_remove_hid_info() 1030 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr) { in btif_storage_set_hidd() argument 1031 std::string remote_device_address_string = remote_bd_addr.ToString(); in btif_storage_set_hidd() 1034 if (bd_addr == remote_bd_addr) continue; in btif_storage_set_hidd() 1053 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr) { in btif_storage_remove_hidd() argument 1054 btif_config_remove(remote_bd_addr->ToString(), "HidDeviceCabled"); in btif_storage_remove_hidd() 1067 void btif_storage_set_pce_profile_version(const RawAddress& remote_bd_addr, in btif_storage_set_pce_profile_version() argument [all …]
|
/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/stack/l2cap/ |
D | l2c_csm.cc | 104 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open() 218 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 222 btm_sec_l2cap_access_req(p_ccb->p_lcb->remote_bd_addr, in l2c_csm_closed() 230 btm_acl_notif_conn_collision(p_ccb->p_lcb->remote_bd_addr); in l2c_csm_closed() 246 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 249 if (!BTM_SetLinkPolicyActiveMode(p_ccb->p_lcb->remote_bd_addr)) { in l2c_csm_closed() 255 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, true, in l2c_csm_closed() 305 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, false, in l2c_csm_closed() 326 if (!BTM_SetLinkPolicyActiveMode(p_ccb->p_lcb->remote_bd_addr)) { in l2c_csm_closed() 330 auto status = btm_sec_l2cap_access_req(p_ccb->p_lcb->remote_bd_addr, in l2c_csm_closed() [all …]
|
D | l2c_ble.cc | 192 p_lcb->remote_bd_addr = identity_addr; in L2CA_Consolidate() 336 if (!BTM_IsAclConnectionUp(p_lcb->remote_bd_addr, BT_TRANSPORT_LE)) { in l2cble_start_conn_update() 337 LOG(ERROR) << "No known connection ACL for " << p_lcb->remote_bd_addr; in l2cble_start_conn_update() 344 btm_find_or_alloc_dev(p_lcb->remote_bd_addr); in l2cble_start_conn_update() 372 p_lcb->remote_bd_addr)) in l2cble_start_conn_update() 393 p_lcb->remote_bd_addr)) in l2cble_start_conn_update() 628 (*p_rcb->api.pL2CA_CreditBasedCollisionInd_Cb)(p_lcb->remote_bd_addr); in l2cble_process_sig_cmd() 1176 if (!acl_create_le_connection(p_lcb->remote_bd_addr)) { in l2cble_create_conn() 1400 BTM_SetBleDataLength(p_lcb->remote_bd_addr, tx_mtu); in l2cble_update_data_length() 1431 ADDRESS_TO_LOGGABLE_CSTR(p_lcb->remote_bd_addr), p_lcb->tx_data_len, in l2cble_process_data_length_change_event() [all …]
|
D | l2c_link.cc | 380 l2c_link_iot_store_disc_reason(p_lcb->remote_bd_addr, reason); in l2c_link_hci_disc_comp() 409 btm_sco_acl_removed(&p_lcb->remote_bd_addr); in l2c_link_hci_disc_comp() 441 xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, false, in l2c_link_hci_disc_comp() 602 ci.bd_addr = p_lcb->remote_bd_addr; in l2c_info_resp_timer_timeout() 876 if (BTM_ReadPowerMode(p_lcb->remote_bd_addr, &mode)) { in l2c_link_check_power_mode() 1082 acl_send_data_packet_br_edr(p_lcb->remote_bd_addr, p_buf); in l2c_link_send_to_lower_br_edr() 1099 acl_send_data_packet_ble(p_lcb->remote_bd_addr, p_buf); in l2c_link_send_to_lower_ble()
|
D | l2c_utils.cc | 69 p_lcb->remote_bd_addr = p_bd_addr; in l2cu_allocate_lcb() 165 BTM_RemoveSco(p_lcb->remote_bd_addr); in l2cu_release_lcb() 222 p_buf->p_callback(p_lcb->remote_bd_addr, p_lcb->transport, in l2cu_release_lcb() 248 (p_lcb->remote_bd_addr == p_bd_addr)) { in l2cu_find_lcb_by_bd_addr() 2094 if (BTM_IsScoActiveByBdaddr(p_lcb_cur->remote_bd_addr)) { in l2cu_create_conn_br_edr() 2111 if (BTM_SwitchRoleToCentral(p_lcb_cur->remote_bd_addr) == in l2cu_create_conn_br_edr() 2158 acl_create_classic_connection(p_lcb->remote_bd_addr, in l2cu_create_conn_after_switch() 2602 packet_size = BTM_GetMaxPacketSize(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps() 2808 channel_id, p_lcb->remote_bd_addr, true, 0, p_lcb->transport); in l2cu_process_fixed_chnl_resp() 2811 channel_id, p_lcb->remote_bd_addr, false, p_lcb->DisconnectReason(), in l2cu_process_fixed_chnl_resp() [all …]
|
D | l2c_main.cc | 109 l2cble_notify_le_connection(p_lcb->remote_bd_addr); in l2c_rcv_acl_data() 172 rcv_cid, p_lcb->remote_bd_addr, p_msg); in l2c_rcv_acl_data() 353 ci.bd_addr = p_lcb->remote_bd_addr; in process_l2cap_cmd() 808 ci.bd_addr = p_lcb->remote_bd_addr; in process_l2cap_cmd()
|
/packages/modules/Bluetooth/system/test/headless/ |
D | interface.h | 39 acl_state_changed_params_t(bt_status_t status, RawAddress remote_bd_addr, in acl_state_changed_params_t() 45 remote_bd_addr(remote_bd_addr), in acl_state_changed_params_t() 56 RawAddress remote_bd_addr; member 67 bt_status_text(status).c_str(), remote_bd_addr.ToString().c_str(), in ToString()
|
D | headless.cc | 121 void pin_request([[maybe_unused]] RawAddress* remote_bd_addr, in pin_request() argument 128 void ssp_request([[maybe_unused]] RawAddress* remote_bd_addr, in ssp_request() argument 139 [[maybe_unused]] RawAddress* remote_bd_addr, in bond_state_changed() argument 156 void acl_state_changed(bt_status_t status, RawAddress* remote_bd_addr, in acl_state_changed() argument 160 CHECK(remote_bd_addr != nullptr); in acl_state_changed() 164 RawAddress raw_address(*remote_bd_addr); in acl_state_changed() 174 remote_bd_addr->ToString().c_str(), in acl_state_changed()
|
/packages/modules/Bluetooth/system/tools/bdtool/ |
D | adapter.c | 63 void acl_state_changed(bt_status_t status, RawAddress* remote_bd_addr, in acl_state_changed() argument 155 void ssp_request(RawAddress* remote_bd_addr, bt_bdname_t* bd_name, uint32_t cod, in ssp_request() argument 181 bdaddr_to_string(remote_bd_addr, buf, sizeof(buf)), bd_name->name); in ssp_request() 185 int rc = bt_interface->ssp_reply(remote_bd_addr, pairing_variant, in ssp_request()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_act.cc | 133 static void bta_dm_discover_device(const RawAddress& remote_bd_addr); 226 static void bta_dm_reset_sec_dev_pending(const RawAddress& remote_bd_addr); 227 static void bta_dm_remove_sec_dev_entry(const RawAddress& remote_bd_addr); 1046 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_inq_cmpl() 1123 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in store_avrcp_profile_feature() 1130 ADDRESS_TO_LOGGABLE_CSTR(sdp_rec->remote_bd_addr)); in store_avrcp_profile_feature() 1164 if (btif_config_set_bin(sdp_rec->remote_bd_addr.ToString().c_str(), in bta_dm_store_audio_profiles_version() 1170 ADDRESS_TO_LOGGABLE_CSTR(sdp_rec->remote_bd_addr)); in bta_dm_store_audio_profiles_version() 1833 bta_dm_search_cb.p_btm_inq_info->results.remote_bd_addr); in bta_dm_discover_next_device() 1855 const RawAddress& remote_bd_addr) { in bta_dm_determine_discovery_transport() argument [all …]
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bluetooth.h | 500 typedef void (*pin_request_callback)(RawAddress* remote_bd_addr, 509 typedef void (*ssp_request_callback)(RawAddress* remote_bd_addr, 517 RawAddress* remote_bd_addr, 535 bt_status_t status, RawAddress* remote_bd_addr, bt_acl_state_t state, 914 void (*metadata_changed)(const RawAddress& remote_bd_addr, int key,
|
D | bt_bqr.h | 33 virtual void bqr_delivery_callback(const RawAddress remote_bd_addr,
|
/packages/modules/Bluetooth/system/test/suite/adapter/ |
D | bluetooth_test.cc | 61 RawAddress* remote_bd_addr, in RemoteDevicePropertiesCallback() argument 64 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 | 100 tBTM_STATUS (*BTM_GetRole)(const RawAddress& remote_bd_addr, 106 tBTM_STATUS (*BTM_SwitchRoleToCentral)(const RawAddress& remote_bd_addr);
|
/packages/modules/Bluetooth/system/stack/acl/ |
D | btm_acl.cc | 561 tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) { in BTM_GetRole() argument 568 internal_.btm_bda_to_acl(remote_bd_addr, BT_TRANSPORT_BR_EDR); in BTM_GetRole() 594 tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) { in BTM_SwitchRoleToCentral() argument 596 bluetooth::shim::L2CA_SwitchRoleToCentral(remote_bd_addr); in BTM_SwitchRoleToCentral() 605 internal_.btm_bda_to_acl(remote_bd_addr, BT_TRANSPORT_BR_EDR); in BTM_SwitchRoleToCentral() 616 if (interop_match_addr(INTEROP_DISABLE_ROLE_SWITCH, &remote_bd_addr)) { in BTM_SwitchRoleToCentral() 621 if (BTM_IsScoActiveByBdaddr(remote_bd_addr)) { in BTM_SwitchRoleToCentral() 631 if (interop_match_addr(INTEROP_DYNAMIC_ROLE_SWITCH, &remote_bd_addr)) { in BTM_SwitchRoleToCentral() 721 btm_cb.acl_cb_.switch_role_ref_data.remote_bd_addr, in btm_acl_encrypt_change() 1491 p_switch_role->remote_bd_addr = bd_addr; in btm_acl_role_changed()
|
/packages/modules/Bluetooth/system/btif/test/ |
D | btif_core_test.cc | 67 void pin_request_callback(RawAddress* remote_bd_addr, bt_bdname_t* bd_name, in pin_request_callback() argument 69 void ssp_request_callback(RawAddress* remote_bd_addr, bt_bdname_t* bd_name, in ssp_request_callback() argument 72 void bond_state_changed_callback(bt_status_t status, RawAddress* remote_bd_addr, in bond_state_changed_callback() argument 78 void acl_state_changed_callback(bt_status_t status, RawAddress* remote_bd_addr, in acl_state_changed_callback() argument
|