Home
last modified time | relevance | path

Searched refs:sec_flags (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/stack/btm/
Dsecurity_device_record.h214 uint16_t sec_flags; /* Current device security state */ member
244 return sec_flags & BTM_SEC_AUTHENTICATED; in is_device_authenticated()
246 void set_device_authenticated() { sec_flags |= BTM_SEC_AUTHENTICATED; } in set_device_authenticated()
247 void reset_device_authenticated() { sec_flags &= ~BTM_SEC_AUTHENTICATED; } in reset_device_authenticated()
249 bool is_device_encrypted() const { return sec_flags & BTM_SEC_ENCRYPTED; } in is_device_encrypted()
250 void set_device_encrypted() { sec_flags |= BTM_SEC_ENCRYPTED; } in set_device_encrypted()
251 void reset_device_encrypted() { sec_flags &= ~BTM_SEC_ENCRYPTED; } in reset_device_encrypted()
253 bool is_name_known() const { return sec_flags & BTM_SEC_NAME_KNOWN; } in is_name_known()
254 void set_device_known() { sec_flags |= BTM_SEC_NAME_KNOWN; } in set_device_known()
255 void reset_device_known() { sec_flags &= ~BTM_SEC_NAME_KNOWN; } in reset_device_known()
[all …]
Dbtm_sec.cc203 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_AUTHENTICATED; in btm_dev_authenticated()
216 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_ENCRYPTED; in btm_dev_encrypted()
230 return p_dev_rec->sec_rec.sec_flags & BTM_SEC_16_DIGIT_PIN_AUTHED; in btm_dev_16_digit_authenticated()
647 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply()
650 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED; in BTM_PINCodeReply()
685 p_dev_rec->sec_rec.sec_flags &= ~BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply()
735 log::verbose("before update sec_flags=0x{:x}", p_dev_rec->sec_rec.sec_flags); in btm_sec_bond_by_transport()
740 (p_dev_rec->sec_rec.sec_flags & BTM_SEC_AUTHENTICATED)) || in btm_sec_bond_by_transport()
743 (p_dev_rec->sec_rec.sec_flags & BTM_SEC_LE_AUTHENTICATED))) { in btm_sec_bond_by_transport()
766 p_dev_rec->sec_rec.sec_flags &= ~BTM_SEC_LE_MASK; in btm_sec_bond_by_transport()
[all …]
Dbtm_dev.cc123 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in BTM_SecAddDevice()
136 p_dev_rec->sec_rec.sec_flags |= in BTM_SecAddDevice()
165 p_dev_rec->sec_rec.sec_flags &= ~BTM_SEC_LINK_KEY_KNOWN; in BTM_SecDeleteDevice()
166 p_dev_rec->sec_rec.sec_flags &= ~BTM_SEC_LE_LINK_KEY_KNOWN; in BTM_SecDeleteDevice()
216 p_dev_rec->sec_rec.sec_flags = 0; in BTM_SecClearSecurityFlags()
407 p_target_rec->sec_rec.sec_flags |= temp_rec.sec_rec.sec_flags; in btm_consolidate_dev()
546 if ((p_dev_rec->sec_rec.sec_flags & in btm_find_oldest_dev_rec()
599 p_dev_rec->sec_rec.sec_flags = BTM_SEC_IN_USE; in btm_sec_allocate_dev_rec()
Dbtm_ble_sec.cc289 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BlePasskeyReply()
321 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleConfirmReply()
354 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleOobDataReply()
384 p_dev_rec->sec_rec.sec_flags |= BTM_SEC_LE_AUTHENTICATED; in BTM_BleSecureConnectionOobDataReply()
898 p_rec->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN; in btm_sec_save_le_key()
900 p_rec->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_AUTHED; in btm_sec_save_le_key()
902 p_rec->sec_rec.sec_flags &= ~BTM_SEC_LE_LINK_KEY_AUTHED; in btm_sec_save_le_key()
905 p_rec->sec_rec.ble_keys.key_type, p_rec->sec_rec.sec_flags, in btm_sec_save_le_key()
932 p_rec->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN; in btm_sec_save_le_key()
934 p_rec->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_AUTHED; in btm_sec_save_le_key()
[all …]
/packages/modules/Bluetooth/system/stack/test/btm/
Dstack_btm_sec_test.cc145 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F()
153 device_record->sec_rec.sec_flags); in TEST_F()
158 device_record->sec_rec.sec_flags); in TEST_F()
159 device_record->sec_rec.sec_flags = BTM_SEC_IN_USE; in TEST_F()
164 device_record->sec_rec.sec_flags); in TEST_F()
168 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F()
169 device_record->sec_rec.sec_flags = BTM_SEC_IN_USE; in TEST_F()
277 ASSERT_EQ(BTM_SEC_IN_USE, device_record->sec_rec.sec_flags); in TEST_F()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dgatt_api_test.cc33 dev->sec_rec.sec_flags |= BTM_SEC_LE_LINK_KEY_KNOWN; in make_bonded_ble_device()
44 dev->sec_rec.sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in make_bonded_dual_device()
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_act.cc1360 if (!(p_dev_rec->sec_rec.sec_flags & BTM_SEC_LE_LINK_KEY_AUTHED) && in smp_key_distribution()
1361 (p_dev_rec->sec_rec.sec_flags & BTM_SEC_LINK_KEY_AUTHED)) { in smp_key_distribution()