/system/bt/stack/btm/ |
H A D | btm_ble_addr.cc | 210 bool btm_ble_init_pseudo_addr(tBTM_SEC_DEV_REC* p_dev_rec, argument 212 if (p_dev_rec->ble.pseudo_addr.IsEmpty()) { 213 p_dev_rec->ble.pseudo_addr = new_pseudo_addr; 231 tBTM_SEC_DEV_REC* p_dev_rec) { 238 if ((p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) && 239 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) { 247 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN, &rand[0], 3, &output); 254 btm_ble_init_pseudo_addr(p_dev_rec, rpa); 285 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 287 BTM_TRACE_DEBUG("sec_flags = %02x device_type = %d", p_dev_rec 230 btm_ble_addr_resolvable(const RawAddress& rpa, tBTM_SEC_DEV_REC* p_dev_rec) argument 318 tBTM_SEC_DEV_REC* p_dev_rec = nullptr; local 342 tBTM_SEC_DEV_REC* p_dev_rec = local 371 tBTM_SEC_DEV_REC* p_dev_rec = local 404 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(*random_pseudo); local [all...] |
H A D | btm_dev.cc | 68 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 69 if (!p_dev_rec) { 70 p_dev_rec = btm_sec_allocate_dev_rec(); 72 p_dev_rec->bd_addr = bd_addr; 73 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); 77 memset(&p_dev_rec->conn_params, 0xff, sizeof(tBTM_LE_CONN_PRAMS)); 80 p_dev_rec->timestamp = btm_cb.dev_rec_count++; 88 p_dev_rec->bond_type = BOND_TYPE_UNKNOWN; 91 if (dev_class) memcpy(p_dev_rec->dev_class, dev_class, DEV_CLASS_LEN); 93 memset(p_dev_rec 169 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 188 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 230 tBTM_SEC_DEV_REC* p_dev_rec = btm_sec_allocate_dev_rec(); local 261 btm_sec_free_dev(tBTM_SEC_DEV_REC* p_dev_rec) argument 280 tBTM_SEC_DEV_REC* p_dev_rec; local 316 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 343 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 389 tBTM_SEC_DEV_REC* p_dev_rec = local 439 tBTM_SEC_DEV_REC* p_dev_rec; local 469 tBTM_SEC_DEV_REC* p_dev_rec = local 507 tBTM_SEC_DEV_REC* p_dev_rec = NULL; local 538 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 557 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local [all...] |
H A D | btm_devctl.cc | 154 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 155 p_dev_rec->sec_state = BTM_SEC_STATE_IDLE;
|
H A D | btm_ble_bgconn.cc | 177 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 180 if (p_dev_rec != NULL && p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) { 182 if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_PUBLIC || 184 background_connection_add(p_dev_rec->ble.ble_addr_type, bd_addr); 186 p_dev_rec->ble.in_controller_list |= BTM_WHITE_LIST_BIT; 187 } else if (p_dev_rec->ble.static_addr != bd_addr && 188 !p_dev_rec->ble.static_addr.IsEmpty()) { 189 background_connection_add(p_dev_rec->ble.static_addr_type, 190 p_dev_rec [all...] |
H A D | btm_ble_privacy.cc | 189 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(pseudo_bda); local 190 if (p_dev_rec == NULL) return; 193 p_dev_rec->ble.in_controller_list |= BTM_RESOLVING_LIST_BIT; 195 p_dev_rec->ble.resolving_list_index = btm_ble_find_irk_index(); 197 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; 200 btm_ble_clear_irk_index(p_dev_rec->ble.resolving_list_index); 201 p_dev_rec->ble.resolving_list_index = 0; 207 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 208 p_dev_rec->ble.in_controller_list &= ~BTM_RESOLVING_LIST_BIT; 412 tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) { argument 472 btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) argument 683 btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC* p_dev_rec) argument 776 btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec) argument [all...] |
H A D | btm_acl.cc | 141 bool btm_ble_get_acl_remote_addr(tBTM_SEC_DEV_REC* p_dev_rec, argument 146 if (p_dev_rec == NULL) { 151 switch (p_dev_rec->ble.active_addr_type) { 153 conn_addr = p_dev_rec->bd_addr; 154 *p_addr_type = p_dev_rec->ble.ble_addr_type; 158 conn_addr = p_dev_rec->ble.cur_rand_addr; 163 conn_addr = p_dev_rec->ble.static_addr; 164 *p_addr_type = p_dev_rec->ble.static_addr_type; 169 p_dev_rec->ble.active_addr_type); 190 tBTM_SEC_DEV_REC* p_dev_rec local 339 tBTM_SEC_DEV_REC* p_dev_rec = NULL; local 536 tBTM_SEC_DEV_REC* p_dev_rec = NULL; local 645 tBTM_SEC_DEV_REC* p_dev_rec; local 822 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); local 909 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 1385 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1436 tBTM_SEC_DEV_REC* p_dev_rec; local 2425 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 2472 btm_cont_rswitch(tACL_CONN* p, tBTM_SEC_DEV_REC* p_dev_rec, uint8_t hci_status) argument 2510 tBTM_SEC_DEV_REC* p_dev_rec; local 2561 tBTM_SEC_DEV_REC* p_dev_rec; local [all...] |
H A D | btm_ble.cc | 74 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 75 if (!p_dev_rec) { 76 p_dev_rec = btm_sec_allocate_dev_rec(); 78 p_dev_rec->bd_addr = bd_addr; 79 p_dev_rec->hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_BR_EDR); 80 p_dev_rec->ble_hci_handle = BTM_GetHCIConnHandle(bd_addr, BT_TRANSPORT_LE); 83 p_dev_rec->conn_params.min_conn_int = BTM_BLE_CONN_PARAM_UNDEF; 84 p_dev_rec->conn_params.max_conn_int = BTM_BLE_CONN_PARAM_UNDEF; 85 p_dev_rec->conn_params.supervision_tout = BTM_BLE_CONN_PARAM_UNDEF; 86 p_dev_rec 132 tBTM_SEC_DEV_REC* p_dev_rec; local 323 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(pseudo_addr); local 371 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 398 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 430 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 458 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 539 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 602 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(remote_bda); local 658 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(*remote_bda); local 1192 tBTM_SEC_DEV_REC* p_dev_rec; local 1219 tBTM_SEC_DEV_REC* p_dev_rec; local 1240 tBTM_SEC_DEV_REC* p_dev_rec; local 1453 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1593 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 1665 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1744 btm_ble_io_capabilities_req(tBTM_SEC_DEV_REC* p_dev_rec, tBTM_LE_IO_REQ* p_data) argument 1828 btm_ble_br_keys_req(tBTM_SEC_DEV_REC* p_dev_rec, tBTM_LE_IO_REQ* p_data) argument 1854 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local 2017 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 2250 tBTM_SEC_DEV_REC* p_dev_rec; local 2306 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 2331 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local [all...] |
H A D | btm_ble_gap.cc | 778 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 780 if ((p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) != 0) 801 tBTM_SEC_DEV_REC* p_dev_rec; local 820 if ((p_dev_rec = btm_find_or_alloc_dev(p_cb->direct_bda.bda)) != NULL && 821 p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) { 823 p_peer_addr_ptr = p_dev_rec->ble.static_addr; 824 *p_peer_addr_type = p_dev_rec->ble.static_addr_type; 852 tBTM_SEC_DEV_REC* p_dev_rec = local 854 p_peer_addr_ptr = p_dev_rec->ble.static_addr; 855 *p_peer_addr_type = p_dev_rec 2143 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local [all...] |
H A D | btm_sec.cc | 61 static tBTM_STATUS btm_sec_execute_procedure(tBTM_SEC_DEV_REC* p_dev_rec); 62 static bool btm_sec_start_get_name(tBTM_SEC_DEV_REC* p_dev_rec); 63 static void btm_sec_start_authentication(tBTM_SEC_DEV_REC* p_dev_rec); 64 static void btm_sec_start_encryption(tBTM_SEC_DEV_REC* p_dev_rec); 68 static tBTM_STATUS btm_sec_dd_create_conn(tBTM_SEC_DEV_REC* p_dev_rec); 80 static void btm_send_link_key_notif(tBTM_SEC_DEV_REC* p_dev_rec); 81 static bool btm_sec_check_prefetch_pin(tBTM_SEC_DEV_REC* p_dev_rec); 83 static uint8_t btm_sec_start_authorization(tBTM_SEC_DEV_REC* p_dev_rec); 86 static tBTM_STATUS btm_sec_send_hci_disconnect(tBTM_SEC_DEV_REC* p_dev_rec, 89 uint8_t btm_sec_start_role_switch(tBTM_SEC_DEV_REC* p_dev_rec); 140 btm_dev_authenticated(tBTM_SEC_DEV_REC* p_dev_rec) argument 156 btm_dev_encrypted(tBTM_SEC_DEV_REC* p_dev_rec) argument 172 btm_dev_authorized(tBTM_SEC_DEV_REC* p_dev_rec) argument 188 btm_dev_16_digit_authenticated(tBTM_SEC_DEV_REC* p_dev_rec) argument 205 btm_serv_trusted(tBTM_SEC_DEV_REC* p_dev_rec, tBTM_SEC_SERV_REC* p_serv_rec) argument 324 tBTM_SEC_DEV_REC* p_dev_rec; local 347 tBTM_SEC_DEV_REC* p_dev_rec; local 784 tBTM_SEC_DEV_REC* p_dev_rec; local 821 tBTM_SEC_DEV_REC* p_dev_rec; local 944 tBTM_SEC_DEV_REC* p_dev_rec; local 1170 tBTM_SEC_DEV_REC* p_dev_rec; local 1251 tBTM_SEC_DEV_REC* p_dev_rec; local 1275 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1316 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1393 btm_sec_send_hci_disconnect(tBTM_SEC_DEV_REC* p_dev_rec, uint8_t reason, uint16_t conn_handle) argument 1458 tBTM_SEC_DEV_REC* p_dev_rec; local 1518 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 1770 tBTM_SEC_DEV_REC* p_dev_rec; local 1855 tBTM_SEC_DEV_REC* p_dev_rec; local 1890 btm_sec_is_upgrade_possible(tBTM_SEC_DEV_REC* p_dev_rec, bool is_originator) argument 1945 btm_sec_check_upgrade(tBTM_SEC_DEV_REC* p_dev_rec, bool is_originator) argument 2001 tBTM_SEC_DEV_REC* p_dev_rec; local 2417 tBTM_SEC_DEV_REC* p_dev_rec; local 2643 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local 2716 tBTM_SEC_DEV_REC* p_dev_rec; local 2892 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 2914 btm_sec_dd_create_conn(tBTM_SEC_DEV_REC* p_dev_rec) argument 2955 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 2975 tBTM_SEC_DEV_REC* p_dev_rec; local 3228 tBTM_SEC_DEV_REC* p_dev_rec; local 3264 tBTM_SEC_DEV_REC* p_dev_rec; local 3449 tBTM_SEC_DEV_REC* p_dev_rec; local 3516 tBTM_SEC_DEV_REC* p_dev_rec; local 3682 tBTM_SEC_DEV_REC* p_dev_rec; local 3756 tBTM_SEC_DEV_REC* p_dev_rec; local 3826 tBTM_SEC_DEV_REC* p_dev_rec; local 3867 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 3912 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 4072 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 4222 tBTM_SEC_DEV_REC* p_dev_rec = btm_cb.p_collided_dev_rec; local 4252 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local 4551 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 4583 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 4696 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(p_bda); local 4825 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); local 4863 tBTM_SEC_DEV_REC* p_dev_rec; local 4975 tBTM_SEC_DEV_REC* p_dev_rec; local 5107 tBTM_SEC_DEV_REC* p_dev_rec; local 5140 btm_sec_execute_procedure(tBTM_SEC_DEV_REC* p_dev_rec) argument 5280 btm_sec_start_get_name(tBTM_SEC_DEV_REC* p_dev_rec) argument 5303 btm_sec_start_authentication(tBTM_SEC_DEV_REC* p_dev_rec) argument 5315 btm_sec_start_encryption(tBTM_SEC_DEV_REC* p_dev_rec) argument 5329 btm_sec_start_authorization(tBTM_SEC_DEV_REC* p_dev_rec) argument 5540 btm_send_link_key_notif(tBTM_SEC_DEV_REC* p_dev_rec) argument 5560 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 5592 tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data); local 5704 btm_sec_dev_rec_cback_event(tBTM_SEC_DEV_REC* p_dev_rec, uint8_t res, bool is_le_transport) argument 5756 btm_sec_check_prefetch_pin(tBTM_SEC_DEV_REC* p_dev_rec) argument 5864 btm_sec_set_peer_sec_caps(tACL_CONN* p_acl_cb, tBTM_SEC_DEV_REC* p_dev_rec) argument 5919 btm_sec_check_pending_enc_req(tBTM_SEC_DEV_REC* p_dev_rec, tBT_TRANSPORT transport, uint8_t encr_enable) argument 5976 btm_sec_clear_ble_keys(tBTM_SEC_DEV_REC* p_dev_rec) argument 5996 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local 6018 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local 6041 btm_sec_use_smp_br_chnl(tBTM_SEC_DEV_REC* p_dev_rec) argument 6070 btm_sec_is_master(tBTM_SEC_DEV_REC* p_dev_rec) argument [all...] |
/system/bt/stack/hid/ |
H A D | hidh_api.cc | 540 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bd_addr); local 541 if ((p_dev_rec != NULL) && 542 ((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) ==
|
/system/bt/stack/gatt/ |
H A D | gatt_main.cc | 508 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle); local 509 if (!p_dev_rec) { 514 gatt_find_tcb_by_addr(p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE);
|
/system/bt/stack/l2cap/ |
H A D | l2c_ble.cc | 262 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); local 316 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, 347 tBTM_SEC_DEV_REC* p_dev_rec; local 386 p_dev_rec = btm_find_or_alloc_dev(bda); 388 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, 833 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(p_lcb->remote_bd_addr); local 842 if (p_dev_rec == NULL) { 860 if (p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) { 870 if (!p_dev_rec->ble.cur_rand_addr.IsEmpty()) { 871 peer_addr = p_dev_rec [all...] |
H A D | l2c_utils.cc | 2230 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(p_lcb->remote_bd_addr); local 2261 clock_offset = (p_dev_rec) ? p_dev_rec->clock_offset : 0;
|
/system/bt/stack/smp/ |
H A D | smp_act.cc | 241 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(p_cb->pairing_bda); local 245 if (p_dev_rec) btm_sec_clear_ble_keys(p_dev_rec); 497 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(p_cb->pairing_bda); local 501 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) 502 btm_sec_clear_ble_keys(p_dev_rec); 751 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(p_cb->pairing_bda); local 755 if (!p_dev_rec->new_encryption_key_is_p256 && p_cb->role == HCI_ROLE_SLAVE) { 762 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) 763 btm_sec_clear_ble_keys(p_dev_rec); 1883 tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); local [all...] |
H A D | smp_keys.cc | 1635 tBTM_SEC_DEV_REC* p_dev_rec; local 1656 p_dev_rec = btm_find_dev(p_cb->pairing_bda); 1657 if (p_dev_rec == NULL) { 1700 btm_cb.security_mode, p_dev_rec->sm4); 1731 tBTM_SEC_DEV_REC* p_dev_rec; local 1738 p_dev_rec = btm_find_dev(p_cb->pairing_bda); 1739 if (p_dev_rec == NULL) { 1761 p2 = p_dev_rec->link_key;
|
/system/bt/bta/hh/ |
H A D | bta_hh_le.cc | 1220 tBTM_SEC_DEV_REC* p_dev_rec; local 1222 p_dev_rec = btm_find_dev(p_cb->addr); 1223 if (p_dev_rec) { 1224 if (p_dev_rec->sec_state == BTM_SEC_STATE_ENCRYPTING || 1225 p_dev_rec->sec_state == BTM_SEC_STATE_AUTHENTICATING) {
|