/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sec.cc | 161 if (btm_sec_cb.api.p_auth_complete_callback != nullptr) { in NotifyBondingChange() 162 (*btm_sec_cb.api.p_auth_complete_callback)( in NotifyBondingChange() 188 if (btm_sec_cb.api.p_bond_cancel_cmpl_callback) { in NotifyBondingCanceled() 189 btm_sec_cb.api.p_bond_cancel_cmpl_callback(BTM_SUCCESS); in NotifyBondingCanceled() 254 list_foreach(btm_sec_cb.sec_dev_rec, is_sec_state_equal, &state); in btm_sec_find_dev_by_sec_state() 402 if (btm_sec_cb.devcb.id_keys.ir == zero) { in BTM_SecRegister() 409 btm_sec_cb.api = *p_cb_info; in BTM_SecRegister() 411 fmt::ptr(btm_sec_cb.api.p_le_callback)); in BTM_SecRegister() 463 return btm_sec_cb.IsDeviceEncrypted(bd_addr, transport); in BTM_IsEncrypted() 467 return btm_sec_cb.IsLinkKeyAuthenticated(bd_addr, transport); in BTM_IsLinkKeyAuthed() [all …]
|
D | btm_dev.cc | 67 list_remove(btm_sec_cb.sec_dev_rec, p_dev_rec); in wipe_secrets_and_remove() 108 p_dev_rec->timestamp = btm_sec_cb.dev_rec_count++; in BTM_SecAddDevice() 272 } else if (bd_addr == btm_sec_cb.connecting_bda) in btm_sec_alloc_dev() 273 p_dev_rec->dev_class = btm_sec_cb.connecting_dc; in btm_sec_alloc_dev() 307 if (btm_sec_cb.sec_dev_rec == nullptr) return nullptr; in btm_find_dev_by_handle() 310 list_foreach(btm_sec_cb.sec_dev_rec, is_handle_equal, &handle); in btm_find_dev_by_handle() 339 if (btm_sec_cb.sec_dev_rec == nullptr) return nullptr; in btm_find_dev() 342 list_foreach(btm_sec_cb.sec_dev_rec, is_address_equal, (void*)&bd_addr); in btm_find_dev() 366 if (btm_sec_cb.sec_dev_rec == nullptr) return nullptr; in btm_find_dev_with_lenc() 368 list_node_t* n = list_foreach(btm_sec_cb.sec_dev_rec, in btm_find_dev_with_lenc() [all …]
|
D | btm_ble_sec.cc | 203 tBTM_SEC_DEVCB* p_devcb = &btm_sec_cb.devcb; in BTM_BleLoadLocalKeys() 225 return btm_sec_cb.devcb.ble_encryption_key_value; in BTM_GetDeviceEncRoot() 229 const Octet16& BTM_GetDeviceIDRoot() { return btm_sec_cb.devcb.id_keys.irk; } in BTM_GetDeviceIDRoot() 232 const Octet16& BTM_GetDeviceDHK() { return btm_sec_cb.devcb.id_keys.dhk; } in BTM_GetDeviceDHK() 725 btm_sec_cb.find_first_serv_rec(is_originator, psm); in btm_ble_start_sec_check() 988 if (pass_to_application && btm_sec_cb.api.p_le_callback) { in btm_sec_save_le_key() 992 (*btm_sec_cb.api.p_le_callback)(BTM_LE_KEY_EVT, bd_addr, &cb_data); in btm_sec_save_le_key() 1195 tBTM_SEC_CB* p_cb = &btm_sec_cb; in btm_ble_ltk_request() 1216 tBTM_SEC_CB* p_cb = &btm_sec_cb; in btm_ble_start_encrypt() 1343 (btm_sec_cb.pairing_flags & BTM_PAIR_FLAGS_LE_ACTIVE) && in btm_ble_link_encrypted() [all …]
|
D | btm_devctl.cc | 90 memset(btm_sec_cb.cfg.bd_name, 0, sizeof(BD_NAME)); in btm_dev_init() 173 list_foreach(btm_sec_cb.sec_dev_rec, set_sec_state_idle, NULL); in BTM_reset_complete() 215 BTM_SetPinType(btm_sec_cb.cfg.pin_type, btm_sec_cb.cfg.pin_code, in BTM_reset_complete() 216 btm_sec_cb.cfg.pin_code_len); in BTM_reset_complete() 334 p = (uint8_t*)btm_sec_cb.cfg.bd_name; in BTM_SetLocalDeviceName() 336 bd_name_from_char_pointer(btm_sec_cb.cfg.bd_name, p_name); in BTM_SetLocalDeviceName() 356 *p_name = (const char*)btm_sec_cb.cfg.bd_name; in BTM_ReadLocalDeviceName() 559 if (btm_sec_cb.devcb.p_stored_link_key_cmpl_cb) return (BTM_BUSY); in BTM_DeleteStoredLinkKey() 566 btm_sec_cb.devcb.p_stored_link_key_cmpl_cb = p_cb; in BTM_DeleteStoredLinkKey() 592 tBTM_CMPL_CB* p_cb = btm_sec_cb.devcb.p_stored_link_key_cmpl_cb; in btm_delete_stored_link_key_complete() [all …]
|
D | btm_ble_addr.cc | 142 if (btm_sec_cb.sec_dev_rec == nullptr) return nullptr; in btm_ble_resolve_random_addr() 143 list_node_t* n = list_foreach(btm_sec_cb.sec_dev_rec, in btm_ble_resolve_random_addr() 155 if (btm_sec_cb.sec_dev_rec == nullptr) return nullptr; in btm_find_dev_by_identity_addr() 157 list_node_t* end = list_end(btm_sec_cb.sec_dev_rec); in btm_find_dev_by_identity_addr() 158 for (list_node_t* node = list_begin(btm_sec_cb.sec_dev_rec); node != end; in btm_find_dev_by_identity_addr()
|
D | btm_sec_cb.cc | 81 tBTM_SEC_CB btm_sec_cb; variable 84 btm_sec_cb.Init(stack_config_get_interface()->get_pts_secure_only_mode() in BTM_Sec_Init() 89 void BTM_Sec_Free() { btm_sec_cb.Free(); } in BTM_Sec_Free()
|
D | btm_sec_cb.h | 110 extern tBTM_SEC_CB btm_sec_cb;
|
D | btm_ble_privacy.cc | 273 list_foreach(btm_sec_cb.sec_dev_rec, clear_resolving_list_bit, NULL); in btm_ble_clear_resolving_list_complete() 555 static Octet16 get_local_irk() { return btm_sec_cb.devcb.id_keys.irk; } in get_local_irk()
|
D | btm_ble_gap.cc | 1225 list_foreach(btm_sec_cb.sec_dev_rec, is_resolving_list_bit_set, NULL); in btm_set_conn_mode_adv_init_addr()
|
/packages/modules/Bluetooth/system/stack/test/btm/ |
D | stack_btm_dev_test.cc | 34 ::btm_sec_cb.Init(BTM_SEC_MODE_SC); in TEST_F() 35 ::btm_sec_cb.Free(); in TEST_F() 40 ::btm_sec_cb.Init(BTM_SEC_MODE_SC); in TEST_F() 42 ::btm_sec_cb.Free(); in TEST_F()
|
D | stack_btm_sec_test.cc | 126 ::btm_sec_cb.collision_start_time = 0UL; in TEST_F() 128 uint64_t collision_start_time = ::btm_sec_cb.collision_start_time; in TEST_F() 131 ::btm_sec_cb.collision_start_time = 0UL; in TEST_F() 134 collision_start_time = ::btm_sec_cb.collision_start_time; in TEST_F() 138 ::btm_sec_cb.collision_start_time = 0; in TEST_F() 140 ASSERT_EQ(0UL, ::btm_sec_cb.collision_start_time); in TEST_F() 212 ASSERT_EQ(i, list_length(::btm_sec_cb.sec_dev_rec)); in TEST_F() 219 ASSERT_EQ(kBtmSecMaxDeviceRecords, list_length(::btm_sec_cb.sec_dev_rec)); in TEST_F()
|
D | stack_btm_test.cc | 116 btm_sec_cb.Init(BTM_SEC_MODE_SC); in SetUp() 119 btm_sec_cb.Free(); in TearDown()
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | gatt_api_test.cc | 26 extern tBTM_SEC_CB btm_sec_cb; 57 btm_sec_cb.sec_dev_rec = list_new(osi_free); in SetUp() 62 void TearDown() override { list_free(btm_sec_cb.sec_dev_rec); } in TearDown()
|
/packages/modules/Bluetooth/system/stack/ |
D | BUILD.gn | 115 "btm/btm_sec_cb.cc",
|
D | Android.bp | 238 "btm/btm_sec_cb.cc", 1615 "btm/btm_sec_cb.cc",
|
/packages/modules/Bluetooth/system/main/test/ |
D | main_shim_stack_dumpsys_test.cc | 47 tBTM_SEC_CB btm_sec_cb{}; // main::shim::acl variable
|
D | main_shim_test.cc | 85 tBTM_SEC_CB btm_sec_cb; variable
|
/packages/modules/Bluetooth/system/main/shim/ |
D | acl.cc | 1356 if (btm_sec_cb.sec_dev_rec == nullptr) { in DumpsysRecord() 1362 list_node_t* end = list_end(btm_sec_cb.sec_dev_rec); in DumpsysRecord() 1363 for (list_node_t* node = list_begin(btm_sec_cb.sec_dev_rec); node != end; in DumpsysRecord()
|