/system/bt/service/ |
D | low_energy_client.cc | 56 RawAddress bda; in Connect() local 57 RawAddress::FromString(address, bda); in Connect() 61 client_id_, bda, is_direct, BT_TRANSPORT_LE, false, PHY_LE_1M_MASK); in Connect() 73 RawAddress bda; in Disconnect() local 74 RawAddress::FromString(address, bda); in Disconnect() 79 conn_id = connection_ids_.find(bda); in Disconnect() 88 client_id_, bda, conn_id->second); in Disconnect() 100 RawAddress bda; in SetMtu() local 101 RawAddress::FromString(address, bda); in SetMtu() 106 conn_id = connection_ids_.find(bda); in SetMtu() [all …]
|
D | gatt_server.cc | 245 int connected, const RawAddress& bda) { in ConnectionCallback() argument 250 std::string device_address = BtAddrString(&bda); in ConnectionCallback() 285 std::shared_ptr<Connection> connection(new Connection(conn_id, bda)); in ConnectionCallback() 337 const RawAddress& bda, int attribute_handle, int offset, bool is_long) { in RequestReadCharacteristicCallback() argument 342 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadCharacteristicCallback() 345 std::string device_address = BtAddrString(&bda); in RequestReadCharacteristicCallback() 370 const RawAddress& bda, int attribute_handle, int offset, bool is_long) { in RequestReadDescriptorCallback() argument 375 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadDescriptorCallback() 378 std::string device_address = BtAddrString(&bda); in RequestReadDescriptorCallback() 404 const RawAddress& bda, int attr_handle, int offset, bool need_rsp, in RequestWriteCharacteristicCallback() argument [all …]
|
D | gatt_server.h | 197 const RawAddress& bda) override; 206 const RawAddress& bda, int attribute_handle, int offset, 210 const RawAddress& bda, 215 const RawAddress& bda, int attr_handle, int offset, bool need_rsp, 219 const RawAddress& bda, int attr_handle, 224 const RawAddress& bda, int exec_write) override; 236 std::shared_ptr<Connection> GetConnection(int conn_id, const RawAddress& bda,
|
D | gatt_server_old.cc | 207 void RequestReadCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestReadCallback() argument 227 std::string addr(BtAddrString(&bda)); in RequestReadCallback() 250 void RequestWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestWriteCallback() argument 253 std::string addr(BtAddrString(&bda)); in RequestWriteCallback() 306 void RequestExecWriteCallback(int conn_id, int trans_id, const RawAddress& bda, in RequestExecWriteCallback() argument 308 std::string addr(BtAddrString(&bda)); in RequestExecWriteCallback() 331 const RawAddress& bda) { in ConnectionCallback() argument 332 std::string addr(BtAddrString(&bda)); in ConnectionCallback() 375 RawAddress* bda, uint8_t ble_primary_phy, in ScanResultCallback() argument 380 std::string addr(BtAddrString(bda)); in ScanResultCallback() [all …]
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.cc | 180 const RawAddress& bda, int rssi, std::vector<uint8_t> adv_data) { in NotifyScanResultCallback() argument 182 ScanResultCallback(this, bda, rssi, adv_data)); in NotifyScanResultCallback() 193 const RawAddress& bda) { in NotifyConnectCallback() argument 195 ConnectCallback(this, conn_id, status, client_if, bda)); in NotifyConnectCallback() 199 int conn_id, int status, int client_if, const RawAddress& bda) { in NotifyDisconnectCallback() argument 201 DisconnectCallback(this, conn_id, status, client_if, bda)); in NotifyDisconnectCallback() 211 int conn_id, int server_if, int connected, const RawAddress& bda) { in NotifyServerConnectionCallback() argument 214 ConnectionCallback(this, conn_id, server_if, connected, bda)); in NotifyServerConnectionCallback() 224 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadCharacteristicCallback() argument 228 RequestReadCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestReadCharacteristicCallback() [all …]
|
D | fake_bluetooth_gatt_interface.h | 81 void NotifyScanResultCallback(const RawAddress& bda, int rssi, 88 const RawAddress& bda); 90 const RawAddress& bda); 96 const RawAddress& bda); 107 const RawAddress& bda, 111 const RawAddress& bda, 115 const RawAddress& bda, 120 const RawAddress& bda, 125 const RawAddress& bda, int exec_write);
|
D | bluetooth_gatt_interface.h | 56 BluetoothGattInterface* gatt_iface, const RawAddress& bda, int rssi, 74 const RawAddress& bda); 78 const RawAddress& bda); 127 const RawAddress& bda); 143 const RawAddress& bda, int attr_handle, int offset, bool is_long); 147 const RawAddress& bda, int attr_handle, int offset, bool is_long); 151 const RawAddress& bda, int attr_handle, int offset, bool need_rsp, 157 const RawAddress& bda, int attr_handle, int offset, bool need_rsp, 163 const RawAddress& bda,
|
D | bluetooth_gatt_interface.cc | 92 uint16_t ble_evt_type, uint8_t addr_type, RawAddress* bda, in ScanResultCallback() argument 99 CHECK(bda); in ScanResultCallback() 101 VLOG(2) << __func__ << " - BD_ADDR: " << BtAddrString(bda) in ScanResultCallback() 104 ScanResultCallback(g_interface, *bda, rssi, adv_data)); in ScanResultCallback() 108 const RawAddress& bda) { in ConnectCallback() argument 113 << " - BD_ADDR: " << BtAddrString(&bda) << " - conn_id: " << conn_id; in ConnectCallback() 116 ConnectCallback(g_interface, conn_id, status, client_if, bda)); in ConnectCallback() 120 const RawAddress& bda) { in DisconnectCallback() argument 126 << " - BD_ADDR: " << BtAddrString(&bda); in DisconnectCallback() 128 DisconnectCallback(g_interface, conn_id, status, client_if, bda)); in DisconnectCallback() [all …]
|
/system/bt/btif/src/ |
D | btif_profile_queue.cc | 51 RawAddress bda; member 85 __func__, p_param->uuid, p_param->bda.ToString().c_str(), in queue_int_add() 93 __func__, p_param->uuid, p_param->bda.ToString().c_str(), p_param->busy); in queue_int_add() 104 __func__, p_head->uuid, p_head->bda.ToString().c_str(), in queue_int_advance() 129 connection_request->bda.ToString().c_str(), in queue_int_cleanup() 165 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda, in btif_queue_connect() argument 169 node.bda = *bda; in btif_queue_connect() 215 __func__, p_head->uuid, p_head->bda.ToString().c_str(), in btif_queue_connect_next() 222 return p_head->connect_cb(&p_head->bda, p_head->uuid); in btif_queue_connect_next()
|
D | btif_debug_conn.cc | 32 RawAddress bda; member 66 void btif_debug_conn_state(const RawAddress& bda, in btif_debug_conn_state() argument 75 evt->bda = bda; in btif_debug_conn_state() 90 format_state(evt->state), evt->bda.ToString().c_str()); in btif_debug_conn_dump()
|
D | btif_hd.cc | 179 RawAddress* addr = (RawAddress*)&p_data->reg_status.bda; in btif_hd_upstreams_evt() 202 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() 215 btif_storage_set_hidd((RawAddress*)&p_data->conn.bda); in btif_hd_upstreams_evt() 218 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_CONNECTED); in btif_hd_upstreams_evt() 223 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() 230 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt() 255 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt() 256 if (bta_dm_check_if_only_hd_connected(p_data->conn.bda)) { in btif_hd_upstreams_evt() 259 BTA_DmRemoveDevice(p_data->conn.bda); in btif_hd_upstreams_evt() 261 RawAddress* bd_addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt() [all …]
|
/system/bt/btif/co/ |
D | bta_gatts_co.cc | 63 void btif_gatts_add_bonded_dev_from_nv(const RawAddress& bda) { in btif_gatts_add_bonded_dev_from_nv() argument 71 if (p_cb->srv_chg[i].bda == bda) { in btif_gatts_add_bonded_dev_from_nv() 79 p_cb->srv_chg[p_cb->num_clients].bda = bda; in btif_gatts_add_bonded_dev_from_nv()
|
/system/bt/stack/btm/ |
D | btm_int.h | 58 extern void btm_process_remote_name(const RawAddress* bda, BD_NAME name, 79 extern void btm_acl_created(const RawAddress& bda, DEV_CLASS dc, BD_NAME bdn, 82 extern void btm_acl_removed(const RawAddress& bda, tBT_TRANSPORT transport); 130 extern tACL_CONN* btm_bda_to_acl(const RawAddress& bda, 132 extern bool btm_acl_notif_conn_collision(const RawAddress& bda); 158 extern void btm_sco_connected(uint8_t hci_status, const RawAddress* bda, 163 extern void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class, 166 extern void btm_sco_acl_removed(const RawAddress* bda); 169 extern void btm_remove_sco_links(const RawAddress& bda); 232 extern void btm_sec_conn_req(const RawAddress& bda, uint8_t* dc); [all …]
|
D | btm_ble_gap.cc | 148 uint16_t evt_type, uint8_t addr_type, const RawAddress& bda, 820 if ((p_dev_rec = btm_find_or_alloc_dev(p_cb->direct_bda.bda)) != NULL && in btm_set_conn_mode_adv_init_addr() 836 p_peer_addr_ptr = p_cb->direct_bda.bda; in btm_set_conn_mode_adv_init_addr() 915 p_cb->direct_bda.bda = p_dir_bda; in BTM_BleSetAdvParams() 1435 void btm_ble_read_remote_name_cmpl(bool status, const RawAddress& bda, in btm_ble_read_remote_name_cmpl() argument 1450 btm_process_remote_name(&bda, bd_name, length + 1, hci_status); in btm_ble_read_remote_name_cmpl() 1451 btm_sec_rmt_name_request_complete(&bda, (uint8_t*)p_name, hci_status); in btm_ble_read_remote_name_cmpl() 1565 uint8_t btm_ble_is_discoverable(const RawAddress& bda, in btm_ble_is_discoverable() argument 1577 bda != p_cond->filter_cond.bdaddr_cond) { in btm_ble_is_discoverable() 1733 const RawAddress& bda, uint16_t evt_type, in btm_ble_update_inq_result() argument [all …]
|
D | btm_sco.cc | 125 const RawAddress& bda, 139 btsnd_hcic_reject_conn(bda, hci_status); 141 btsnd_hcic_reject_esco_conn(bda, hci_status); 194 btsnd_hcic_enhanced_accept_synchronous_connection(bda, p_setup); 200 bda, p_setup->transmit_bandwidth, p_setup->receive_bandwidth, 797 void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class, 810 int rem_bd_matches = p->rem_bd_known && p->esco.data.bd_addr == bda; 818 p->esco.data.bd_addr = bda; 832 btm_esco_conn_rsp(xx, HCI_ERR_HOST_REJECT_RESOURCES, bda, NULL); 835 btm_esco_conn_rsp(xx, HCI_SUCCESS, bda, NULL); [all …]
|
D | btm_acl.cc | 93 tACL_CONN* btm_bda_to_acl(const RawAddress& bda, tBT_TRANSPORT transport) { in btm_bda_to_acl() argument 97 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl() 188 void btm_acl_created(const RawAddress& bda, DEV_CLASS dc, BD_NAME bdn, in btm_acl_created() argument 198 p = btm_bda_to_acl(bda, transport); in btm_acl_created() 203 VLOG(1) << "Duplicate btm_acl_created: RemBdAddr: " << bda; in btm_acl_created() 215 p->remote_addr = bda; in btm_acl_created() 221 bda, btm_cb.ble_ctr_cb.addr_mgnt_cb.private_addr); in btm_acl_created() 312 void btm_acl_report_role_change(uint8_t hci_status, const RawAddress* bda) { in btm_acl_report_role_change() argument 316 (bda && btm_cb.devcb.switch_role_ref_data.remote_bd_addr == *bda)) { in btm_acl_report_role_change() 338 void btm_acl_removed(const RawAddress& bda, tBT_TRANSPORT transport) { in btm_acl_removed() argument [all …]
|
/system/bt/stack/srvc/ |
D | srvc_eng.cc | 33 const RawAddress& bda, uint16_t conn_id, 69 uint16_t srvc_eng_find_conn_id_by_bd_addr(const RawAddress& bda) { in srvc_eng_find_conn_id_by_bd_addr() argument 75 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_conn_id_by_bd_addr() 92 tSRVC_CLCB* srvc_eng_find_clcb_by_bd_addr(const RawAddress& bda) { in srvc_eng_find_clcb_by_bd_addr() argument 98 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_clcb_by_bd_addr() 159 tSRVC_CLCB* srvc_eng_clcb_alloc(uint16_t conn_id, const RawAddress& bda) { in srvc_eng_clcb_alloc() argument 169 p_clcb->bda = bda; in srvc_eng_clcb_alloc() 337 const RawAddress& bda, uint16_t conn_id, in srvc_eng_connect_cback() argument 340 VLOG(1) << __func__ << ": from " << bda in srvc_eng_connect_cback() 345 if (srvc_eng_clcb_alloc(conn_id, bda) == NULL) { in srvc_eng_connect_cback()
|
D | srvc_eng_int.h | 40 RawAddress bda; member 60 extern tSRVC_CLCB* srvc_eng_find_clcb_by_bd_addr(const RawAddress& bda); 61 extern uint16_t srvc_eng_find_conn_id_by_bd_addr(const RawAddress& bda);
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 578 RawAddress bda; in btu_hcif_connection_comp_evt() local 587 STREAM_TO_BDADDR(bda, p); in btu_hcif_connection_comp_evt() 594 btm_sec_connected(bda, handle, status, enc_mode); in btu_hcif_connection_comp_evt() 596 l2c_link_hci_conn_comp(status, handle, bda); in btu_hcif_connection_comp_evt() 602 esco_data.bd_addr = bda; in btu_hcif_connection_comp_evt() 603 btm_sco_connected(status, &bda, handle, &esco_data); in btu_hcif_connection_comp_evt() 618 RawAddress bda; in btu_hcif_connection_request_evt() local 622 STREAM_TO_BDADDR(bda, p); in btu_hcif_connection_request_evt() 629 btm_sec_conn_req(bda, dc); in btu_hcif_connection_request_evt() 633 btm_sco_conn_req(bda, dc, link_type); in btu_hcif_connection_request_evt() [all …]
|
/system/bt/stack/gatt/ |
D | gatt_attr.cc | 50 const RawAddress& bda, uint16_t conn_id, 121 const RawAddress& bda, tBT_TRANSPORT transport) { in gatt_profile_find_clcb_by_bd_addr() argument 128 p_clcb->bda == bda) in gatt_profile_find_clcb_by_bd_addr() 147 const RawAddress& bda, in gatt_profile_clcb_alloc() argument 159 p_clcb->bda = bda; in gatt_profile_clcb_alloc() 240 const RawAddress& bda, uint16_t conn_id, in gatt_connect_cback() argument 243 VLOG(1) << __func__ << ": from " << bda in gatt_connect_cback() 248 gatt_profile_find_clcb_by_bd_addr(bda, transport); in gatt_connect_cback()
|
D | gatt_utils.cc | 121 req.srv_chg.bda = bd_addr; in gatt_delete_dev_from_srv_chg_clt_list() 262 bool gatt_find_the_connected_bda(uint8_t start_idx, RawAddress& bda, in gatt_find_the_connected_bda() argument 271 bda = gatt_cb.tcb[i].peer_bda; in gatt_find_the_connected_bda() 275 VLOG(1) << " bda :" << bda; in gatt_find_the_connected_bda() 327 tGATTS_SRV_CHG* gatt_is_bda_in_the_srv_chg_clt_list(const RawAddress& bda) { in gatt_is_bda_in_the_srv_chg_clt_list() argument 330 VLOG(1) << __func__ << ": " << bda; in gatt_is_bda_in_the_srv_chg_clt_list() 338 if (bda == p_buf->bda) { in gatt_is_bda_in_the_srv_chg_clt_list() 356 bool gatt_is_bda_connected(const RawAddress& bda) { in gatt_is_bda_connected() argument 361 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected() 378 uint8_t gatt_find_i_tcb_by_addr(const RawAddress& bda, in gatt_find_i_tcb_by_addr() argument [all …]
|
/system/bt/btif/include/ |
D | btif_profile_queue.h | 32 typedef bt_status_t (*btif_connect_cb_t)(RawAddress* bda, uint16_t uuid); 34 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda,
|
/system/bt/stack/gap/ |
D | gap_ble.cc | 38 RawAddress bda; member 78 tGAP_CLCB* find_clcb_by_bd_addr(const RawAddress& bda) { in find_clcb_by_bd_addr() argument 80 if (cb.bda == bda) return &cb; in find_clcb_by_bd_addr() 94 tGAP_CLCB* clcb_alloc(const RawAddress& bda) { in clcb_alloc() argument 97 cb.bda = bda; in clcb_alloc() 274 (*p_cback)(status, clcb.bda, len, (char*)p_name); in cl_op_cmpl() 287 void client_connect_cback(tGATT_IF, const RawAddress& bda, uint16_t conn_id, in client_connect_cback() argument 290 tGAP_CLCB* p_clcb = find_clcb_by_bd_addr(bda); in client_connect_cback() 339 BTM_BleSetPrefConnParams(p_clcb->bda, min, max, latency, tout); in client_cmpl_cback() 372 if (!GATT_Connect(gatt_if, p_clcb->bda, true, BT_TRANSPORT_LE, true)) in accept_client_operation()
|
/system/bt/stack/l2cap/ |
D | l2c_ble.cc | 226 void l2cble_notify_le_connection(const RawAddress& bda) { in l2cble_notify_le_connection() argument 227 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_notify_le_connection() 228 tACL_CONN* p_acl = btm_bda_to_acl(bda, BT_TRANSPORT_LE); in l2cble_notify_le_connection() 259 void l2cble_scanner_conn_comp(uint16_t handle, const RawAddress& bda, in l2cble_scanner_conn_comp() argument 263 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); in l2cble_scanner_conn_comp() 273 p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_scanner_conn_comp() 277 p_lcb = l2cu_allocate_lcb(bda, false, BT_TRANSPORT_LE); in l2cble_scanner_conn_comp() 317 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, in l2cble_scanner_conn_comp() 342 void l2cble_advertiser_conn_comp(uint16_t handle, const RawAddress& bda, in l2cble_advertiser_conn_comp() argument 351 p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_advertiser_conn_comp() [all …]
|
/system/bt/stack/include/ |
D | smp_api.h | 224 extern bool smp_proc_ltk_request(const RawAddress& bda); 228 extern void smp_link_encrypted(const RawAddress& bda, uint8_t encr_enable);
|