Home
last modified time | relevance | path

Searched refs:remote_bda (Results 1 – 25 of 76) sorted by relevance

1234

/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_utils.cc97 const RawAddress& remote_bda, in bta_gattc_find_clcb_by_cif() argument
103 p_clcb->transport == transport && p_clcb->bda == remote_bda) in bta_gattc_find_clcb_by_cif()
136 const RawAddress& remote_bda, in bta_gattc_clcb_alloc() argument
149 p_clcb->bda = remote_bda; in bta_gattc_clcb_alloc()
154 p_clcb->p_srcb = bta_gattc_find_srcb(remote_bda); in bta_gattc_clcb_alloc()
156 p_clcb->p_srcb = bta_gattc_srcb_alloc(remote_bda); in bta_gattc_clcb_alloc()
181 const RawAddress& remote_bda, in bta_gattc_find_alloc_clcb() argument
185 p_clcb = bta_gattc_find_clcb_by_cif(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
187 p_clcb = bta_gattc_clcb_alloc(client_if, remote_bda, transport); in bta_gattc_find_alloc_clcb()
486 p_clreg->notif_reg[i].remote_bda == p_srcb->server_bda && in bta_gattc_check_notif_registry()
[all …]
Dbta_gattc_int.h104 RawAddress remote_bda; member
115 RawAddress remote_bda; member
204 RawAddress remote_bda; member
268 RawAddress remote_bda; member
323 RawAddress remote_bda; member
330 RawAddress remote_bda; member
419 const RawAddress& remote_bda, uint16_t conn_id,
421 void bta_gattc_process_api_refresh(const RawAddress& remote_bda);
428 const RawAddress& remote_bda,
432 const RawAddress& remote_bda,
[all …]
Dbta_gatts_act.cc368 RawAddress remote_bda; in bta_gatts_indicate_handle() local
377 &gatt_if, remote_bda, &transport)) { in bta_gatts_indicate_handle()
392 bta_sys_busy(BTA_ID_GATTS, BTA_ALL_APP_ID, remote_bda); in bta_gatts_indicate_handle()
393 bta_sys_idle(BTA_ID_GATTS, BTA_ALL_APP_ID, remote_bda); in bta_gatts_indicate_handle()
433 success = GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
438 success = GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
445 if (GATT_GetConnIdIfConnected(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
475 if (!GATT_CancelConnect(p_rcb->gatt_if, p_msg->api_cancel_open.remote_bda, in bta_gatts_cancel_open()
504 RawAddress remote_bda; in bta_gatts_close() local
507 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda, in bta_gatts_close()
[all …]
Dbta_gattc_api.cc139 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
143 BTA_GATTC_Open(client_if, remote_bda, connection_type, BT_TRANSPORT_LE, in BTA_GATTC_Open()
147 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
158 .remote_bda = remote_bda, in BTA_GATTC_Open()
171 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
174 BTA_GATTC_Open(client_if, remote_bda, BLE_ADDR_PUBLIC, connection_type, in BTA_GATTC_Open()
193 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() argument
201 p_buf->remote_bda = remote_bda; in BTA_GATTC_CancelOpen()
686 p_clreg->notif_reg[i].remote_bda == bda && in BTA_GATTC_RegisterForNotifications()
700 p_clreg->notif_reg[i].remote_bda = bda; in BTA_GATTC_RegisterForNotifications()
[all …]
Dbta_gattc_act.cc238 bta_gattc_cb.bg_track[i].remote_bda, false); in bta_gattc_deregister()
240 bta_gattc_cb.bg_track[i].remote_bda, false)) { in bta_gattc_deregister()
244 p_clreg->client_if, bta_gattc_cb.bg_track[i].remote_bda, false); in bta_gattc_deregister()
284 p_msg->api_conn.client_if, p_msg->api_conn.remote_bda, in bta_gattc_process_api_open()
292 p_msg->api_conn.remote_bda, GATT_INVALID_CONN_ID, in bta_gattc_process_api_open()
311 p_msg->api_cancel_conn.client_if, p_msg->api_cancel_conn.remote_bda, in bta_gattc_process_api_open_cancel()
341 cb_data.enc_cmpl.remote_bda = bda; in bta_gattc_process_enc_cmpl()
392 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open()
406 p_clreg->notif_reg[i].remote_bda == p_clcb->bda && in bta_gattc_open()
414 p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open()
[all …]
Dbta_gatts_api.cc315 void BTA_GATTS_Open(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_Open() argument
329 p_buf->remote_bda = remote_bda; in BTA_GATTS_Open()
349 void BTA_GATTS_CancelOpen(tGATT_IF server_if, const RawAddress& remote_bda, in BTA_GATTS_CancelOpen() argument
357 p_buf->remote_bda = remote_bda; in BTA_GATTS_CancelOpen()
/packages/modules/Bluetooth/system/stack/include/
Dacl_api.h57 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda,
68 tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda,
82 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda,
85 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
134 tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb);
151 tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda,
170 tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda,
195 const RawAddress& remote_bda,
199 void btm_establish_continue_from_address(const RawAddress& remote_bda,
203 const RawAddress& remote_bda);
[all …]
Dbtm_api.h312 [[nodiscard]] tBTM_STATUS BTM_ReadRemoteDeviceName(const RawAddress& remote_bda,
343 [[nodiscard]] bool BTM_IsRemoteVersionReceived(const RawAddress& remote_bda);
450 [[nodiscard]] tBTM_STATUS BTM_CreateSco(const RawAddress* remote_bda,
583 [[nodiscard]] uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda,
595 [[nodiscard]] bool BTM_IsPhy2mSupported(const RawAddress& remote_bda,
606 void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport);
618 [[nodiscard]] uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda,
731 [[nodiscard]] bool BTM_IsScoActiveByBdaddr(const RawAddress& remote_bda);
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_acl.h54 std::function<bool(const RawAddress& remote_bda, tBT_TRANSPORT transport)>
57 bool operator()(const RawAddress& remote_bda, tBT_TRANSPORT transport) { in operator()
58 return body(remote_bda, transport); in operator()
66 std::function<bool(const RawAddress& remote_bda, tBT_TRANSPORT transport)>
69 bool operator()(const RawAddress& remote_bda, tBT_TRANSPORT transport) { in operator()
70 return body(remote_bda, transport); in operator()
88 std::function<bool(const RawAddress& remote_bda, tBT_TRANSPORT transport)>
91 bool operator()(const RawAddress& remote_bda, tBT_TRANSPORT transport) { in operator()
92 return body(remote_bda, transport); in operator()
222 std::function<bool(const RawAddress& remote_bda)> body{
[all …]
Dmock_stack_acl.cc167 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, in BTM_IsAclConnectionUp() argument
170 return test::mock::stack_acl::BTM_IsAclConnectionUp(remote_bda, transport); in BTM_IsAclConnectionUp()
172 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda, in BTM_IsAclConnectionUpAndHandleValid() argument
175 return test::mock::stack_acl::BTM_IsAclConnectionUpAndHandleValid(remote_bda, in BTM_IsAclConnectionUpAndHandleValid()
182 bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, in BTM_IsPhy2mSupported() argument
185 return test::mock::stack_acl::BTM_IsPhy2mSupported(remote_bda, transport); in BTM_IsPhy2mSupported()
237 const RawAddress& remote_bda) { in acl_peer_supports_ble_connection_parameters_request() argument
240 acl_peer_supports_ble_connection_parameters_request(remote_bda); in acl_peer_supports_ble_connection_parameters_request()
256 bool acl_peer_supports_sniff_subrating(const RawAddress& remote_bda) { in acl_peer_supports_sniff_subrating() argument
258 return test::mock::stack_acl::acl_peer_supports_sniff_subrating(remote_bda); in acl_peer_supports_sniff_subrating()
[all …]
Dmock_stack_gatt_api.h53 std::function<std::list<uint16_t>(const RawAddress& remote_bda)> body{
55 std::list<uint16_t> operator()(const RawAddress& remote_bda) { in operator()
56 return body(remote_bda); in operator()
70 const RawAddress& remote_bda, tBT_TRANSPORT transport, uint16_t conn_id,
75 tGATTC_TryMtuRequestResult operator()(const RawAddress& remote_bda, in operator()
79 return body(remote_bda, transport, conn_id, current_mtu); in operator()
90 std::function<void(const RawAddress& remote_bda, tBT_TRANSPORT transport,
94 void operator()(const RawAddress& remote_bda, tBT_TRANSPORT transport, in operator()
96 body(remote_bda, transport, user_mtu); in operator()
/packages/modules/Bluetooth/system/bta/test/common/
Dbta_gatt_api_mock.h33 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
36 virtual void Open(tGATT_IF client_if, const RawAddress& remote_bda,
38 virtual void CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda,
50 const RawAddress& remote_bda,
53 const RawAddress& remote_bda,
66 (tGATT_IF client_if, const RawAddress& remote_bda,
71 (tGATT_IF client_if, const RawAddress& remote_bda,
74 (tGATT_IF client_if, const RawAddress& remote_bda,
87 (tGATT_IF client_if, const RawAddress& remote_bda,
90 (tGATT_IF client_if, const RawAddress& remote_bda,
Dbta_gatt_api_mock.cc45 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
49 gatt_interface->Open(client_if, remote_bda, connection_type, transport, in BTA_GATTC_Open()
53 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_Open() argument
56 gatt_interface->Open(client_if, remote_bda, connection_type, opportunistic); in BTA_GATTC_Open()
59 void BTA_GATTC_CancelOpen(tGATT_IF client_if, const RawAddress& remote_bda, in BTA_GATTC_CancelOpen() argument
62 gatt_interface->CancelOpen(client_if, remote_bda, is_direct); in BTA_GATTC_CancelOpen()
104 const RawAddress& remote_bda, in BTA_GATTC_RegisterForNotifications() argument
107 return gatt_interface->RegisterForNotifications(client_if, remote_bda, in BTA_GATTC_RegisterForNotifications()
112 const RawAddress& remote_bda, in BTA_GATTC_DeregisterForNotifications() argument
115 return gatt_interface->DeregisterForNotifications(client_if, remote_bda, in BTA_GATTC_DeregisterForNotifications()
Dbtm_api_mock.cc54 bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, in BTM_IsPhy2mSupported() argument
57 return btm_interface->IsPhy2mSupported(remote_bda, transport); in BTM_IsPhy2mSupported()
60 uint8_t BTM_GetPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) { in BTM_GetPeerSCA() argument
62 return btm_interface->GetPeerSCA(remote_bda, transport); in BTM_GetPeerSCA()
122 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, in BTM_IsAclConnectionUp() argument
125 return btm_interface->BTM_IsAclConnectionUp(remote_bda, transport); in BTM_IsAclConnectionUp()
Dbtm_api_mock.h47 virtual bool IsPhy2mSupported(const RawAddress& remote_bda,
49 virtual uint8_t GetPeerSCA(const RawAddress& remote_bda,
69 virtual bool BTM_IsAclConnectionUp(const RawAddress& remote_bda,
93 (const RawAddress& remote_bda, tBT_TRANSPORT transport),
96 (const RawAddress& remote_bda, tBT_TRANSPORT transport),
123 (const RawAddress& remote_bda, tBT_TRANSPORT transport),
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_gatt_client.cc50 [](tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct) { in __anon3962861c0202()
53 ADDRESS_TO_LOGGABLE_CSTR(remote_bda), client_if, in __anon3962861c0202()
55 BTA_GATTC_CancelOpen(client_if, remote_bda, is_direct); in __anon3962861c0202()
58 [](const RawAddress& remote_bda) { in __anon3962861c0302()
61 ADDRESS_TO_LOGGABLE_CSTR(remote_bda))); in __anon3962861c0302()
62 BTA_GATTC_Refresh(remote_bda); in __anon3962861c0302()
97 [](tGATT_IF client_if, const RawAddress& remote_bda,
101 "GATTC_Open", ADDRESS_TO_LOGGABLE_CSTR(remote_bda), client_if, in __anon3962861c0802()
103 BTA_GATTC_Open(client_if, remote_bda, connection_type, opportunistic); in __anon3962861c0802()
Dbta_dm_gatt_client.h31 void (*BTA_GATTC_CancelOpen)(tGATT_IF client_if, const RawAddress& remote_bda,
33 void (*BTA_GATTC_Refresh)(const RawAddress& remote_bda);
42 void (*BTA_GATTC_Open)(tGATT_IF client_if, const RawAddress& remote_bda,
Dbta_dm_disc.cc110 void (*BTA_GATTC_CancelOpen)(tGATT_IF client_if, const RawAddress& remote_bda,
112 void (*BTA_GATTC_Refresh)(const RawAddress& remote_bda);
121 void (*BTA_GATTC_Open)(tGATT_IF client_if, const RawAddress& remote_bda,
126 [](tGATT_IF client_if, const RawAddress& remote_bda, bool is_direct) { in __anon788b21910302() argument
127 BTA_GATTC_CancelOpen(client_if, remote_bda, is_direct); in __anon788b21910302()
130 [](const RawAddress& remote_bda) { BTA_GATTC_Refresh(remote_bda); }, in __anon788b21910402() argument
151 [](tGATT_IF client_if, const RawAddress& remote_bda,
153 BTA_GATTC_Open(client_if, remote_bda, connection_type, opportunistic); in __anon788b21910902()
703 p_data->remote_bda); in bta_dm_proc_open_evt()
745 if (p_data->close.remote_bda == bta_dm_discovery_cb.peer_bdaddr) { in bta_dm_gattc_callback()
[all …]
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h173 RawAddress remote_bda; member
182 RawAddress remote_bda; member
205 RawAddress remote_bda; member
210 RawAddress remote_bda; member
231 RawAddress remote_bda; member
258 RawAddress remote_bda; /* service change event */ member
348 RawAddress remote_bda; member
377 RawAddress remote_bda; member
500 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda,
502 void BTA_GATTC_Open(tGATT_IF client_if, const RawAddress& remote_bda,
[all …]
/packages/modules/Bluetooth/system/stack/acl/
Dbtm_pm.cc154 void BTM_PM_OnConnected(uint16_t handle, const RawAddress& remote_bda) { in BTM_PM_OnConnected() argument
157 remote_bda); in BTM_PM_OnConnected()
160 pm_mode_db[handle].Init(remote_bda, handle); in BTM_PM_OnConnected()
184 tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda, in BTM_SetPowerMode() argument
191 log::error("pm_id: {}, p_mode is null for {}", unsigned(pm_id), remote_bda); in BTM_SetPowerMode()
196 auto* p_cb = btm_pm_get_power_manager_from_address(remote_bda); in BTM_SetPowerMode()
198 log::warn("Unable to find power manager for peer: {}", remote_bda); in BTM_SetPowerMode()
220 interop_match_addr(INTEROP_DISABLE_SNIFF, &remote_bda)) { in BTM_SetPowerMode()
222 remote_bda); in BTM_SetPowerMode()
262 log::info("Setting stored bitmask for peer:{}", remote_bda); in BTM_SetPowerMode()
[all …]
Dbtm_acl.cc1078 tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda, in BTM_GetLinkSuperTout() argument
1082 internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR); in BTM_GetLinkSuperTout()
1100 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda, in BTM_SetLinkSuperTout() argument
1102 tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR); in BTM_SetLinkSuperTout()
1115 supervision_timeout_to_seconds(timeout), remote_bda); in BTM_SetLinkSuperTout()
1121 supervision_timeout_to_seconds(timeout), remote_bda); in BTM_SetLinkSuperTout()
1127 supervision_timeout_to_seconds(timeout), remote_bda); in BTM_SetLinkSuperTout()
1132 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, in BTM_IsAclConnectionUp() argument
1134 return internal_.btm_bda_to_acl(remote_bda, transport) != nullptr; in BTM_IsAclConnectionUp()
1137 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda, in BTM_IsAclConnectionUpAndHandleValid() argument
[all …]
/packages/modules/Bluetooth/system/bta/ras/
Dras_server.cc219 auto address = p_data->conn.remote_bda; in OnGattConnect()
387 RawAddress remote_bda = p_data->req_data.remote_bda; in OnReadDescriptor() local
405 if (trackers_.find(remote_bda) != trackers_.end()) { in OnReadDescriptor()
406 ccc_value = trackers_[remote_bda].ccc_values_[characteristic->uuid_]; in OnReadDescriptor()
421 RawAddress remote_bda = p_data->req_data.remote_bda; in OnWriteCharacteristic() local
446 if (trackers_.find(p_data->req_data.remote_bda) == trackers_.end()) { in OnWriteCharacteristic()
447 log::warn("Can't find trackers for {}", p_data->req_data.remote_bda); in OnWriteCharacteristic()
452 ClientTracker* tracker = &trackers_[p_data->req_data.remote_bda]; in OnWriteCharacteristic()
478 RawAddress remote_bda = p_data->req_data.remote_bda; in WriteVendorSpecificCharacteristic() local
480 if (trackers_.find(remote_bda) == trackers_.end()) { in WriteVendorSpecificCharacteristic()
[all …]
/packages/modules/Bluetooth/system/stack/test/
Dstack_smp_test.cc138 Octet16 smp_gen_p2_4_confirm(tSMP_CB* p_cb, const RawAddress& remote_bda);
211 [](const RawAddress& remote_bda, RawAddress& local_conn_addr, in TEST_F()
226 RawAddress remote_bda; in TEST_F() local
228 BTM_ReadRemoteConnectionAddr(p_cb_.pairing_bda, remote_bda, in TEST_F()
232 Octet16 p2 = smp_gen_p2_4_confirm(&p_cb_, remote_bda); in TEST_F()
247 [](const RawAddress& remote_bda, RawAddress& local_conn_addr, in TEST_F()
262 RawAddress remote_bda; in TEST_F() local
264 BTM_ReadRemoteConnectionAddr(p_cb_.pairing_bda, remote_bda, in TEST_F()
294 [](const RawAddress& remote_bda, RawAddress& local_conn_addr, in TEST_F()
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_attr.cc124 uint16_t gatt_profile_find_conn_id_by_bd_addr(const RawAddress& remote_bda) { in gatt_profile_find_conn_id_by_bd_addr() argument
126 if (!GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
131 remote_bda, gatt_cb.gatt_if, bt_transport_text(BT_TRANSPORT_LE)); in gatt_profile_find_conn_id_by_bd_addr()
134 if (!GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
139 remote_bda, gatt_cb.gatt_if, bt_transport_text(BT_TRANSPORT_BR_EDR)); in gatt_profile_find_conn_id_by_bd_addr()
770 void GATT_ConfigServiceChangeCCC(const RawAddress& remote_bda, in GATT_ConfigServiceChangeCCC() argument
773 gatt_profile_find_clcb_by_bd_addr(remote_bda, transport); in GATT_ConfigServiceChangeCCC()
776 p_clcb = gatt_profile_clcb_alloc(0, remote_bda, transport); in GATT_ConfigServiceChangeCCC()
780 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, in GATT_ConfigServiceChangeCCC()
787 remote_bda, gatt_cb.gatt_if, bt_transport_text(BT_TRANSPORT_LE)); in GATT_ConfigServiceChangeCCC()
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco.cc730 tBTM_STATUS BTM_CreateSco(const RawAddress* remote_bda, bool is_orig, in BTM_CreateSco() argument
746 if (!remote_bda) { in BTM_CreateSco()
750 acl_handle = BTM_GetHCIConnHandle(*remote_bda, BT_TRANSPORT_BR_EDR); in BTM_CreateSco()
752 log::error("cannot find ACL handle for remote device {}", *remote_bda); in BTM_CreateSco()
757 if (remote_bda) { in BTM_CreateSco()
762 (p->esco.data.bd_addr == *remote_bda)) { in BTM_CreateSco()
764 *remote_bda, unsigned(p->state)); in BTM_CreateSco()
783 if (remote_bda) { in BTM_CreateSco()
787 if (BTM_ReadPowerMode(*remote_bda, &state)) { in BTM_CreateSco()
790 log::info("{} in sniff, park or pending mode {}", *remote_bda, in BTM_CreateSco()
[all …]

1234