Home
last modified time | relevance | path

Searched refs:btm_sec_cb (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sec.cc161 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 …]
Dbtm_dev.cc67 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 …]
Dbtm_ble_sec.cc203 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 …]
Dbtm_devctl.cc90 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 …]
Dbtm_ble_addr.cc142 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()
Dbtm_sec_cb.cc81 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()
Dbtm_sec_cb.h110 extern tBTM_SEC_CB btm_sec_cb;
Dbtm_ble_privacy.cc273 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()
Dbtm_ble_gap.cc1225 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/
Dstack_btm_dev_test.cc34 ::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()
Dstack_btm_sec_test.cc126 ::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()
Dstack_btm_test.cc116 btm_sec_cb.Init(BTM_SEC_MODE_SC); in SetUp()
119 btm_sec_cb.Free(); in TearDown()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dgatt_api_test.cc26 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/
DBUILD.gn115 "btm/btm_sec_cb.cc",
DAndroid.bp238 "btm/btm_sec_cb.cc",
1615 "btm/btm_sec_cb.cc",
/packages/modules/Bluetooth/system/main/test/
Dmain_shim_stack_dumpsys_test.cc47 tBTM_SEC_CB btm_sec_cb{}; // main::shim::acl variable
Dmain_shim_test.cc85 tBTM_SEC_CB btm_sec_cb; variable
/packages/modules/Bluetooth/system/main/shim/
Dacl.cc1356 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()