/system/bt/service/ |
D | low_energy_client.cc | 59 RawAddress bda; in Connect() local 60 RawAddress::FromString(address, bda); in Connect() 64 client_id_, bda, is_direct, BT_TRANSPORT_LE, false, kPhyLe1MbMask); in Connect() 76 RawAddress bda; in Disconnect() local 77 RawAddress::FromString(address, bda); in Disconnect() 82 conn_id = connection_ids_.find(bda); in Disconnect() 91 client_id_, bda, conn_id->second); in Disconnect() 103 RawAddress bda; in SetMtu() local 104 RawAddress::FromString(address, bda); in SetMtu() 109 conn_id = connection_ids_.find(bda); in SetMtu() [all …]
|
D | gatt_server.cc | 247 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 …]
|
/system/bt/service/hal/ |
D | fake_bluetooth_av_interface.h | 34 virtual bt_status_t Connect(RawAddress bda) = 0; 35 virtual bt_status_t Disconnect(RawAddress bda) = 0; 42 virtual bt_status_t Connect(RawAddress bda) = 0; 43 virtual bt_status_t Disconnect(RawAddress bda) = 0; 64 void NotifyConnectionState(const RawAddress& bda, 66 void NotifyAudioState(const RawAddress& bda, btav_audio_state_t state); 69 const RawAddress& bda, const btav_a2dp_codec_config_t& codec_config, 73 bool QueryMandatoryCodecPreferred(const RawAddress& bda); 75 void NotifyAudioConfig(const RawAddress& bda, uint32_t sample_rate,
|
D | fake_bluetooth_av_interface.cc | 110 const RawAddress& bda, btav_connection_state_t state) { in NotifyConnectionState() argument 112 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState() 115 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState() 118 void FakeBluetoothAvInterface::NotifyAudioState(const RawAddress& bda, in NotifyAudioState() argument 121 observer.AudioStateCallback(this, bda, state); in NotifyAudioState() 124 observer.AudioStateCallback(this, bda, state); in NotifyAudioState() 128 const RawAddress& bda, const btav_a2dp_codec_config_t& codec_config, in NotifyAudioConfig() argument 133 observer.AudioConfigCallback(this, bda, codec_config, in NotifyAudioConfig() 139 const RawAddress& bda) { in QueryMandatoryCodecPreferred() argument 143 if (!observer.MandatoryCodecPreferredCallback(this, bda)) { in QueryMandatoryCodecPreferred() [all …]
|
D | fake_bluetooth_gatt_interface.cc | 184 const RawAddress& bda, int rssi, std::vector<uint8_t> adv_data) { in NotifyScanResultCallback() argument 186 observer.ScanResultCallback(this, bda, rssi, adv_data); in NotifyScanResultCallback() 199 const RawAddress& bda) { in NotifyConnectCallback() argument 201 observer.ConnectCallback(this, conn_id, status, client_if, bda); in NotifyConnectCallback() 206 int conn_id, int status, int client_if, const RawAddress& bda) { in NotifyDisconnectCallback() argument 208 observer.DisconnectCallback(this, conn_id, status, client_if, bda); in NotifyDisconnectCallback() 220 int conn_id, int server_if, int connected, const RawAddress& bda) { in NotifyServerConnectionCallback() argument 222 observer.ConnectionCallback(this, conn_id, server_if, connected, bda); in NotifyServerConnectionCallback() 234 int conn_id, int trans_id, const RawAddress& bda, int attr_handle, in NotifyRequestReadCharacteristicCallback() argument 237 observer.RequestReadCharacteristicCallback(this, conn_id, trans_id, bda, in NotifyRequestReadCharacteristicCallback() [all …]
|
D | fake_bluetooth_gatt_interface.h | 84 void NotifyScanResultCallback(const RawAddress& bda, int rssi, 91 const RawAddress& bda); 93 const RawAddress& bda); 99 const RawAddress& bda); 110 const RawAddress& bda, 114 const RawAddress& bda, 118 const RawAddress& bda, 123 const RawAddress& bda, 128 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 | 96 uint16_t ble_evt_type, uint8_t addr_type, RawAddress* bda, in ScanResultCallback() argument 103 CHECK(bda); in ScanResultCallback() 105 VLOG(2) << __func__ << " - BD_ADDR: " << BtAddrString(bda) in ScanResultCallback() 108 ScanResultCallback(g_interface, *bda, rssi, adv_data)); in ScanResultCallback() 112 const RawAddress& bda) { in ConnectCallback() argument 117 << " - BD_ADDR: " << BtAddrString(&bda) << " - conn_id: " << conn_id; in ConnectCallback() 120 ConnectCallback(g_interface, conn_id, status, client_if, bda)); in ConnectCallback() 124 const RawAddress& bda) { in DisconnectCallback() argument 130 << " - BD_ADDR: " << BtAddrString(&bda); in DisconnectCallback() 132 DisconnectCallback(g_interface, conn_id, status, client_if, bda)); in DisconnectCallback() [all …]
|
/system/bt/stack/acl/ |
D | ble_acl.cc | 35 bool maybe_resolve_address(RawAddress* bda, tBLE_ADDR_TYPE* bda_type); 49 connection_manager::on_connection_complete(address_with_type.bda); in acl_ble_common_connection() 52 btm_ble_connected(address_with_type.bda, handle, HCI_ENCRYPT_MODE_DISABLED, in acl_ble_common_connection() 59 if (!l2cble_conn_comp(handle, role, address_with_type.bda, in acl_ble_common_connection() 70 btm_acl_created(address_with_type.bda, handle, role, BT_TRANSPORT_LE); in acl_ble_common_connection() 85 btm_ble_update_mode_operation(role, &address_with_type.bda, HCI_SUCCESS); in acl_ble_connection_complete() 102 btm_ble_refresh_local_resolvable_private_addr(address_with_type.bda, in acl_ble_enhanced_connection_complete() 107 address_with_type.bda, peer_rpa, tBTM_SEC_BLE::BTM_BLE_ADDR_RRA); in acl_ble_enhanced_connection_complete() 108 btm_ble_update_mode_operation(role, &address_with_type.bda, HCI_SUCCESS); in acl_ble_enhanced_connection_complete() 120 return maybe_resolve_address(&resolved_address_with_type->bda, in maybe_resolve_received_address() [all …]
|
D | btm_ble_connection_establishment.cc | 108 bool maybe_resolve_address(RawAddress* bda, tBLE_ADDR_TYPE* bda_type) { in maybe_resolve_address() argument 112 (peer_addr_type == BLE_ADDR_RANDOM && BTM_BLE_IS_RESOLVE_BDA(*bda)); in maybe_resolve_address() 120 is_in_security_db = btm_identity_addr_to_random_pseudo(bda, bda_type, true); in maybe_resolve_address() 126 tBTM_SEC_DEV_REC* match_rec = btm_ble_resolve_random_addr(*bda); in maybe_resolve_address() 131 match_rec->ble.cur_rand_addr = *bda; in maybe_resolve_address() 132 if (!btm_ble_init_pseudo_addr(match_rec, *bda)) { in maybe_resolve_address() 134 *bda = match_rec->ble.pseudo_addr; in maybe_resolve_address() 137 *bda = match_rec->bd_addr; in maybe_resolve_address() 153 RawAddress bda; in btm_ble_conn_complete() local 160 STREAM_TO_BDADDR(bda, p); in btm_ble_conn_complete() [all …]
|
/system/bt/stack/test/btm/ |
D | stack_btm_test.cc | 117 RawAddress bda({0x11, 0x22, 0x33, 0x44, 0x55, 0x66}); in TEST_F() local 119 btm_acl_connected(bda, 2, HCI_SUCCESS, false); in TEST_F() 131 RawAddress bda({0x11, 0x22, 0x33, 0x44, 0x55, 0x66}); in TEST_F() local 133 btm_acl_connected(bda, 2, HCI_ERR_NO_CONNECTION, false); in TEST_F() 157 RawAddress bda({0x11, 0x22, 0x33, 0x44, 0x55, 0x66}); in TEST_F() local 158 btm_acl_created(bda, 0x123, HCI_ROLE_CENTRAL, BT_TRANSPORT_BR_EDR); in TEST_F() 165 btm_set_packet_types_from_address(bda, pkt_types); in TEST_F() 171 btm_set_packet_types_from_address(bda, 0xffff); in TEST_F() 177 btm_set_packet_types_from_address(bda, 0x0); in TEST_F()
|
/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/test/mock/ |
D | mock_stack_l2cap_ble.h | 96 std::function<void(const RawAddress& bda)> body{[](const RawAddress& bda) {}}; 97 void operator()(const RawAddress& bda) { body(bda); }; in operator() 105 std::function<bool(uint16_t handle, uint8_t role, const RawAddress& bda, 108 body{[](uint16_t handle, uint8_t role, const RawAddress& bda, 111 bool operator()(uint16_t handle, uint8_t role, const RawAddress& bda, in operator() 114 return body(handle, role, bda, type, conn_interval, conn_latency, in operator() 266 std::function<void(const RawAddress* bda, tBT_TRANSPORT transport, 268 body{[](const RawAddress* bda, tBT_TRANSPORT transport, void* p_ref_data, 270 void operator()(const RawAddress* bda, tBT_TRANSPORT transport, in operator() 272 body(bda, transport, p_ref_data, status); in operator() [all …]
|
D | mock_stack_btm_sco.cc | 86 void BTM_RemoveSco(const RawAddress& bda) { in BTM_RemoveSco() argument 95 void btm_sco_acl_removed(const RawAddress* bda) { in btm_sco_acl_removed() argument 104 void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class, in btm_sco_conn_req() argument 108 void btm_sco_connected(tHCI_STATUS hci_status, const RawAddress& bda, in btm_sco_connected() argument 116 const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) { in btm_sco_on_esco_connect_request() argument 120 const RawAddress& bda, const bluetooth::types::ClassOfDevice& cod) { in btm_sco_on_sco_connect_request() argument
|
D | mock_stack_l2cap_ble.cc | 98 void l2cble_notify_le_connection(const RawAddress& bda) { in l2cble_notify_le_connection() argument 100 test::mock::stack_l2cap_ble::l2cble_notify_le_connection(bda); in l2cble_notify_le_connection() 102 bool l2cble_conn_comp(uint16_t handle, uint8_t role, const RawAddress& bda, in l2cble_conn_comp() argument 107 handle, role, bda, type, conn_interval, conn_latency, conn_timeout); in l2cble_conn_comp() 175 void l2cble_sec_comp(const RawAddress* bda, tBT_TRANSPORT transport, in l2cble_sec_comp() argument 178 test::mock::stack_l2cap_ble::l2cble_sec_comp(bda, transport, p_ref_data, in l2cble_sec_comp() 196 void l2cble_use_preferred_conn_params(const RawAddress& bda) { in l2cble_use_preferred_conn_params() argument 198 test::mock::stack_l2cap_ble::l2cble_use_preferred_conn_params(bda); in l2cble_use_preferred_conn_params()
|
/system/bt/btif/src/ |
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()
|
/system/bt/stack/srvc/ |
D | srvc_eng.cc | 32 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() 335 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/types/ |
D | ble_address_with_type.h | 65 RawAddress bda; member 66 bool AddressEquals(const RawAddress& other) const { return other == bda; } in AddressEquals() 76 return ((bda.address)[0] & kResolvableAddressMask) == kResolvableAddressMsb; in IsAddressResolvable() 90 return std::string(bda.ToString() + "[" + AddressTypeText(type) + "]"); in ToString()
|
/system/bt/stack/btm/ |
D | btm_sco.cc | 119 const RawAddress& bda, in btm_esco_conn_rsp() argument 134 btsnd_hcic_reject_conn(bda, hci_status); in btm_esco_conn_rsp() 136 btsnd_hcic_reject_esco_conn(bda, hci_status); in btm_esco_conn_rsp() 164 btsnd_hcic_enhanced_accept_synchronous_connection(bda, p_setup); in btm_esco_conn_rsp() 170 bda, p_setup->transmit_bandwidth, p_setup->receive_bandwidth, in btm_esco_conn_rsp() 591 void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class, in btm_sco_conn_req() argument 603 bool rem_bd_matches = p->rem_bd_known && p->esco.data.bd_addr == bda; in btm_sco_conn_req() 611 p->esco.data.bd_addr = bda; in btm_sco_conn_req() 625 btm_esco_conn_rsp(sco_index, HCI_ERR_HOST_REJECT_RESOURCES, bda, in btm_sco_conn_req() 629 btm_esco_conn_rsp(sco_index, HCI_SUCCESS, bda, nullptr); in btm_sco_conn_req() [all …]
|
D | btm_ble_gap.cc | 174 const RawAddress& bda, uint8_t primary_phy, 797 if ((p_dev_rec = btm_find_or_alloc_dev(p_cb->direct_bda.bda)) != NULL && in btm_set_conn_mode_adv_init_addr() 800 p_peer_addr_ptr = p_dev_rec->ble.identity_address_with_type.bda; in btm_set_conn_mode_adv_init_addr() 812 p_peer_addr_ptr = p_cb->direct_bda.bda; in btm_set_conn_mode_adv_init_addr() 829 p_peer_addr_ptr = p_dev_rec->ble.identity_address_with_type.bda; in btm_set_conn_mode_adv_init_addr() 1305 void btm_ble_read_remote_name_cmpl(bool status, const RawAddress& bda, in btm_ble_read_remote_name_cmpl() argument 1320 btm_process_remote_name(&bda, bd_name, length + 1, hci_status); in btm_ble_read_remote_name_cmpl() 1321 btm_sec_rmt_name_request_complete(&bda, (uint8_t*)p_name, hci_status); in btm_ble_read_remote_name_cmpl() 1435 static uint8_t btm_ble_is_discoverable(const RawAddress& bda, in btm_ble_is_discoverable() argument 1589 const RawAddress& bda, uint16_t evt_type, in btm_ble_update_inq_result() argument [all …]
|
/system/bt/stack/include/ |
D | l2cap_hci_link_interface.h | 31 const RawAddress& bda, tBLE_ADDR_TYPE type, 48 extern void l2cble_notify_le_connection(const RawAddress& bda); 50 void l2cble_use_preferred_conn_params(const RawAddress& bda);
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 111 RawAddress bda = RawAddress::kEmpty; in btu_hcif_log_event_metrics() local 122 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics() 123 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 129 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics() 130 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 137 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 145 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 153 STREAM_TO_BDADDR(bda, p_event); in btu_hcif_log_event_metrics() 157 &bda, handle, android::bluetooth::DIRECTION_UNKNOWN, link_type, cmd, in btu_hcif_log_event_metrics() 166 std::string bda_string = bda.ToString(); in btu_hcif_log_event_metrics() [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 | 42 RawAddress bda; member 84 tGAP_CLCB* find_clcb_by_bd_addr(const RawAddress& bda) { in find_clcb_by_bd_addr() argument 86 if (cb.bda == bda) return &cb; in find_clcb_by_bd_addr() 100 tGAP_CLCB* clcb_alloc(const RawAddress& bda) { in clcb_alloc() argument 103 cb.bda = bda; in clcb_alloc() 279 (*p_cback)(status, clcb.bda, len, (char*)p_name); in cl_op_cmpl() 292 void client_connect_cback(tGATT_IF, const RawAddress& bda, uint16_t conn_id, in client_connect_cback() argument 295 tGAP_CLCB* p_clcb = find_clcb_by_bd_addr(bda); in client_connect_cback() 298 PRIVATE_ADDRESS(bda), (connected) ? "Connected" : "Disconnected"); in client_connect_cback() 350 BTM_BleSetPrefConnParams(p_clcb->bda, min, max, latency, tout); in client_cmpl_cback() [all …]
|