Lines Matching refs:bd_addr

118   RawAddress bd_addr;  member
150 RawAddress bd_addr; member
184 RawAddress bd_addr; member
222 static void btif_dm_cb_create_bond(const RawAddress& bd_addr,
225 static void btif_update_remote_properties(const RawAddress& bd_addr,
241 static void btif_stats_add_bond_event(const RawAddress& bd_addr,
253 extern int btif_hh_connect(const RawAddress* bd_addr);
451 &p_search_data->inq_res.bd_addr, &prop_name) == BT_STATUS_SUCCESS) { in check_cached_remote_name()
542 static void bond_state_changed(bt_status_t status, const RawAddress& bd_addr, in bond_state_changed() argument
544 btif_stats_add_bond_event(bd_addr, BTIF_DM_FUNC_BOND_STATE_CHANGED, state); in bond_state_changed()
549 auto tmp = bd_addr; in bond_state_changed()
561 MetricIdAllocator::GetInstance().ForgetDevice(bd_addr); in bond_state_changed()
563 MetricIdAllocator::GetInstance().AllocateId(bd_addr); in bond_state_changed()
564 if (!MetricIdAllocator::GetInstance().SaveDevice(bd_addr)) { in bond_state_changed()
566 << bd_addr; in bond_state_changed()
569 auto tmp = bd_addr; in bond_state_changed()
573 if (!btif_get_device_type(bd_addr, &dev_type)) { in bond_state_changed()
581 pairing_cb.bd_addr = bd_addr; in bond_state_changed()
704 bond_state_changed(BT_STATUS_SUCCESS, pairing_cb.bd_addr, in btif_dm_cb_hid_remote_name()
707 bond_state_changed(BT_STATUS_FAIL, pairing_cb.bd_addr, in btif_dm_cb_hid_remote_name()
722 static void btif_dm_cb_create_bond(const RawAddress& bd_addr, in btif_dm_cb_create_bond() argument
724 bool is_hid = check_cod(&bd_addr, COD_HID_POINTING); in btif_dm_cb_create_bond()
725 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_cb_create_bond()
729 std::string addrstr = bd_addr.ToString(); in btif_dm_cb_create_bond()
735 if (btif_storage_get_remote_addr_type(&bd_addr, &addr_type) != in btif_dm_cb_create_bond()
741 BTM_ReadDevInfo(bd_addr, &tmp_dev_type, &tmp_addr_type); in btif_dm_cb_create_bond()
744 btif_storage_set_remote_addr_type(&bd_addr, addr_type); in btif_dm_cb_create_bond()
748 (btif_storage_get_remote_addr_type(&bd_addr, &addr_type) == in btif_dm_cb_create_bond()
752 BTA_DmAddBleDevice(bd_addr, addr_type, device_type); in btif_dm_cb_create_bond()
757 status = (bt_status_t)btif_hh_connect(&bd_addr); in btif_dm_cb_create_bond()
759 bond_state_changed(status, bd_addr, BT_BOND_STATE_NONE); in btif_dm_cb_create_bond()
761 BTA_DmBond(bd_addr, addr_type, transport, device_type); in btif_dm_cb_create_bond()
777 void btif_dm_cb_remove_bond(const RawAddress* bd_addr) { in btif_dm_cb_remove_bond() argument
783 if (btif_hh_virtual_unplug(bd_addr) != BT_STATUS_SUCCESS) in btif_dm_cb_remove_bond()
787 BTA_DmRemoveDevice(*bd_addr); in btif_dm_cb_remove_bond()
802 uint16_t btif_dm_get_connection_state(const RawAddress* bd_addr) { in btif_dm_get_connection_state() argument
803 uint16_t rc = BTA_DmGetConnectionState(*bd_addr); in btif_dm_get_connection_state()
808 BTM_GetSecurityFlagsByTransport(*bd_addr, &flags, BT_TRANSPORT_BR_EDR); in btif_dm_get_connection_state()
812 BTM_GetSecurityFlagsByTransport(*bd_addr, &flags, BT_TRANSPORT_LE); in btif_dm_get_connection_state()
905 if (!btif_get_device_type(p_pin_req->bd_addr, &dev_type)) { in btif_dm_pin_req_evt()
908 btif_update_remote_properties(p_pin_req->bd_addr, p_pin_req->bd_name, in btif_dm_pin_req_evt()
912 const RawAddress& bd_addr = p_pin_req->bd_addr; in btif_dm_pin_req_evt() local
916 bd_addr != pairing_cb.bd_addr) { in btif_dm_pin_req_evt()
919 btif_dm_pin_reply(&bd_addr, 0, 0, NULL); in btif_dm_pin_req_evt()
923 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_pin_req_evt()
935 if (check_cod(&bd_addr, COD_AV_HEADSETS) || in btif_dm_pin_req_evt()
936 check_cod(&bd_addr, COD_AV_HEADPHONES) || in btif_dm_pin_req_evt()
937 check_cod(&bd_addr, COD_AV_PORTABLE_AUDIO) || in btif_dm_pin_req_evt()
938 check_cod(&bd_addr, COD_AV_HIFI_AUDIO) || in btif_dm_pin_req_evt()
939 check_cod(&bd_addr, COD_HID_POINTING)) { in btif_dm_pin_req_evt()
941 if (!interop_match_addr(INTEROP_DISABLE_AUTO_PAIRING, &bd_addr) && in btif_dm_pin_req_evt()
952 BTA_DmPinReply(bd_addr, true, 4, pin_code.pin); in btif_dm_pin_req_evt()
955 } else if (check_cod(&bd_addr, COD_HID_KEYBOARD) || in btif_dm_pin_req_evt()
956 check_cod(&bd_addr, COD_HID_COMBO)) { in btif_dm_pin_req_evt()
957 if ((interop_match_addr(INTEROP_KEYBOARD_REQUIRES_FIXED_PIN, &bd_addr) == in btif_dm_pin_req_evt()
967 BTA_DmPinReply(bd_addr, true, 4, pin_code.pin); in btif_dm_pin_req_evt()
973 auto tmp = bd_addr; in btif_dm_pin_req_evt()
996 if (!btif_get_device_type(p_ssp_cfm_req->bd_addr, &dev_type)) { in btif_dm_ssp_cfm_req_evt()
999 btif_update_remote_properties(p_ssp_cfm_req->bd_addr, p_ssp_cfm_req->bd_name, in btif_dm_ssp_cfm_req_evt()
1003 RawAddress bd_addr = p_ssp_cfm_req->bd_addr; in btif_dm_ssp_cfm_req_evt() local
1007 bd_addr != pairing_cb.bd_addr) { in btif_dm_ssp_cfm_req_evt()
1010 btif_dm_ssp_reply(&bd_addr, BT_SSP_VARIANT_PASSKEY_CONFIRMATION, 0, 0); in btif_dm_ssp_cfm_req_evt()
1016 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ssp_cfm_req_evt()
1026 !(check_cod((RawAddress*)&p_ssp_cfm_req->bd_addr, COD_HID_POINTING))) in btif_dm_ssp_cfm_req_evt()
1031 btm_set_bond_type_dev(p_ssp_cfm_req->bd_addr, pairing_cb.bond_type); in btif_dm_ssp_cfm_req_evt()
1043 btif_dm_ssp_reply(&bd_addr, BT_SSP_VARIANT_CONSENT, true, 0); in btif_dm_ssp_cfm_req_evt()
1056 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod, in btif_dm_ssp_cfm_req_evt()
1070 if (!btif_get_device_type(p_ssp_key_notif->bd_addr, &dev_type)) { in btif_dm_ssp_key_notif_evt()
1074 p_ssp_key_notif->bd_addr, p_ssp_key_notif->bd_name, in btif_dm_ssp_key_notif_evt()
1077 RawAddress bd_addr = p_ssp_key_notif->bd_addr; in btif_dm_ssp_key_notif_evt() local
1080 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ssp_key_notif_evt()
1089 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod, in btif_dm_ssp_key_notif_evt()
1111 RawAddress bd_addr = p_auth_cmpl->bd_addr; in btif_dm_auth_cmpl_evt() local
1121 ret = btif_storage_add_bonded_device(&bd_addr, p_auth_cmpl->key, in btif_dm_auth_cmpl_evt()
1132 btif_storage_remove_bonded_device(&bd_addr); in btif_dm_auth_cmpl_evt()
1133 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_NONE); in btif_dm_auth_cmpl_evt()
1147 if (p_auth_cmpl->bd_addr != pairing_cb.bd_addr && in btif_dm_auth_cmpl_evt()
1151 << p_auth_cmpl->bd_addr; in btif_dm_auth_cmpl_evt()
1155 btif_storage_set_remote_addr_type(&bd_addr, p_auth_cmpl->addr_type); in btif_dm_auth_cmpl_evt()
1156 btif_update_remote_properties(p_auth_cmpl->bd_addr, p_auth_cmpl->bd_name, in btif_dm_auth_cmpl_evt()
1161 bd_addr = p_auth_cmpl->bd_addr; in btif_dm_auth_cmpl_evt()
1163 if (check_sdp_bl(&bd_addr) && check_cod_hid(&bd_addr)) { in btif_dm_auth_cmpl_evt()
1168 bond_state_changed(status, bd_addr, state); in btif_dm_auth_cmpl_evt()
1180 &bd_addr, 1, &prop); in btif_dm_auth_cmpl_evt()
1185 p_auth_cmpl->bd_addr != pairing_cb.bd_addr) { in btif_dm_auth_cmpl_evt()
1189 pairing_cb.static_bdaddr = bd_addr; in btif_dm_auth_cmpl_evt()
1204 __func__, bd_addr.ToString().c_str()); in btif_dm_auth_cmpl_evt()
1205 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_auth_cmpl_evt()
1207 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDED); in btif_dm_auth_cmpl_evt()
1209 btif_dm_get_remote_services(bd_addr); in btif_dm_auth_cmpl_evt()
1220 if (interop_match_addr(INTEROP_AUTO_RETRY_PAIRING, &bd_addr) && in btif_dm_auth_cmpl_evt()
1225 btif_dm_cb_create_bond(bd_addr, BTA_TRANSPORT_UNKNOWN); in btif_dm_auth_cmpl_evt()
1235 (btif_storage_remove_bonded_device(&bd_addr) == BT_STATUS_SUCCESS); in btif_dm_auth_cmpl_evt()
1243 (btif_storage_remove_bonded_device(&bd_addr) == BT_STATUS_SUCCESS); in btif_dm_auth_cmpl_evt()
1258 btif_dm_cb_create_bond(bd_addr, BTA_TRANSPORT_UNKNOWN); in btif_dm_auth_cmpl_evt()
1270 if (check_cod(&bd_addr, COD_HID_POINTING)) { in btif_dm_auth_cmpl_evt()
1275 (btif_storage_remove_bonded_device(&bd_addr) == BT_STATUS_SUCCESS); in btif_dm_auth_cmpl_evt()
1280 bond_state_changed(status, bd_addr, state); in btif_dm_auth_cmpl_evt()
1309 RawAddress& bdaddr = p_search_data->disc_res.bd_addr; in btif_dm_search_devices_evt()
1328 RawAddress& bdaddr = p_search_data->inq_res.bd_addr; in btif_dm_search_devices_evt()
1471 RawAddress& bd_addr = p_data->disc_res.bd_addr; in btif_dm_search_services_evt() local
1482 btif_dm_get_remote_services(bd_addr); in btif_dm_search_services_evt()
1505 (p_data->disc_res.bd_addr == pairing_cb.bd_addr || in btif_dm_search_services_evt()
1506 p_data->disc_res.bd_addr == pairing_cb.static_bdaddr)) { in btif_dm_search_services_evt()
1508 bd_addr.ToString().c_str()); in btif_dm_search_services_evt()
1520 __func__, bd_addr.ToString().c_str()); in btif_dm_search_services_evt()
1530 BT_STATUS_SUCCESS, &bd_addr, 1, &prop); in btif_dm_search_services_evt()
1537 ret = btif_storage_set_remote_device_property(&bd_addr, &prop); in btif_dm_search_services_evt()
1542 &bd_addr, 1, &prop); in btif_dm_search_services_evt()
1566 RawAddress& bd_addr = p_data->disc_ble_res.bd_addr; in btif_dm_search_services_evt() local
1572 ret = btif_storage_set_remote_device_property(&bd_addr, &prop[0]); in btif_dm_search_services_evt()
1584 ret = btif_storage_set_remote_device_property(&bd_addr, &prop[1]); in btif_dm_search_services_evt()
1592 &bd_addr, num_properties, prop); in btif_dm_search_services_evt()
1619 RawAddress& bd_addr = p_data->disc_res.bd_addr; in btif_dm_remote_service_record_evt() local
1635 &bd_addr, 1, &prop); in btif_dm_remote_service_record_evt()
1657 RawAddress bd_addr; in btif_dm_upstreams_evt() local
1729 bd_addr = pairing_cb.bd_addr; in btif_dm_upstreams_evt()
1730 btm_set_bond_type_dev(pairing_cb.bd_addr, BOND_TYPE_UNKNOWN); in btif_dm_upstreams_evt()
1732 bd_addr, BT_BOND_STATE_NONE); in btif_dm_upstreams_evt()
1744 bd_addr = p_data->link_down.bd_addr; in btif_dm_upstreams_evt()
1745 btm_set_bond_type_dev(p_data->link_down.bd_addr, BOND_TYPE_UNKNOWN); in btif_dm_upstreams_evt()
1749 btif_hh_remove_device(bd_addr); in btif_dm_upstreams_evt()
1752 btif_hd_remove_device(bd_addr); in btif_dm_upstreams_evt()
1754 btif_hearing_aid_get_interface()->RemoveDevice(bd_addr); in btif_dm_upstreams_evt()
1755 btif_storage_remove_bonded_device(&bd_addr); in btif_dm_upstreams_evt()
1756 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_NONE); in btif_dm_upstreams_evt()
1776 bd_addr = p_data->link_up.bd_addr; in btif_dm_upstreams_evt()
1779 btif_update_remote_version_property(&bd_addr); in btif_dm_upstreams_evt()
1782 &bd_addr, BT_ACL_STATE_CONNECTED); in btif_dm_upstreams_evt()
1786 bd_addr = p_data->link_down.bd_addr; in btif_dm_upstreams_evt()
1787 btm_set_bond_type_dev(p_data->link_down.bd_addr, BOND_TYPE_UNKNOWN); in btif_dm_upstreams_evt()
1788 btif_av_acl_disconnected(bd_addr); in btif_dm_upstreams_evt()
1792 &bd_addr, BT_ACL_STATE_DISCONNECTED); in btif_dm_upstreams_evt()
1817 bond_state_changed(BT_STATUS_SUCCESS, p_data->ble_key.bd_addr, in btif_dm_upstreams_evt()
1819 } else if (pairing_cb.bd_addr != p_data->ble_key.bd_addr) { in btif_dm_upstreams_evt()
2295 bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport) { in btif_dm_create_bond() argument
2298 create_bond_cb.bdaddr = *bd_addr; in btif_dm_create_bond()
2301 bd_addr->ToString().c_str(), transport); in btif_dm_create_bond()
2304 btif_stats_add_bond_event(*bd_addr, BTIF_DM_FUNC_CREATE_BOND, in btif_dm_create_bond()
2325 const RawAddress* bd_addr, int transport, in btif_dm_create_bond_out_of_band() argument
2327 oob_cb.bdaddr = *bd_addr; in btif_dm_create_bond_out_of_band()
2339 BTM_SecAddBleDevice(*bd_addr, NULL, BT_DEVICE_TYPE_BLE, address_type); in btif_dm_create_bond_out_of_band()
2344 bd_addr->ToString().c_str(), transport); in btif_dm_create_bond_out_of_band()
2345 return btif_dm_create_bond(bd_addr, transport); in btif_dm_create_bond_out_of_band()
2358 bt_status_t btif_dm_cancel_bond(const RawAddress* bd_addr) { in btif_dm_cancel_bond() argument
2359 BTIF_TRACE_EVENT("%s: bd_addr=%s", __func__, bd_addr->ToString().c_str()); in btif_dm_cancel_bond()
2361 btif_stats_add_bond_event(*bd_addr, BTIF_DM_FUNC_CANCEL_BOND, in btif_dm_cancel_bond()
2371 BTA_DmBleSecurityGrant(*bd_addr, BTA_DM_SEC_PAIR_NOT_SPT); in btif_dm_cancel_bond()
2373 BTA_DmConfirm(*bd_addr, false); in btif_dm_cancel_bond()
2374 BTA_DmBondCancel(*bd_addr); in btif_dm_cancel_bond()
2375 btif_storage_remove_bonded_device(bd_addr); in btif_dm_cancel_bond()
2379 BTA_DmBondCancel(*bd_addr); in btif_dm_cancel_bond()
2381 BTA_DmPinReply(*bd_addr, false, 0, NULL); in btif_dm_cancel_bond()
2384 BTA_DmBondCancel(*bd_addr); in btif_dm_cancel_bond()
2404 *bdaddr == pairing_cb.bd_addr) { in btif_dm_hh_open_failed()
2419 bt_status_t btif_dm_remove_bond(const RawAddress* bd_addr) { in btif_dm_remove_bond() argument
2420 BTIF_TRACE_EVENT("%s: bd_addr=%s", __func__, bd_addr->ToString().c_str()); in btif_dm_remove_bond()
2422 btif_stats_add_bond_event(*bd_addr, BTIF_DM_FUNC_REMOVE_BOND, in btif_dm_remove_bond()
2426 (char*)bd_addr, sizeof(RawAddress), NULL); in btif_dm_remove_bond()
2441 bt_status_t btif_dm_pin_reply(const RawAddress* bd_addr, uint8_t accept, in btif_dm_pin_reply() argument
2453 BTM_ReadDevInfo(*bd_addr, &tmp_dev_type, &tmp_addr_type); in btif_dm_pin_reply()
2455 …do_in_main_thread(FROM_HERE, base::Bind(&bluetooth::shim::BTIF_DM_pin_reply, *bd_addr, tmp_addr_ty… in btif_dm_pin_reply()
2468 BTA_DmBlePasskeyReply(*bd_addr, accept, passkey); in btif_dm_pin_reply()
2471 BTA_DmPinReply(*bd_addr, accept, pin_len, pin_code->pin); in btif_dm_pin_reply()
2487 bt_status_t btif_dm_ssp_reply(const RawAddress* bd_addr, in btif_dm_ssp_reply() argument
2493 BTM_ReadDevInfo(*bd_addr, &tmp_dev_type, &tmp_addr_type); in btif_dm_ssp_reply()
2497 base::Bind(&bluetooth::shim::BTIF_DM_ssp_reply, *bd_addr, tmp_addr_type, variant, accept)); in btif_dm_ssp_reply()
2512 BTA_DmBleConfirmReply(*bd_addr, accept); in btif_dm_ssp_reply()
2515 BTA_DmBleSecurityGrant(*bd_addr, BTA_DM_SEC_GRANTED); in btif_dm_ssp_reply()
2517 BTA_DmBleSecurityGrant(*bd_addr, BTA_DM_SEC_PAIR_NOT_SPT); in btif_dm_ssp_reply()
2520 BTA_DmConfirm(*bd_addr, accept); in btif_dm_ssp_reply()
2669 void btif_dm_proc_io_req(UNUSED_ATTR const RawAddress& bd_addr, in btif_dm_proc_io_req() argument
2706 void btif_dm_proc_io_rsp(UNUSED_ATTR const RawAddress& bd_addr, in btif_dm_proc_io_rsp() argument
2725 void btif_dm_set_oob_for_le_io_req(const RawAddress& bd_addr, in btif_dm_set_oob_for_le_io_req() argument
2733 if (bd_addr == oob_cb.bdaddr) { in btif_dm_set_oob_for_le_io_req()
2745 if (bd_addr == oob_cb.bdaddr) { in btif_dm_set_oob_for_le_io_req()
2871 bool btif_dm_proc_rmt_oob(const RawAddress& bd_addr, Octet16* p_c, in btif_dm_proc_rmt_oob() argument
2899 RawAddress bt_bd_addr = bd_addr; in btif_dm_proc_rmt_oob()
2907 RawAddress bd_addr; in btif_dm_ble_key_notif_evt() local
2915 if (!btif_get_device_type(p_ssp_key_notif->bd_addr, &dev_type)) { in btif_dm_ble_key_notif_evt()
2918 btif_dm_update_ble_remote_properties(p_ssp_key_notif->bd_addr, in btif_dm_ble_key_notif_evt()
2921 bd_addr = p_ssp_key_notif->bd_addr; in btif_dm_ble_key_notif_evt()
2924 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_key_notif_evt()
2928 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod, in btif_dm_ble_key_notif_evt()
2946 RawAddress bd_addr = p_auth_cmpl->bd_addr; in btif_dm_ble_auth_cmpl_evt() local
2958 RawAddress bdaddr = p_auth_cmpl->bd_addr; in btif_dm_ble_auth_cmpl_evt()
2964 if (btm_get_bond_type_dev(p_auth_cmpl->bd_addr) == BOND_TYPE_TEMPORARY) { in btif_dm_ble_auth_cmpl_evt()
2971 btif_dm_get_remote_services_by_transport(&bd_addr, GATT_TRANSPORT_LE); in btif_dm_ble_auth_cmpl_evt()
2984 if (btm_sec_is_a_bonded_dev(bd_addr)) { in btif_dm_ble_auth_cmpl_evt()
2985 LOG(INFO) << __func__ << " Bonded device addr=" << bd_addr in btif_dm_ble_auth_cmpl_evt()
3006 bd_addr != pairing_cb.static_bdaddr) { in btif_dm_ble_auth_cmpl_evt()
3008 bond_state_changed(status, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_auth_cmpl_evt()
3010 bond_state_changed(status, bd_addr, state); in btif_dm_ble_auth_cmpl_evt()
3052 void btif_dm_save_ble_bonding_keys(RawAddress& bd_addr) { in btif_dm_save_ble_bonding_keys() argument
3057 &bd_addr, (uint8_t*)&pairing_cb.ble.penc_key, BTIF_DM_LE_KEY_PENC, in btif_dm_save_ble_bonding_keys()
3063 &bd_addr, (uint8_t*)&pairing_cb.ble.pid_key, BTIF_DM_LE_KEY_PID, in btif_dm_save_ble_bonding_keys()
3069 &bd_addr, (uint8_t*)&pairing_cb.ble.pcsrk_key, BTIF_DM_LE_KEY_PCSRK, in btif_dm_save_ble_bonding_keys()
3075 &bd_addr, (uint8_t*)&pairing_cb.ble.lenc_key, BTIF_DM_LE_KEY_LENC, in btif_dm_save_ble_bonding_keys()
3081 &bd_addr, (uint8_t*)&pairing_cb.ble.lcsrk_key, BTIF_DM_LE_KEY_LCSRK, in btif_dm_save_ble_bonding_keys()
3086 btif_storage_add_ble_bonding_key(&bd_addr, NULL, BTIF_DM_LE_KEY_LID, 0); in btif_dm_save_ble_bonding_keys()
3093 RawAddress bd_addr = pairing_cb.bd_addr; in btif_dm_remove_ble_bonding_keys() local
3094 btif_storage_remove_ble_bonding_keys(&bd_addr); in btif_dm_remove_ble_bonding_keys()
3119 if (!btif_get_device_type(p_ble_req->bd_addr, &dev_type)) { in btif_dm_ble_sec_req_evt()
3122 btif_dm_update_ble_remote_properties(p_ble_req->bd_addr, p_ble_req->bd_name, in btif_dm_ble_sec_req_evt()
3125 RawAddress bd_addr = p_ble_req->bd_addr; in btif_dm_ble_sec_req_evt() local
3128 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_sec_req_evt()
3134 btm_set_bond_type_dev(p_ble_req->bd_addr, pairing_cb.bond_type); in btif_dm_ble_sec_req_evt()
3138 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod, in btif_dm_ble_sec_req_evt()
3157 if (!btif_get_device_type(p_pin_req->bd_addr, &dev_type)) { in btif_dm_ble_passkey_req_evt()
3160 btif_dm_update_ble_remote_properties(p_pin_req->bd_addr, p_pin_req->bd_name, in btif_dm_ble_passkey_req_evt()
3163 RawAddress bd_addr = p_pin_req->bd_addr; in btif_dm_ble_passkey_req_evt() local
3166 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_passkey_req_evt()
3171 HAL_CBACK(bt_hal_cbacks, pin_request_cb, &bd_addr, &bd_name, cod, false); in btif_dm_ble_passkey_req_evt()
3178 btif_update_remote_properties(p_notif_req->bd_addr, p_notif_req->bd_name, in btif_dm_ble_key_nc_req_evt()
3181 RawAddress bd_addr = p_notif_req->bd_addr; in btif_dm_ble_key_nc_req_evt() local
3186 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_key_nc_req_evt()
3191 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, COD_UNCLASSIFIED, in btif_dm_ble_key_nc_req_evt()
3198 RawAddress bd_addr = req_oob_type->bd_addr; in btif_dm_ble_oob_req_evt() local
3208 if (req_oob_type->bd_addr != oob_cb.bdaddr) { in btif_dm_ble_oob_req_evt()
3215 btif_update_remote_properties(req_oob_type->bd_addr, req_oob_type->bd_name, in btif_dm_ble_oob_req_evt()
3218 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_oob_req_evt()
3223 BTM_BleOobDataReply(req_oob_type->bd_addr, 0, 16, oob_cb.oob_data.sm_tk); in btif_dm_ble_oob_req_evt()
3229 RawAddress bd_addr = req_oob_type->bd_addr; in btif_dm_ble_sc_oob_req_evt() local
3242 if (req_oob_type->bd_addr != oob_cb.bdaddr) { in btif_dm_ble_sc_oob_req_evt()
3249 btif_update_remote_properties(req_oob_type->bd_addr, req_oob_type->bd_name, in btif_dm_ble_sc_oob_req_evt()
3252 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING); in btif_dm_ble_sc_oob_req_evt()
3259 req_oob_type->bd_addr, oob_cb.oob_data.le_sc_c, oob_cb.oob_data.le_sc_r); in btif_dm_ble_sc_oob_req_evt()
3262 void btif_dm_update_ble_remote_properties(const RawAddress& bd_addr, in btif_dm_update_ble_remote_properties() argument
3265 btif_update_remote_properties(bd_addr, bd_name, NULL, dev_type); in btif_dm_update_ble_remote_properties()
3316 btif_dm_cancel_bond(&pairing_cb.bd_addr); in btif_dm_on_disable()
3346 static void btif_stats_add_bond_event(const RawAddress& bd_addr, in btif_stats_add_bond_event() argument
3352 event->bd_addr = bd_addr; in btif_stats_add_bond_event()
3366 btif_get_device_type(bd_addr, &type); in btif_stats_add_bond_event()
3384 uint32_t cod = get_cod(&bd_addr); in btif_stats_add_bond_event()
3443 event->bd_addr.ToString().c_str(), func_name, bond_state); in btif_debug_bond_event_dump()