Home
last modified time | relevance | path

Searched refs:bd_name (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_sec.cc46 DEV_CLASS dev_class, BD_NAME bd_name,
50 const BD_NAME bd_name, bool min_16_digit);
54 BD_NAME bd_name,
138 sec_event.auth_cmpl.bd_name, in bta_dm_bond()
217 bd_name_copy(sec_event.cfm_req.bd_name, p_result->remote_bd_name); in bta_dm_pinname_cback()
219 sec_event.cfm_req.bd_name[0] = 0; in bta_dm_pinname_cback()
238 bd_name_copy(sec_event.pin_req.bd_name, p_result->remote_bd_name); in bta_dm_pinname_cback()
240 sec_event.pin_req.bd_name[0] = 0; in bta_dm_pinname_cback()
260 const BD_NAME bd_name, bool min_16_digit) { in bta_dm_pin_cback() argument
265 if (bd_name[0] == 0) { in bta_dm_pin_cback()
[all …]
Dbta_dm_disc_legacy.cc98 DEV_CLASS dc, BD_NAME bd_name);
488 PRIVATE_NAME(remote_name_msg.bd_name))); in bta_dm_remote_name_cmpl()
492 if (!bd_name_is_empty(remote_name_msg.bd_name) && p_btm_inq_info) { in bta_dm_remote_name_cmpl()
503 .name_res = {.bd_addr = remote_name_msg.bd_addr, .bd_name = {}}, in bta_dm_remote_name_cmpl()
506 bd_name_copy(search_data.name_res.bd_name, remote_name_msg.bd_name); in bta_dm_remote_name_cmpl()
513 remote_name_msg.bd_name); in bta_dm_remote_name_cmpl()
669 BD_NAME bd_name; in bta_dm_sdp_result() local
670 bd_name_from_char_pointer(bd_name, bta_dm_get_remname()); in bta_dm_sdp_result()
673 bta_dm_search_cb.peer_bdaddr, bd_name, gatt_uuids, in bta_dm_sdp_result()
888 BD_NAME bd_name; in bta_dm_search_cmpl() local
[all …]
Dbta_dm_device_search.cc302 bd_name_copy(rmt_name_msg.bd_name, p_remote_name->remote_bd_name); in bta_dm_remname_cback()
386 PRIVATE_NAME(remote_name_msg.bd_name))); in bta_dm_remote_name_cmpl()
390 if (!bd_name_is_empty(remote_name_msg.bd_name) && p_btm_inq_info) { in bta_dm_remote_name_cmpl()
397 .name_res = {.bd_addr = remote_name_msg.bd_addr, .bd_name = {}}, in bta_dm_remote_name_cmpl()
400 bd_name_copy(search_data.name_res.bd_name, remote_name_msg.bd_name); in bta_dm_remote_name_cmpl()
Dbta_dm_device_search_int.h56 BD_NAME bd_name; /* Name of peer device. */ member
/packages/modules/Bluetooth/system/btif/src/
Dbtif_iot_config.cc76 BD_NAME bd_name; in btif_iot_update_remote_info() local
86 if (strlen((const char*)p_auth_cmpl->bd_name)) { in btif_iot_update_remote_info()
87 name_length = strlen((char*)p_auth_cmpl->bd_name) > BD_NAME_LEN in btif_iot_update_remote_info()
89 : strlen((char*)p_auth_cmpl->bd_name) + 1; in btif_iot_update_remote_info()
90 strncpy(value, (char*)p_auth_cmpl->bd_name, name_length); in btif_iot_update_remote_info()
94 if (BTM_GetRemoteDeviceName(p_auth_cmpl->bd_addr, bd_name)) { in btif_iot_update_remote_info()
96 IOT_CONF_KEY_REMOTE_NAME, (char*)bd_name); in btif_iot_update_remote_info()
Dbtif_dm.cc286 BD_NAME bd_name, DEV_CLASS dev_class,
303 const BD_NAME bd_name, bool during_device_search);
688 BD_NAME bd_name, DEV_CLASS dev_class, in btif_update_remote_properties() argument
696 if (strlen((const char*)bd_name)) { in btif_update_remote_properties()
698 BT_PROPERTY_BDNAME, static_cast<int>(strlen((char*)bd_name)), bd_name}); in btif_update_remote_properties()
977 bt_bdname_t bd_name; in btif_dm_pin_req_evt() local
990 btif_update_remote_properties(p_pin_req->bd_addr, p_pin_req->bd_name, in btif_dm_pin_req_evt()
995 bd_name_copy(bd_name.name, p_pin_req->bd_name); in btif_dm_pin_req_evt()
1023 (const char*)bd_name.name) && in btif_dm_pin_req_evt()
1054 base::StringPrintf("name:\"%s\" min16:%c", PRIVATE_NAME(bd_name.name), in btif_dm_pin_req_evt()
[all …]
Dbtif_core.cc600 char bd_name[BD_NAME_LEN + 1]; in btif_set_adapter_property() local
603 memcpy(bd_name, property->val, name_len); in btif_set_adapter_property()
604 bd_name[name_len] = '\0'; in btif_set_adapter_property()
606 log::verbose("set property name : {}", (char*)bd_name); in btif_set_adapter_property()
608 BTA_DmSetDeviceName((const char*)bd_name); in btif_set_adapter_property()
/packages/modules/Bluetooth/system/bta/test/
Dbta_sec_test.cc77 .bd_name = {}, in TEST_F()
87 bd_name_from_char_pointer(data.cfm_req.bd_name, kRemoteName); in TEST_F()
98 ASSERT_STREQ(kRemoteName, reinterpret_cast<const char*>(cfm_req.bd_name)); in TEST_F()
127 .bd_name = {0}, // No name available in TEST_F()
166 .bd_name = {0}, in TEST_F()
213 .bd_name = {}, in TEST_F()
218 bd_name_from_char_pointer(data.key_notif.bd_name, kRemoteName); in TEST_F()
229 ASSERT_STREQ(kRemoteName, reinterpret_cast<const char*>(key_notif.bd_name)); in TEST_F()
/packages/modules/Bluetooth/system/stack/include/
Dbt_name.h35 inline void bd_name_clear(BD_NAME bd_name) { *bd_name = {0}; } in bd_name_clear() argument
36 inline bool bd_name_is_empty(const BD_NAME bd_name) { in bd_name_is_empty() argument
37 return bd_name[0] == '\0'; in bd_name_is_empty()
Dsecurity_client_callbacks.h45 DEV_CLASS dev_class, const BD_NAME bd_name,
54 DEV_CLASS dev_class, BD_NAME bd_name,
63 BD_NAME bd_name);
72 DEV_CLASS dev_class, BD_NAME bd_name,
Dbtm_sec_api_types.h314 BD_NAME bd_name; /* peer device name */ member
328 BD_NAME bd_name; /* peer device name */ member
335 BD_NAME bd_name; /* peer device name */ member
352 BD_NAME bd_name; /* peer device name */ member
Dsec_hci_link_interface.h50 const uint8_t* bd_name,
/packages/modules/Bluetooth/system/bta/include/
Dbta_sec_api.h84 BD_NAME bd_name; /* Name of peer device. */ member
135 BD_NAME bd_name; /* peer device name */ member
147 BD_NAME bd_name; /* Name of peer device. */ member
185 BD_NAME bd_name; /* peer device name */ member
201 BD_NAME bd_name; /* peer device name */ member
212 BD_NAME bd_name; /* peer device name */ member
Dbta_api.h264 BD_NAME bd_name; /* Name of peer device. */ member
280 typedef void(tBTA_DM_GATT_DISC_CBACK)(RawAddress bd_addr, BD_NAME bd_name,
289 const BD_NAME bd_name);
/packages/modules/Bluetooth/system/types/test/
Dbt_name_test.cc50 BD_NAME bd_name = {}; in TEST() local
51 bd_name_from_char_pointer(bd_name, "ATestName"); in TEST()
53 bd_name_clear(bd_name); in TEST()
54 ASSERT_TRUE(bd_name_is_empty(bd_name)); in TEST()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_iot_config.cc42 BD_NAME bd_name; in btm_iot_save_remote_properties() local
49 if (BTM_GetRemoteDeviceName(p_acl_cb->remote_addr, bd_name)) { in btm_iot_save_remote_properties()
50 std::string name_str{(char*)bd_name}; in btm_iot_save_remote_properties()
Dbtm_devctl.cc90 memset(btm_sec_cb.cfg.bd_name, 0, sizeof(BD_NAME)); in btm_dev_init()
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()
Dbtm_sec_int_types.h34 BD_NAME bd_name; /* local Bluetooth device name */ member
/packages/modules/Bluetooth/system/stack/test/btm/
Dstack_btm_test.cc232 BD_NAME bd_name; member
239 [](const RawAddress& bd_addr, DEV_CLASS dc, BD_NAME bd_name) { in TEST_F() argument
242 memcpy(btm_test.bd_name, bd_name, BD_NAME_LEN); in TEST_F()
251 ASSERT_THAT(btm_test.bd_name, Each(Eq(0))); in TEST_F()
259 ASSERT_STREQ((const char*)p_bd_name, (const char*)btm_test.bd_name); in TEST_F()
/packages/modules/Bluetooth/system/gd/discovery/device/
Dbt_property.h133 BdName(const BD_NAME bd_name) in BdName() argument
134 : BtPropertyVectorWithPad<uint8_t>(BT_PROPERTY_BDNAME, bd_name, kBdNameLength, kBdNameDelim) { in BdName()
137 static std::shared_ptr<BdName> Create(const BD_NAME bd_name);
201 RemoteFriendlyName(const uint8_t bd_name[], size_t len) in RemoteFriendlyName() argument
203 BT_PROPERTY_REMOTE_FRIENDLY_NAME, bd_name, len, kBdNameDelim) {} in RemoteFriendlyName()
205 static std::shared_ptr<RemoteFriendlyName> Create(const uint8_t bd_name[], size_t len);
Dbt_property_unittest.cc621 bt_bdname_t bd_name; in TEST_F() local
622 bd_name_from_char_pointer(bd_name.name, (const char*)kRemoteFriendlyName); in TEST_F()
625 .len = (int)sizeof(bd_name.name), in TEST_F()
626 .val = (void*)&bd_name.name, in TEST_F()
788 BD_NAME bd_name; in TEST_F() local
790 bd_name[i] = ((i + 1) % 10) ? 'a' : 'A'; in TEST_F()
793 properties.push_back(BdName::Create(bd_name)); in TEST_F()
Dbt_property.cc298 std::shared_ptr<BdName> BdName::Create(const BD_NAME bd_name) { in Create() argument
299 return std::make_shared<BdName>(BdName(bd_name)); in Create()
329 const uint8_t bd_name[], size_t len) { in Create() argument
330 return std::make_shared<RemoteFriendlyName>(RemoteFriendlyName(bd_name, len)); in Create()
/packages/modules/Bluetooth/system/btif/test/
Dbtif_dm_test.cc58 const BD_NAME bd_name, bool during_device_search);
189 BD_NAME bd_name; in TEST_F_WITH_FLAGS() local
190 bd_name_from_char_pointer(bd_name, kBdName); in TEST_F_WITH_FLAGS()
193 bd_name, true); in TEST_F_WITH_FLAGS()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_ble.h335 std::function<bool(const RawAddress& bd_addr, BD_NAME bd_name)> body{
339 bool operator()(const RawAddress& bd_addr, BD_NAME bd_name) { in operator()
340 return body(bd_addr, bd_name); in operator()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_dm.h151 BD_NAME bd_name, DEV_CLASS dev_class,

12