/system/bt/stack/gatt/ |
D | gatt_db.cc | 84 tGATT_SEC_FLAG sec_flag, in gatts_check_attr_readability() argument 100 !(sec_flag & GATT_SEC_FLAG_LKEY_UNAUTHED) && in gatts_check_attr_readability() 101 !(sec_flag & BTM_SEC_FLAG_ENCRYPTED)) { in gatts_check_attr_readability() 107 !(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED)) { in gatts_check_attr_readability() 113 !(sec_flag & GATT_SEC_FLAG_ENCRYPTED)) { in gatts_check_attr_readability() 119 (sec_flag & GATT_SEC_FLAG_ENCRYPTED) && (key_size < min_key_size)) { in gatts_check_attr_readability() 166 tGATT_SEC_FLAG sec_flag, uint8_t key_size) { in read_attr_value() argument 171 attr16.permission, sec_flag, offset, read_long); in read_attr_value() 174 sec_flag, key_size); in read_attr_value() 257 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id, in gatts_db_read_attr_value_by_type() argument [all …]
|
D | gatt_auth.cc | 177 uint8_t sec_flag = 0; in gatt_enc_cmpl_cback() local 178 BTM_GetSecurityFlagsByTransport(*bd_addr, &sec_flag, transport); in gatt_enc_cmpl_cback() 180 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) { in gatt_enc_cmpl_cback() 273 uint8_t sec_flag; in gatt_determine_sec_act() local 284 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, in gatt_determine_sec_act() 293 if (sec_flag & (BTM_SEC_FLAG_ENCRYPTED | BTM_SEC_FLAG_LKEY_KNOWN)) { in gatt_determine_sec_act() 294 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) is_link_encrypted = true; in gatt_determine_sec_act() 298 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) is_key_mitm = true; in gatt_determine_sec_act() 357 uint8_t sec_flag = 0; in gatt_get_link_encrypt_status() local 359 BTM_GetSecurityFlagsByTransport(tcb.peer_bda, &sec_flag, tcb.transport); in gatt_get_link_encrypt_status() [all …]
|
D | gatt_sr.cc | 359 uint8_t sec_flag, key_size; in gatt_process_read_multi_req() local 364 gatt_sr_get_sec_info(tcb.peer_bda, tcb.transport, &sec_flag, &key_size); in gatt_process_read_multi_req() 389 err = gatts_read_attr_perm_check(it->p_db, false, handle, sec_flag, in gatt_process_read_multi_req() 423 &p_msg->attr_value.len, GATT_MAX_ATTR_LEN, sec_flag, key_size, in gatt_process_read_multi_req() 827 uint8_t sec_flag, key_size; in gatts_process_read_by_type_req() local 828 gatt_sr_get_sec_info(tcb.peer_bda, tcb.transport, &sec_flag, &key_size); in gatts_process_read_by_type_req() 831 tcb, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, sec_flag, in gatts_process_read_by_type_req() 871 uint8_t sec_flag, key_size, *p = p_data; in gatts_process_write_req() local 907 gatt_sr_get_sec_info(tcb.peer_bda, tcb.transport, &sec_flag, &key_size); in gatts_process_write_req() 911 sec_flag, key_size); in gatts_process_write_req() [all …]
|
D | gatt_int.h | 560 uint16_t* p_len, tGATT_SEC_FLAG sec_flag, uint8_t key_size, 565 tGATT_SEC_FLAG sec_flag, uint8_t key_size, uint32_t trans_id); 568 uint8_t* p_data, uint16_t len, tGATT_SEC_FLAG sec_flag, uint8_t key_size); 571 tGATT_SEC_FLAG sec_flag,
|
D | gatt_utils.cc | 688 uint8_t sec_flag = 0; in gatt_sr_get_sec_info() local 690 BTM_GetSecurityFlagsByTransport(rem_bda, &sec_flag, transport); in gatt_sr_get_sec_info() 692 sec_flag &= (GATT_SEC_FLAG_LKEY_UNAUTHED | GATT_SEC_FLAG_LKEY_AUTHED | in gatt_sr_get_sec_info() 696 *p_sec_flag = sec_flag; in gatt_sr_get_sec_info()
|
/system/bt/stack/btm/ |
D | btm_ble.cc | 1004 uint8_t sec_flag = 0; in btm_ble_determine_security_act() local 1005 BTM_GetSecurityFlagsByTransport(bdaddr, &sec_flag, BT_TRANSPORT_LE); in btm_ble_determine_security_act() 1009 if (sec_flag & (BTM_SEC_FLAG_ENCRYPTED | BTM_SEC_FLAG_LKEY_KNOWN)) { in btm_ble_determine_security_act() 1010 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) is_link_encrypted = true; in btm_ble_determine_security_act() 1012 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) is_key_mitm = true; in btm_ble_determine_security_act() 1064 uint8_t sec_flag = 0; in btm_ble_start_sec_check() local 1065 BTM_GetSecurityFlagsByTransport(bd_addr, &sec_flag, BT_TRANSPORT_LE); in btm_ble_start_sec_check() 1069 !(sec_flag & BTM_SEC_ENCRYPTED)) { in btm_ble_start_sec_check() 1074 __func__, p_serv_rec->security_flags, sec_flag); in btm_ble_start_sec_check() 1077 !(sec_flag & in btm_ble_start_sec_check() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_le.cc | 1083 uint8_t sec_flag = 0; in bta_hh_start_security() local 1097 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_start_security() 1100 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) { in bta_hh_start_security() 1105 else if (sec_flag & BTM_SEC_FLAG_LKEY_KNOWN) { in bta_hh_start_security() 1106 sec_flag = BTM_BLE_SEC_ENCRYPT; in bta_hh_start_security() 1109 NULL, sec_flag); in bta_hh_start_security() 1113 sec_flag = BTM_BLE_SEC_ENCRYPT_NO_MITM; in bta_hh_start_security() 1117 NULL, sec_flag); in bta_hh_start_security() 1981 uint8_t sec_flag = 0; in bta_hh_le_add_dev_bg_conn() local 1987 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_le_add_dev_bg_conn() [all …]
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid.cc | 408 uint8_t sec_flag = 0; in OnGattConnected() local 409 BTM_GetSecurityFlagsByTransport(address, &sec_flag, BT_TRANSPORT_LE); in OnGattConnected() 411 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) { in OnGattConnected() 417 if (sec_flag & BTM_SEC_FLAG_LKEY_KNOWN) { in OnGattConnected() 419 sec_flag = BTM_BLE_SEC_ENCRYPT; in OnGattConnected() 421 sec_flag); in OnGattConnected()
|
/system/bt/stack/l2cap/ |
D | l2c_ble.cc | 1148 uint8_t sec_flag; in l2cble_sec_comp() local 1173 BTM_GetSecurityFlagsByTransport(p_bda, &sec_flag, transport); in l2cble_sec_comp() 1174 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in l2cble_sec_comp()
|