Home
last modified time | relevance | path

Searched refs:ble (Results 1 – 22 of 22) sorted by relevance

/system/bt/stack/btm/
Dbtm_ble_addr.cc137 if (p_dev_rec->ble.pseudo_addr.IsEmpty()) { in btm_ble_init_pseudo_addr()
138 p_dev_rec->ble.pseudo_addr = new_pseudo_addr; in btm_ble_init_pseudo_addr()
177 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) { in btm_ble_addr_resolvable()
180 if (rpa_matches_irk(rpa, p_dev_rec->ble.keys.irk)) { in btm_ble_addr_resolvable()
196 !(p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) in btm_ble_match_random_bda()
200 if (rpa_matches_irk(*random_bda, p_dev_rec->ble.keys.irk)) { in btm_ble_match_random_bda()
231 if (p_dev_rec->ble.identity_address_with_type.bda == bd_addr) { in btm_find_dev_by_identity_addr()
232 if ((p_dev_rec->ble.identity_address_with_type.type & in btm_find_dev_by_identity_addr()
236 __func__, p_dev_rec->ble.identity_address_with_type.type, in btm_find_dev_by_identity_addr()
272 *bd_addr = p_dev_rec->ble.pseudo_addr; in btm_identity_addr_to_random_pseudo()
[all …]
Dbtm_ble_privacy.cc196 p_dev_rec->ble.in_controller_list |= BTM_RESOLVING_LIST_BIT; in btm_ble_update_resolving_list()
198 p_dev_rec->ble.resolving_list_index = btm_ble_find_irk_index(); in btm_ble_update_resolving_list()
200 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; in btm_ble_update_resolving_list()
203 btm_ble_clear_irk_index(p_dev_rec->ble.resolving_list_index); in btm_ble_update_resolving_list()
204 p_dev_rec->ble.resolving_list_index = 0; in btm_ble_update_resolving_list()
211 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; in clear_resolving_list_bit()
423 p_dev_rec->ble.identity_address_with_type.type, in btm_ble_remove_resolving_list_entry()
424 p_dev_rec->ble.identity_address_with_type.bda); in btm_ble_remove_resolving_list_entry()
430 UINT8_TO_STREAM(p, p_dev_rec->ble.identity_address_with_type.type); in btm_ble_remove_resolving_list_entry()
431 BDADDR_TO_STREAM(p, p_dev_rec->ble.identity_address_with_type.bda); in btm_ble_remove_resolving_list_entry()
[all …]
Dbtm_ble.cc88 p_dev_rec->ble.ble_addr_type = addr_type; in BTM_SecAddBleDevice()
90 p_dev_rec->ble.pseudo_addr = bd_addr; in BTM_SecAddBleDevice()
94 p_info->results.ble_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_SecAddBleDevice()
365 oob.peer_oob_data.addr_rcvd_from.type = p_dev_rec->ble.ble_addr_type; in BTM_BleSecureConnectionOobDataReply()
482 p_dev_rec->ble.ble_addr_type = p_inq_info->results.ble_addr_type; in BTM_ReadDevInfo()
485 p_dev_rec->ble.pseudo_addr == remote_bda) { in BTM_ReadDevInfo()
487 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadDevInfo()
488 } else if (p_dev_rec->ble.pseudo_addr == remote_bda) { in BTM_ReadDevInfo()
490 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadDevInfo()
539 *remote_bda = p_dev_rec->ble.pseudo_addr; in BTM_ReadConnectedTransportAddress()
[all …]
Dbtm_ble_bgconn.cc205 if (p_dev_rec->ble.identity_address_with_type.bda.IsEmpty()) { in convert_to_address_with_type()
207 .type = p_dev_rec->ble.ble_addr_type, in convert_to_address_with_type()
211 return p_dev_rec->ble.identity_address_with_type; in convert_to_address_with_type()
226 if (!p_dev_rec->ble.identity_address_with_type.bda.IsEmpty()) { in btm_add_dev_to_controller()
230 PRIVATE_ADDRESS(p_dev_rec->ble.identity_address_with_type)); in btm_add_dev_to_controller()
232 p_dev_rec->ble.identity_address_with_type.type, in btm_add_dev_to_controller()
233 p_dev_rec->ble.identity_address_with_type.bda); in btm_add_dev_to_controller()
239 background_connection_add(p_dev_rec->ble.ble_addr_type, bd_addr); in btm_add_dev_to_controller()
241 if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_RANDOM && in btm_add_dev_to_controller()
247 p_dev_rec->ble.in_controller_list |= BTM_ACCEPTLIST_BIT; in btm_add_dev_to_controller()
[all …]
Dbtm_dev.cc127 memset(&p_dev_rec->ble.keys, 0, sizeof(tBTM_SEC_BLE_KEYS)); in wipe_secrets_and_remove()
228 p_dev_rec->ble.ble_addr_type = p_inq_info->results.ble_addr_type; in btm_sec_alloc_dev()
323 if (p_dev_rec->ble.pseudo_addr == *bd_addr) return false; in is_address_equal()
374 p_target_rec->ble = temp_rec.ble; in btm_consolidate_dev()
393 if (p_target_rec->ble.pseudo_addr == p_dev_rec->bd_addr) { in btm_consolidate_dev()
394 p_target_rec->ble.ble_addr_type = p_dev_rec->ble.ble_addr_type; in btm_consolidate_dev()
Dbtm_client_interface.cc130 .ble =
Dbtm_ble_gap.cc755 if ((p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) != 0) in is_resolving_list_bit_set()
798 p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) { 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()
801 *p_peer_addr_type = p_dev_rec->ble.identity_address_with_type.type; 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()
830 *p_peer_addr_type = p_dev_rec->ble.identity_address_with_type.type; in btm_set_conn_mode_adv_init_addr()
1708 match_rec->ble.active_addr_type = tBTM_SEC_BLE::BTM_BLE_ADDR_RRA; in btm_ble_process_adv_addr()
1709 match_rec->ble.cur_rand_addr = bda; in btm_ble_process_adv_addr()
1715 bda = match_rec->ble.pseudo_addr; in btm_ble_process_adv_addr()
1716 *addr_type = match_rec->ble.ble_addr_type; in btm_ble_process_adv_addr()
Dsecurity_device_record.h426 tBTM_SEC_BLE ble; member
Dbtm_sec.cc3265 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_encrypt_change()
3267 btm_ble_link_encrypted(p_dev_rec->ble.pseudo_addr, encr_enable); in btm_sec_encrypt_change()
3775 if (is_sample_ltk(p_dev_rec->ble.keys.pltk)) { in btm_sec_disconnected()
4615 (*p_callback)(&p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE, in btm_sec_dev_rec_cback_event()
4808 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_clear_ble_keys()
4809 memset(&p_dev_rec->ble.keys, 0, sizeof(tBTM_SEC_BLE_KEYS)); in btm_sec_clear_ble_keys()
4827 if (p_dev_rec && ((p_dev_rec->ble.key_type && in btm_sec_is_a_bonded_dev()
/system/bt/stack/acl/
Dbtm_ble_connection_establishment.cc130 match_rec->ble.active_addr_type = tBTM_SEC_BLE::BTM_BLE_ADDR_RRA; in maybe_resolve_address()
131 match_rec->ble.cur_rand_addr = *bda; in maybe_resolve_address()
134 *bda = match_rec->ble.pseudo_addr; in maybe_resolve_address()
135 *bda_type = match_rec->ble.ble_addr_type; in maybe_resolve_address()
Dble_acl.cc171 gatt_notify_conn_update(p_dev_rec->ble.pseudo_addr, interval, latency, in acl_ble_update_event_received()
/system/bt/service/example/heart_rate/
Dheart_rate_server.cc76 android::sp<IBluetoothLeAdvertiser> ble; in OnAdvertiserRegistered() local
77 bt_->GetLeAdvertiserInterface(&ble); in OnAdvertiserRegistered()
79 ble->StartMultiAdvertising(advertiser_id, adv_data, scan_rsp, settings, in OnAdvertiserRegistered()
303 android::sp<IBluetoothLeAdvertiser> ble; in OnServiceAdded() local
304 bluetooth_->GetLeAdvertiserInterface(&ble); in OnServiceAdded()
306 ble->RegisterAdvertiser(new CLIBluetoothLeAdvertiserCallback(bluetooth_), in OnServiceAdded()
/system/bt/btif/src/
Dbtif_dm.cc131 btif_dm_ble_cb_t ble; member
954 (!pairing_cb.ble.is_penc_key_rcvd)) { in btif_dm_auth_cmpl_evt()
1613 pairing_cb.ble.is_penc_key_rcvd = true; in btif_dm_upstreams_evt()
1614 pairing_cb.ble.penc_key = p_data->ble_key.p_key_value->penc_key; in btif_dm_upstreams_evt()
1619 pairing_cb.ble.is_pid_key_rcvd = true; in btif_dm_upstreams_evt()
1620 pairing_cb.ble.pid_key = p_data->ble_key.p_key_value->pid_key; in btif_dm_upstreams_evt()
1625 pairing_cb.ble.is_pcsrk_key_rcvd = true; in btif_dm_upstreams_evt()
1626 pairing_cb.ble.pcsrk_key = p_data->ble_key.p_key_value->pcsrk_key; in btif_dm_upstreams_evt()
1631 pairing_cb.ble.is_lenc_key_rcvd = true; in btif_dm_upstreams_evt()
1632 pairing_cb.ble.lenc_key = p_data->ble_key.p_key_value->lenc_key; in btif_dm_upstreams_evt()
[all …]
/system/bt/main/shim/
Dbtm.cc666 if (!p_dev_rec->ble.identity_address_with_type.bda.IsEmpty()) { in GetAddressAndType()
667 return ToAddressWithType(p_dev_rec->ble.identity_address_with_type.bda, in GetAddressAndType()
668 p_dev_rec->ble.identity_address_with_type.type); in GetAddressAndType()
670 return ToAddressWithType(p_dev_rec->ble.pseudo_addr, in GetAddressAndType()
671 p_dev_rec->ble.ble_addr_type); in GetAddressAndType()
/system/bt/gd/rust/shim/src/
Dcontroller.rs59 ble
/system/bt/stack/gatt/
Dgatt_main.cc187 if (p_dev_rec->ble.identity_address_with_type.bda.IsEmpty()) { in gatt_find_in_device_record()
188 *address_with_type = {.type = p_dev_rec->ble.ble_addr_type, in gatt_find_in_device_record()
192 *address_with_type = p_dev_rec->ble.identity_address_with_type; in gatt_find_in_device_record()
511 gatt_find_tcb_by_addr(p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE); in gatt_notify_phy_updated()
/system/bt/stack/include/
Dbtm_client_interface.h183 } ble; member
/system/bt/gd/rust/hci/src/
Dcontroller.rs272 ble => 0:38,
/system/bt/stack/
DAndroid.bp62 "system/bt/vnd/ble",
744 "system/bt/vnd/ble",
831 "system/bt/vnd/ble",
DBUILD.gn209 "//bt/vnd/ble",
/system/bt/stack/smp/
Dsmp_act.cc2015 if (p_dev_rec != NULL && p_dev_rec->ble.pseudo_addr == smp_cb.pairing_bda && in smp_proc_ltk_request()
2016 p_dev_rec->ble.pseudo_addr != RawAddress::kEmpty) { in smp_proc_ltk_request()
/system/bt/bta/dm/
Dbta_dm_act.cc368 get_btm_client_interface().ble.BTM_BleLoadLocalKeys( in BTA_dm_on_hw_on()
372 get_btm_client_interface().ble.BTM_BleLoadLocalKeys( in BTA_dm_on_hw_on()