Home
last modified time | relevance | path

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

/system/bt/stack/btm/
Dbtm_ble_privacy.c201 p_dev_rec->ble.in_controller_list |= BTM_RESOLVING_LIST_BIT; in btm_ble_update_resolving_list()
203 p_dev_rec->ble.resolving_list_index = btm_ble_find_irk_index(); in btm_ble_update_resolving_list()
207 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; in btm_ble_update_resolving_list()
211 btm_ble_clear_irk_index(p_dev_rec->ble.resolving_list_index); in btm_ble_update_resolving_list()
212 p_dev_rec->ble.resolving_list_index = 0; in btm_ble_update_resolving_list()
220 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; in clear_resolving_list_bit()
460 if (btsnd_hcic_ble_rm_device_resolving_list(p_dev_rec->ble.static_addr_type, in btm_ble_remove_resolving_list_entry()
461 p_dev_rec->ble.static_addr)) in btm_ble_remove_resolving_list_entry()
470 UINT8_TO_STREAM(p, p_dev_rec->ble.static_addr_type); in btm_ble_remove_resolving_list_entry()
471 BDADDR_TO_STREAM(p, p_dev_rec->ble.static_addr); in btm_ble_remove_resolving_list_entry()
[all …]
Dbtm_ble.c109 p_dev_rec->ble.ble_addr_type = addr_type; in BTM_SecAddBleDevice()
111 memcpy(p_dev_rec->ble.pseudo_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddBleDevice()
116 p_info->results.ble_addr_type = p_dev_rec->ble.ble_addr_type ; in BTM_SecAddBleDevice()
352 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadRemoteConnectionAddr()
627 p_dev_rec->ble.ble_addr_type = p_inq_info->results.ble_addr_type; in BTM_ReadDevInfo()
630 memcmp(p_dev_rec->ble.pseudo_addr, remote_bda, BD_ADDR_LEN) == 0) in BTM_ReadDevInfo()
633 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadDevInfo()
635 else if (memcmp(p_dev_rec->ble.pseudo_addr, remote_bda, BD_ADDR_LEN) == 0) in BTM_ReadDevInfo()
638 *p_addr_type = p_dev_rec->ble.ble_addr_type; in BTM_ReadDevInfo()
690 memcpy(remote_bda, p_dev_rec->ble.pseudo_addr, BD_ADDR_LEN); in BTM_ReadConnectedTransportAddress()
[all …]
Dbtm_ble_addr.c254 if (memcmp(p_dev_rec->ble.pseudo_addr, dummy_bda, BD_ADDR_LEN) == 0) in btm_ble_init_pseudo_addr()
256 memcpy(p_dev_rec->ble.pseudo_addr, new_pseudo_addr, BD_ADDR_LEN); in btm_ble_init_pseudo_addr()
282 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) in btm_ble_addr_resolvable()
291 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN, in btm_ble_addr_resolvable()
338 !(p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) in btm_ble_match_random_bda()
342 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN, in btm_ble_match_random_bda()
400 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) == 0) { in btm_find_dev_by_identity_addr()
401 if ((p_dev_rec->ble.static_addr_type & (~BLE_ADDR_TYPE_ID_BIT)) != in btm_find_dev_by_identity_addr()
404 __func__, p_dev_rec->ble.static_addr_type, addr_type); in btm_find_dev_by_identity_addr()
438 memcpy(bd_addr, p_dev_rec->ble.pseudo_addr, BD_ADDR_LEN); in btm_identity_addr_to_random_pseudo()
[all …]
Dbtm_ble_bgconn.c157 … if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_PUBLIC || !BTM_BLE_IS_RESOLVE_BDA(bd_addr)) { in btm_add_dev_to_controller()
158 started = btsnd_hcic_ble_add_white_list(p_dev_rec->ble.ble_addr_type, bd_addr); in btm_add_dev_to_controller()
159 p_dev_rec->ble.in_controller_list |= BTM_WHITE_LIST_BIT; in btm_add_dev_to_controller()
160 } else if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller()
161 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) { in btm_add_dev_to_controller()
162 started = btsnd_hcic_ble_add_white_list(p_dev_rec->ble.static_addr_type, in btm_add_dev_to_controller()
163 p_dev_rec->ble.static_addr); in btm_add_dev_to_controller()
164 p_dev_rec->ble.in_controller_list |= BTM_WHITE_LIST_BIT; in btm_add_dev_to_controller()
167 if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_PUBLIC || !BTM_BLE_IS_RESOLVE_BDA(bd_addr)) in btm_add_dev_to_controller()
168 … started = btsnd_hcic_ble_remove_from_white_list(p_dev_rec->ble.ble_addr_type, bd_addr); in btm_add_dev_to_controller()
[all …]
Dbtm_dev.c266 p_dev_rec->ble.ble_addr_type = p_inq_info->results.ble_addr_type; in btm_sec_alloc_dev()
305 memset(&p_dev_rec->ble, 0, sizeof(tBTM_SEC_BLE)); in btm_sec_free_dev()
408 if (!memcmp(p_dev_rec->ble.pseudo_addr, *bd_addr, BD_ADDR_LEN)) in is_address_equal()
465 p_target_rec->ble = temp_rec.ble; in btm_consolidate_dev()
486 if (memcmp(p_target_rec->ble.pseudo_addr, p_dev_rec->bd_addr, BD_ADDR_LEN) == 0) in btm_consolidate_dev()
488 p_target_rec->ble.ble_addr_type = p_dev_rec->ble.ble_addr_type; in btm_consolidate_dev()
Dbtm_ble_gap.c756 match_rec->ble.active_addr_type = BTM_BLE_ADDR_RRA; in btm_ble_resolve_random_addr_on_adv()
757 memcpy(match_rec->ble.cur_rand_addr, bda, BD_ADDR_LEN); in btm_ble_resolve_random_addr_on_adv()
764 memcpy(bda, match_rec->ble.pseudo_addr, BD_ADDR_LEN); in btm_ble_resolve_random_addr_on_adv()
928 if ((p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) != 0) in is_resolving_list_bit_set()
973 p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) in btm_set_conn_mode_adv_init_addr()
976 memcpy(p_peer_addr_ptr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_set_conn_mode_adv_init_addr()
977 *p_peer_addr_type = p_dev_rec->ble.static_addr_type; in btm_set_conn_mode_adv_init_addr()
1005 memcpy(p_peer_addr_ptr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_set_conn_mode_adv_init_addr()
1006 *p_peer_addr_type = p_dev_rec->ble.static_addr_type; in btm_set_conn_mode_adv_init_addr()
Dbtm_acl.c171 switch (p_dev_rec->ble.active_addr_type) in btm_ble_get_acl_remote_addr()
175 * p_addr_type = p_dev_rec->ble.ble_addr_type; in btm_ble_get_acl_remote_addr()
179 memcpy(conn_addr, p_dev_rec->ble.cur_rand_addr, BD_ADDR_LEN); in btm_ble_get_acl_remote_addr()
184 memcpy(conn_addr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_ble_get_acl_remote_addr()
185 * p_addr_type = p_dev_rec->ble.static_addr_type; in btm_ble_get_acl_remote_addr()
189 BTM_TRACE_ERROR("Unknown active address: %d", p_dev_rec->ble.active_addr_type); in btm_ble_get_acl_remote_addr()
Dbtm_sec.c4252 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_encrypt_change()
4254 btm_ble_link_encrypted(p_dev_rec->ble.pseudo_addr, encr_enable); in btm_sec_encrypt_change()
5950 (*p_callback) (p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE, p_dev_rec->p_ref_data, res); in btm_sec_dev_rec_cback_event()
6233 p_dev_rec->ble.key_type = BTM_LE_KEY_NONE; in btm_sec_clear_ble_keys()
6234 memset (&p_dev_rec->ble.keys, 0, sizeof(tBTM_SEC_BLE_KEYS)); in btm_sec_clear_ble_keys()
6259 ((p_dev_rec->ble.key_type && (p_dev_rec->sec_flags & BTM_SEC_LE_LINK_KEY_KNOWN))|| in btm_sec_is_a_bonded_dev()
Dbtm_int.h605 tBTM_SEC_BLE ble; member
/system/bt/btif/src/
Dbtif_dm.c121 btif_dm_ble_cb_t ble; member
1859 pairing_cb.ble.is_penc_key_rcvd = TRUE; in btif_dm_upstreams_evt()
1860 pairing_cb.ble.penc_key = p_data->ble_key.p_key_value->penc_key; in btif_dm_upstreams_evt()
1865 pairing_cb.ble.is_pid_key_rcvd = TRUE; in btif_dm_upstreams_evt()
1866 pairing_cb.ble.pid_key = p_data->ble_key.p_key_value->pid_key; in btif_dm_upstreams_evt()
1871 pairing_cb.ble.is_pcsrk_key_rcvd = TRUE; in btif_dm_upstreams_evt()
1872 pairing_cb.ble.pcsrk_key = p_data->ble_key.p_key_value->pcsrk_key; in btif_dm_upstreams_evt()
1877 pairing_cb.ble.is_lenc_key_rcvd = TRUE; in btif_dm_upstreams_evt()
1878 pairing_cb.ble.lenc_key = p_data->ble_key.p_key_value->lenc_key; in btif_dm_upstreams_evt()
1883 pairing_cb.ble.is_lcsrk_key_rcvd = TRUE; in btif_dm_upstreams_evt()
[all …]
/system/bt/service/example/heart_rate/
Dheart_rate_server.cpp329 auto ble = bluetooth_->GetLowEnergyInterface(); in OnServiceAdded() local
330 if (!ble.get()) { in OnServiceAdded()
334 ble->RegisterClient(new CLIBluetoothLowEnergyCallback(bluetooth_)); in OnServiceAdded()
/system/bt/stack/
DAndroid.mk24 $(LOCAL_PATH)/../vnd/ble \
DBUILD.gn154 "//vnd/ble",
/system/bt/stack/l2cap/
Dl2c_ble.c900 if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) in l2cble_init_direct_conn()
911 if (!bdaddr_is_empty((const bt_bdaddr_t *)p_dev_rec->ble.cur_rand_addr)) { in l2cble_init_direct_conn()
912 memcpy(peer_addr, p_dev_rec->ble.cur_rand_addr, BD_ADDR_LEN); in l2cble_init_direct_conn()
/system/bt/stack/smp/
Dsmp_act.c2063 0 == memcmp(p_dev_rec->ble.pseudo_addr, smp_cb.pairing_bda, BD_ADDR_LEN) && in smp_proc_ltk_request()
2064 0 != memcmp(p_dev_rec->ble.pseudo_addr, dummy_bda, BD_ADDR_LEN)) in smp_proc_ltk_request()