Home
last modified time | relevance | path

Searched refs:bda (Results 1 – 25 of 85) sorted by relevance

1234

/system/bt/service/
Dlow_energy_client.cc56 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 …]
Dgatt_server.cc247 int connected, const RawAddress& bda) { in ConnectionCallback() argument
252 std::string device_address = BtAddrString(&bda); in ConnectionCallback()
287 std::shared_ptr<Connection> connection(new Connection(conn_id, bda)); in ConnectionCallback()
339 const RawAddress& bda, int attribute_handle, int offset, bool is_long) { in RequestReadCharacteristicCallback() argument
344 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadCharacteristicCallback()
347 std::string device_address = BtAddrString(&bda); in RequestReadCharacteristicCallback()
372 const RawAddress& bda, int attribute_handle, int offset, bool is_long) { in RequestReadDescriptorCallback() argument
377 auto conn = GetConnection(conn_id, bda, trans_id); in RequestReadDescriptorCallback()
380 std::string device_address = BtAddrString(&bda); in RequestReadDescriptorCallback()
406 const RawAddress& bda, int attr_handle, int offset, bool need_rsp, in RequestWriteCharacteristicCallback() argument
[all …]
Dgatt_server.h197 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,
/system/bt/stack/btm/
Dbtm_ble_connection_establishment.cc113 RawAddress bda; in btm_ble_conn_complete() local
121 STREAM_TO_BDADDR(bda, p); in btm_ble_conn_complete()
139 (peer_addr_type == BLE_ADDR_RANDOM && BTM_BLE_IS_RESOLVE_BDA(bda)); in btm_ble_conn_complete()
147 match = btm_identity_addr_to_random_pseudo(&bda, &bda_type, true); in btm_ble_conn_complete()
153 tBTM_SEC_DEV_REC* match_rec = btm_ble_resolve_random_addr(bda); in btm_ble_conn_complete()
158 match_rec->ble.cur_rand_addr = bda; in btm_ble_conn_complete()
159 if (!btm_ble_init_pseudo_addr(match_rec, bda)) { in btm_ble_conn_complete()
161 bda = match_rec->ble.pseudo_addr; in btm_ble_conn_complete()
163 bda = match_rec->bd_addr; in btm_ble_conn_complete()
172 &bda, handle, android::bluetooth::DIRECTION_UNKNOWN, in btm_ble_conn_complete()
[all …]
Dbtm_int.h60 extern void btm_process_remote_name(const RawAddress* bda, BD_NAME name,
81 extern void btm_acl_created(const RawAddress& bda, DEV_CLASS dc, BD_NAME bdn,
84 extern void btm_acl_removed(const RawAddress& bda, tBT_TRANSPORT transport);
132 extern tACL_CONN* btm_bda_to_acl(const RawAddress& bda,
134 extern bool btm_acl_notif_conn_collision(const RawAddress& bda);
155 extern void btm_sco_connected(uint8_t hci_status, const RawAddress* bda,
160 extern void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class,
163 extern void btm_sco_acl_removed(const RawAddress* bda);
166 extern void btm_remove_sco_links(const RawAddress& bda);
228 extern void btm_sec_conn_req(const RawAddress& bda, uint8_t* dc);
[all …]
Dbtm_ble_gap.cc151 uint16_t evt_type, uint8_t addr_type, const RawAddress& bda,
774 if ((p_dev_rec = btm_find_or_alloc_dev(p_cb->direct_bda.bda)) != NULL && in btm_set_conn_mode_adv_init_addr()
790 p_peer_addr_ptr = p_cb->direct_bda.bda; in btm_set_conn_mode_adv_init_addr()
1331 void btm_ble_read_remote_name_cmpl(bool status, const RawAddress& bda, in btm_ble_read_remote_name_cmpl() argument
1346 btm_process_remote_name(&bda, bd_name, length + 1, hci_status); in btm_ble_read_remote_name_cmpl()
1347 btm_sec_rmt_name_request_complete(&bda, (uint8_t*)p_name, hci_status); in btm_ble_read_remote_name_cmpl()
1461 uint8_t btm_ble_is_discoverable(const RawAddress& bda, in btm_ble_is_discoverable() argument
1473 bda != p_cond->filter_cond.bdaddr_cond) { in btm_ble_is_discoverable()
1629 const RawAddress& bda, uint16_t evt_type, in btm_ble_update_inq_result() argument
1740 void btm_ble_process_adv_addr(RawAddress& bda, uint8_t* addr_type) { in btm_ble_process_adv_addr() argument
[all …]
Dbtm_sco.cc109 const RawAddress& bda, in btm_esco_conn_rsp() argument
123 btsnd_hcic_reject_conn(bda, hci_status); in btm_esco_conn_rsp()
125 btsnd_hcic_reject_esco_conn(bda, hci_status); in btm_esco_conn_rsp()
178 btsnd_hcic_enhanced_accept_synchronous_connection(bda, p_setup); in btm_esco_conn_rsp()
184 bda, p_setup->transmit_bandwidth, p_setup->receive_bandwidth, in btm_esco_conn_rsp()
684 void btm_sco_conn_req(const RawAddress& bda, DEV_CLASS dev_class, in btm_sco_conn_req() argument
697 bool rem_bd_matches = p->rem_bd_known && p->esco.data.bd_addr == bda; in btm_sco_conn_req()
705 p->esco.data.bd_addr = bda; in btm_sco_conn_req()
719 btm_esco_conn_rsp(sco_index, HCI_ERR_HOST_REJECT_RESOURCES, bda, in btm_sco_conn_req()
723 btm_esco_conn_rsp(sco_index, HCI_SUCCESS, bda, nullptr); in btm_sco_conn_req()
[all …]
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc180 const RawAddress& bda, int rssi, std::vector<uint8_t> adv_data) { in NotifyScanResultCallback() argument
182 observer.ScanResultCallback(this, bda, rssi, adv_data); in NotifyScanResultCallback()
195 const RawAddress& bda) { in NotifyConnectCallback() argument
197 observer.ConnectCallback(this, conn_id, status, client_if, bda); in NotifyConnectCallback()
202 int conn_id, int status, int client_if, const RawAddress& bda) { in NotifyDisconnectCallback() argument
204 observer.DisconnectCallback(this, conn_id, status, client_if, bda); in NotifyDisconnectCallback()
216 int conn_id, int server_if, int connected, const RawAddress& bda) { in NotifyServerConnectionCallback() argument
218 observer.ConnectionCallback(this, conn_id, server_if, connected, bda); in NotifyServerConnectionCallback()
230 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadCharacteristicCallback() argument
233 observer.RequestReadCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestReadCharacteristicCallback()
[all …]
Dfake_bluetooth_av_interface.h34 virtual bt_status_t Connect(RawAddress bda) = 0;
35 virtual bt_status_t Disconnect(RawAddress bda) = 0;
54 void NotifyConnectionState(const RawAddress& bda,
56 void NotifyAudioState(const RawAddress& bda, btav_audio_state_t state);
57 void NotifyAudioConfig(const RawAddress& bda, uint32_t sample_rate,
Dfake_bluetooth_gatt_interface.h81 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);
Dfake_bluetooth_av_interface.cc87 const RawAddress& bda, btav_connection_state_t state) { in NotifyConnectionState() argument
89 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState()
92 void FakeBluetoothAvInterface::NotifyAudioState(const RawAddress& bda, in NotifyAudioState() argument
95 observer.AudioStateCallback(this, bda, state); in NotifyAudioState()
98 void FakeBluetoothAvInterface::NotifyAudioConfig(const RawAddress& bda, in NotifyAudioConfig() argument
102 observer.AudioConfigCallback(this, bda, sample_rate, channel_count); in NotifyAudioConfig()
Dbluetooth_gatt_interface.h56 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,
Dbluetooth_gatt_interface.cc95 uint16_t ble_evt_type, uint8_t addr_type, RawAddress* bda, in ScanResultCallback() argument
102 CHECK(bda); in ScanResultCallback()
104 VLOG(2) << __func__ << " - BD_ADDR: " << BtAddrString(bda) in ScanResultCallback()
107 ScanResultCallback(g_interface, *bda, rssi, adv_data)); in ScanResultCallback()
111 const RawAddress& bda) { in ConnectCallback() argument
116 << " - BD_ADDR: " << BtAddrString(&bda) << " - conn_id: " << conn_id; in ConnectCallback()
119 ConnectCallback(g_interface, conn_id, status, client_if, bda)); in ConnectCallback()
123 const RawAddress& bda) { in DisconnectCallback() argument
129 << " - BD_ADDR: " << BtAddrString(&bda); in DisconnectCallback()
131 DisconnectCallback(g_interface, conn_id, status, client_if, bda)); in DisconnectCallback()
[all …]
/system/bt/btif/co/
Dbta_gatts_co.cc63 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/btif/src/
Dbtif_debug_conn.cc32 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()
Dbtif_profile_queue.cc94 static void queue_int_add(uint16_t uuid, const RawAddress& bda, in queue_int_add() argument
99 ConnectNode param(bda, uuid, connect_cb); in queue_int_add()
152 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda, in btif_queue_connect() argument
155 base::Bind(&queue_int_add, uuid, *bda, connect_cb)); in btif_queue_connect()
Dbtif_hd.cc180 RawAddress* addr = (RawAddress*)&p_data->reg_status.bda; in btif_hd_upstreams_evt()
203 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
214 btif_storage_set_hidd((RawAddress*)&p_data->conn.bda); in btif_hd_upstreams_evt()
217 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_CONNECTED); in btif_hd_upstreams_evt()
222 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
229 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt()
254 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt()
255 if (bta_dm_check_if_only_hd_connected(p_data->conn.bda)) { in btif_hd_upstreams_evt()
258 BTA_DmRemoveDevice(p_data->conn.bda); in btif_hd_upstreams_evt()
260 RawAddress* bd_addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
[all …]
/system/bt/stack/srvc/
Dsrvc_eng.cc32 const RawAddress& bda, uint16_t conn_id,
68 uint16_t srvc_eng_find_conn_id_by_bd_addr(const RawAddress& bda) { in srvc_eng_find_conn_id_by_bd_addr() argument
74 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_conn_id_by_bd_addr()
91 tSRVC_CLCB* srvc_eng_find_clcb_by_bd_addr(const RawAddress& bda) { in srvc_eng_find_clcb_by_bd_addr() argument
97 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_clcb_by_bd_addr()
158 tSRVC_CLCB* srvc_eng_clcb_alloc(uint16_t conn_id, const RawAddress& bda) { in srvc_eng_clcb_alloc() argument
168 p_clcb->bda = bda; in srvc_eng_clcb_alloc()
328 const RawAddress& bda, uint16_t conn_id, in srvc_eng_connect_cback() argument
331 VLOG(1) << __func__ << ": from " << bda in srvc_eng_connect_cback()
336 if (srvc_eng_clcb_alloc(conn_id, bda) == NULL) { in srvc_eng_connect_cback()
Dsrvc_eng_int.h40 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/gatt/
Dgatt_attr.cc50 const RawAddress& bda, uint16_t conn_id,
124 const RawAddress& bda, tBT_TRANSPORT transport) { in gatt_profile_find_clcb_by_bd_addr() argument
131 p_clcb->bda == bda) in gatt_profile_find_clcb_by_bd_addr()
150 const RawAddress& bda, in gatt_profile_clcb_alloc() argument
162 p_clcb->bda = bda; in gatt_profile_clcb_alloc()
242 const RawAddress& bda, uint16_t conn_id, in gatt_connect_cback() argument
245 VLOG(1) << __func__ << ": from " << bda << " connected: " << connected in gatt_connect_cback()
249 gatt_profile_find_clcb_by_bd_addr(bda, transport); in gatt_connect_cback()
Dgatt_utils.cc120 req.srv_chg.bda = bd_addr; in gatt_delete_dev_from_srv_chg_clt_list()
249 bool gatt_find_the_connected_bda(uint8_t start_idx, RawAddress& bda, in gatt_find_the_connected_bda() argument
258 bda = gatt_cb.tcb[i].peer_bda; in gatt_find_the_connected_bda()
262 VLOG(1) << " bda :" << bda; in gatt_find_the_connected_bda()
310 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
312 VLOG(1) << __func__ << ": " << bda; in gatt_is_bda_in_the_srv_chg_clt_list()
320 if (bda == p_buf->bda) { in gatt_is_bda_in_the_srv_chg_clt_list()
338 bool gatt_is_bda_connected(const RawAddress& bda) { in gatt_is_bda_connected() argument
343 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected()
360 uint8_t gatt_find_i_tcb_by_addr(const RawAddress& bda, in gatt_find_i_tcb_by_addr() argument
[all …]
/system/bt/stack/btu/
Dbtu_hcif.cc148 RawAddress bda = RawAddress::kEmpty; in btu_hcif_log_event_metrics() local
159 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics()
160 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
165 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics()
166 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
172 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
179 …bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, encryption_e… in btu_hcif_log_event_metrics()
186 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics()
190 &bda, handle, android::bluetooth::DIRECTION_UNKNOWN, link_type, cmd, in btu_hcif_log_event_metrics()
197 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics()
[all …]
/system/bt/btif/include/
Dbtif_profile_queue.h32 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/
Dgap_ble.cc39 RawAddress bda; member
79 tGAP_CLCB* find_clcb_by_bd_addr(const RawAddress& bda) { in find_clcb_by_bd_addr() argument
81 if (cb.bda == bda) return &cb; in find_clcb_by_bd_addr()
95 tGAP_CLCB* clcb_alloc(const RawAddress& bda) { in clcb_alloc() argument
98 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/include/hardware/
Dbt_gatt_server.h51 const RawAddress& bda);
70 const RawAddress& bda, int attr_handle,
78 const RawAddress& bda, int attr_handle,
84 const RawAddress& bda,

1234