/system/bt/btcore/src/ |
D | bdaddr.c | 26 bool bdaddr_is_empty(const bt_bdaddr_t *addr) { in bdaddr_is_empty() 29 uint8_t zero[sizeof(bt_bdaddr_t)] = { 0 }; in bdaddr_is_empty() 30 return memcmp(addr, &zero, sizeof(bt_bdaddr_t)) == 0; in bdaddr_is_empty() 33 bool bdaddr_equals(const bt_bdaddr_t *first, const bt_bdaddr_t *second) { in bdaddr_equals() 37 return memcmp(first, second, sizeof(bt_bdaddr_t)) == 0; in bdaddr_equals() 40 bt_bdaddr_t *bdaddr_copy(bt_bdaddr_t *dest, const bt_bdaddr_t *src) { in bdaddr_copy() 44 return (bt_bdaddr_t *)memcpy(dest, src, sizeof(bt_bdaddr_t)); in bdaddr_copy() 47 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size) { in bdaddr_to_string() 80 bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr) { in string_to_bdaddr() 84 bt_bdaddr_t new_addr; in string_to_bdaddr() [all …]
|
/system/bt/btif/include/ |
D | btif_api.h | 149 bt_status_t btif_get_remote_device_property( bt_bdaddr_t *remote_addr, 161 bt_status_t btif_get_remote_device_properties( bt_bdaddr_t *remote_addr); 174 bt_status_t btif_set_remote_device_property( bt_bdaddr_t *remote_addr, 187 bt_status_t btif_get_remote_service_record( bt_bdaddr_t *remote_addr, 227 bt_status_t btif_dm_create_bond(const bt_bdaddr_t *bd_addr, int transport); 238 bt_status_t btif_dm_create_bond_out_of_band(const bt_bdaddr_t *bd_addr, int transport, 250 bt_status_t btif_dm_cancel_bond(const bt_bdaddr_t *bd_addr); 261 bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr); 272 uint16_t btif_dm_get_connection_state(const bt_bdaddr_t *bd_addr); 283 bt_status_t btif_dm_pin_reply( const bt_bdaddr_t *bd_addr, uint8_t accept, [all …]
|
D | btif_storage.h | 78 bt_status_t btif_storage_get_remote_device_property(bt_bdaddr_t *remote_bd_addr, 92 bt_status_t btif_storage_set_remote_device_property(bt_bdaddr_t *remote_bd_addr, 107 bt_status_t btif_storage_add_remote_device(bt_bdaddr_t *remote_bd_addr, 122 bt_status_t btif_storage_add_bonded_device(bt_bdaddr_t *remote_bd_addr, 137 bt_status_t btif_storage_remove_bonded_device(bt_bdaddr_t *remote_bd_addr); 234 bt_status_t btif_storage_add_hid_device_info(bt_bdaddr_t *remote_bd_addr, 263 bt_status_t btif_storage_remove_hid_info(bt_bdaddr_t *remote_bd_addr); 275 BOOLEAN btif_storage_is_restricted_device(const bt_bdaddr_t *remote_bd_addr); 278 bt_status_t btif_storage_add_ble_bonding_key( bt_bdaddr_t *remote_bd_addr, 282 bt_status_t btif_storage_get_ble_bonding_key(bt_bdaddr_t *remote_bd_addr, [all …]
|
D | btif_hh.h | 62 bt_bdaddr_t bd_addr; 78 bt_bdaddr_t bd_addr; 103 extern void btif_hh_remove_device(bt_bdaddr_t bd_addr); 104 BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bda, tBTA_HH_ATTR_MASK attr_mask); 105 extern bt_status_t btif_hh_virtual_unplug(bt_bdaddr_t *bd_addr); 106 extern void btif_hh_disconnect(bt_bdaddr_t *bd_addr); 110 BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bd_addr, tBTA_HH_ATTR_MASK attr_mask);
|
D | btif_profile_queue.h | 32 typedef bt_status_t (*btif_connect_cb_t) (bt_bdaddr_t *bda, uint16_t uuid); 34 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, btif_connect_cb_t connect_cb);
|
/system/bt/btcore/include/ |
D | bdaddr.h | 37 bool bdaddr_is_empty(const bt_bdaddr_t *addr); 41 bool bdaddr_equals(const bt_bdaddr_t *first, const bt_bdaddr_t *second); 45 bt_bdaddr_t *bdaddr_copy(bt_bdaddr_t *dest, const bt_bdaddr_t *src); 51 const char *bdaddr_to_string(const bt_bdaddr_t *addr, char *string, size_t size); 59 bool string_to_bdaddr(const char *string, bt_bdaddr_t *addr);
|
/system/bt/btcore/test/ |
D | bdaddr_test.cpp | 26 bt_bdaddr_t test_address; in TEST() 33 bt_bdaddr_t test_address0; in TEST() 34 bt_bdaddr_t test_address1; in TEST() 42 bt_bdaddr_t test_address0; in TEST() 43 bt_bdaddr_t test_address1; in TEST()
|
D | property_test.cpp | 30 bt_bdaddr_t addr0 = {{0x1, 0x2, 0x3, 0x4, 0x5, 0x6}}; in TEST_F() 40 EXPECT_EQ((int)sizeof(bt_bdaddr_t), property->len); in TEST_F() 42 const bt_bdaddr_t *addr1 = property_as_addr(property); in TEST_F() 186 bt_bdaddr_t addr0 = {{0x1, 0x2, 0x3, 0x4, 0x5, 0x6}}; in TEST_F() 199 bt_bdaddr_t addr = {{0x1, 0x2, 0x3, 0x4, 0x5, 0x6}}; in TEST_F() 210 bt_bdaddr_t addr0 = {{0x1, 0x2, 0x3, 0x4, 0x5, 0x6}}; in TEST_F() 213 bt_bdaddr_t addr1 = {{0x1, 0x2, 0x3, 0x4, 0x5, 0xff}}; in TEST_F()
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.h | 40 virtual bt_status_t Connect(int client_if, const bt_bdaddr_t *bd_addr, 42 virtual bt_status_t Disconnect(int client_if, const bt_bdaddr_t *bd_addr, 98 const bt_bdaddr_t& bda); 100 const bt_bdaddr_t& bda); 101 void NotifyScanResultCallback(const bt_bdaddr_t& bda, int rssi, 112 const bt_bdaddr_t& bda); 124 const bt_bdaddr_t& bda, int attr_handle, 127 const bt_bdaddr_t& bda, int attr_handle, 131 const bt_bdaddr_t& bda, int exec_write);
|
D | bluetooth_interface.h | 57 bt_bdaddr_t *remote_bd_addr, 61 virtual void PinRequestCallback(bt_bdaddr_t *remote_bd_addr, 65 virtual void SSPRequestCallback(bt_bdaddr_t *remote_bd_addr, 71 bt_bdaddr_t *remote_bd_addr, 74 const bt_bdaddr_t& remote_bdaddr,
|
D | bluetooth_interface.cpp | 87 bt_bdaddr_t *remote_bd_addr, in RemoteDevicePropertiesCallback() 107 void PinRequestCallback(bt_bdaddr_t *remote_bd_addr, bt_bdname_t *bd_name, in PinRequestCallback() 119 void SSPRequestCallback(bt_bdaddr_t *remote_bd_addr, in SSPRequestCallback() 134 bt_bdaddr_t *remote_bd_addr, in BondStateChangedCallback() 146 bt_bdaddr_t *remote_bd_addr, in AclStateChangedCallback() 342 bt_bdaddr_t* /* remote_bd_addr */, in RemoteDevicePropertiesCallback() argument 354 bt_bdaddr_t *remote_bd_addr, in PinRequestCallback() 362 bt_bdaddr_t *remote_bd_addr, in SSPRequestCallback() 372 bt_bdaddr_t *remote_bd_addr, in BondStateChangedCallback() 379 const bt_bdaddr_t& /* remote_bdaddr */, in AclStateChangedCallback() argument
|
D | bluetooth_gatt_interface.h | 61 const bt_bdaddr_t& bda, int rssi, 69 const bt_bdaddr_t& bda); 76 const bt_bdaddr_t& bda); 156 const bt_bdaddr_t& bda); 196 const bt_bdaddr_t& bda, 203 const bt_bdaddr_t& bda, 210 const bt_bdaddr_t& bda, int exec_write);
|
D | fake_bluetooth_gatt_interface.cpp | 50 bt_status_t FakeConnect(int client_if, const bt_bdaddr_t *bd_addr, in FakeConnect() 58 bt_status_t FakeDisconnect(int client_if, const bt_bdaddr_t *bd_addr, in FakeDisconnect() 264 int conn_id, int status, int client_if, const bt_bdaddr_t& bda) { in NotifyConnectCallback() 270 int conn_id, int status, int client_if, const bt_bdaddr_t& bda) { in NotifyDisconnectCallback() 276 const bt_bdaddr_t& bda, int rssi, uint8_t* adv_data) { in NotifyScanResultCallback() 307 int conn_id, int server_if, int connected, const bt_bdaddr_t& bda) { in NotifyServerConnectionCallback() 350 int conn_id, int trans_id, const bt_bdaddr_t& bda, int attr_handle, in NotifyRequestReadCallback() 360 const bt_bdaddr_t& bda, int attr_handle, in NotifyRequestWriteCallback() 371 int conn_id, int trans_id, const bt_bdaddr_t& bda, int exec_write) { in NotifyRequestExecWriteCallback()
|
/system/bt/device/src/classic/ |
D | peer.c | 35 bt_bdaddr_t address; 85 classic_peer_t *classic_peer_by_address(bt_bdaddr_t *address) { in classic_peer_by_address() 111 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer) { in classic_peer_get_address() 120 return bdaddr_equals((bt_bdaddr_t *)x, (bt_bdaddr_t *)y); in bdaddr_equality_fn()
|
/system/bt/device/src/ |
D | interop.c | 38 static bool interop_match_fixed_(const interop_feature_t feature, const bt_bdaddr_t *addr); 39 static bool interop_match_dynamic_(const interop_feature_t feature, const bt_bdaddr_t *addr); 43 bool interop_match_addr(const interop_feature_t feature, const bt_bdaddr_t *addr) { in interop_match_addr() 72 void interop_database_add(const uint16_t feature, const bt_bdaddr_t *addr, size_t length) { in interop_database_add() 75 assert(length < sizeof(bt_bdaddr_t)); in interop_database_add() 134 static bool interop_match_dynamic_(const interop_feature_t feature, const bt_bdaddr_t *addr) { in interop_match_dynamic_() 151 static bool interop_match_fixed_(const interop_feature_t feature, const bt_bdaddr_t *addr) { in interop_match_fixed_()
|
/system/bt/btif/src/ |
D | btif_storage.c | 147 bt_bdaddr_t devices[BTM_SEC_MAX_DEVICE_RECORDS]; 154 extern bt_bdaddr_t btif_local_bd_addr; 174 static int prop2cfg(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop) in prop2cfg() 267 static int cfg2prop(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop) in cfg2prop() 454 bt_bdaddr_t bd_addr; in btif_in_fetch_bonded_devices() 474 …memcpy(&p_bonded_devices->devices[p_bonded_devices->num_devices++], &bd_addr, sizeof(bt_bdaddr_t)); in btif_in_fetch_bonded_devices() 496 static void btif_read_le_key(const uint8_t key_type, const size_t key_len, bt_bdaddr_t bd_addr, in btif_read_le_key() 585 bt_bdaddr_t *bd_addr = (bt_bdaddr_t*)property->val; in btif_storage_get_adapter_property() 587 memcpy(bd_addr, &btif_local_bd_addr, sizeof(bt_bdaddr_t)); in btif_storage_get_adapter_property() 588 property->len = sizeof(bt_bdaddr_t); in btif_storage_get_adapter_property() [all …]
|
D | bluetooth.c | 199 int get_remote_device_properties(bt_bdaddr_t *remote_addr) in get_remote_device_properties() 208 int get_remote_device_property(bt_bdaddr_t *remote_addr, bt_property_type_t type) in get_remote_device_property() 217 int set_remote_device_property(bt_bdaddr_t *remote_addr, const bt_property_t *property) in set_remote_device_property() 226 int get_remote_service_record(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid) in get_remote_service_record() 235 int get_remote_services(bt_bdaddr_t *remote_addr) in get_remote_services() 262 static int create_bond(const bt_bdaddr_t *bd_addr, int transport) in create_bond() 271 static int create_bond_out_of_band(const bt_bdaddr_t *bd_addr, int transport, in create_bond_out_of_band() 281 static int cancel_bond(const bt_bdaddr_t *bd_addr) in cancel_bond() 290 static int remove_bond(const bt_bdaddr_t *bd_addr) in remove_bond() 302 static int get_connection_state(const bt_bdaddr_t *bd_addr) in get_connection_state() [all …]
|
D | btif_hh.c | 145 extern bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr); 149 extern BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod); 150 extern void btif_dm_cb_remove_bond(bt_bdaddr_t *bd_addr); 151 extern BOOLEAN check_cod_hid(const bt_bdaddr_t *remote_bdaddr); 153 extern void btif_dm_hh_open_failed(bt_bdaddr_t *bdaddr); 355 static btif_hh_device_t *btif_hh_find_dev_by_bda(bt_bdaddr_t *bd_addr) in btif_hh_find_dev_by_bda() 376 static btif_hh_device_t *btif_hh_find_connected_dev_by_bda(bt_bdaddr_t *bd_addr) in btif_hh_find_connected_dev_by_bda() 397 void btif_hh_stop_vup_timer(bt_bdaddr_t *bd_addr) in btif_hh_stop_vup_timer() 415 void btif_hh_start_vup_timer(bt_bdaddr_t *bd_addr) in btif_hh_start_vup_timer() 437 BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bda, tBTA_HH_ATTR_MASK attr_mask) in btif_hh_add_added_dev() [all …]
|
D | btif_core.c | 87 bt_bdaddr_t bd_addr; 92 bt_bdaddr_t bd_addr; 112 bt_bdaddr_t btif_local_bd_addr; 133 static bool btif_fetch_property(const char *key, bt_bdaddr_t *addr); 319 static bool btif_fetch_property(const char *key, bt_bdaddr_t *addr) { in btif_fetch_property() 332 static void btif_fetch_local_bdaddr(bt_bdaddr_t *local_addr) in btif_fetch_local_bdaddr() 434 memset(&btif_local_bd_addr, 0, sizeof(bt_bdaddr_t)); in btif_init_bluetooth() 504 prop.len = sizeof(bt_bdaddr_t); in btif_enable_bluetooth_evt() 706 bt_bdaddr_t addr; in btif_in_get_adapter_properties() 710 bt_bdaddr_t bonded_devices[BTM_SEC_MAX_DEVICE_RECORDS]; in btif_in_get_adapter_properties() [all …]
|
D | btif_dm.c | 107 bt_bdaddr_t static_bdaddr; 156 bt_bdaddr_t bdaddr; 185 bt_bdaddr_t bd_addr; 225 static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr, tBTA_TRANSPORT transport); 245 static void btif_stats_add_bond_event(const bt_bdaddr_t *bd_addr, 259 extern int btif_hh_connect(bt_bdaddr_t *bd_addr); 414 bt_bdaddr_t remote_bdaddr; in check_cached_remote_name() 435 static uint32_t get_cod(const bt_bdaddr_t *remote_bdaddr) { in get_cod() 442 …if (btif_storage_get_remote_device_property((bt_bdaddr_t *)remote_bdaddr, &prop_name) == BT_STATUS… in get_cod() 451 BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod) in check_cod() [all …]
|
/system/bt/device/test/classic/ |
D | peer_test.cpp | 49 bt_bdaddr_t test_address; in TEST_F() 61 bt_bdaddr_t test_address; in TEST_F() 73 bt_bdaddr_t test_address0; in TEST_F() 74 bt_bdaddr_t test_address1; in TEST_F()
|
/system/bt/service/ |
D | low_energy_client.h | 39 bool operator()(const bt_bdaddr_t& a, const bt_bdaddr_t& b) const { in operator() 40 return memcmp(&a, &b, sizeof(bt_bdaddr_t)) < 0; in operator() 152 const bt_bdaddr_t& bda, int rssi, uint8_t* adv_data) override; 156 int client_id, const bt_bdaddr_t& bda) override; 159 int client_id, const bt_bdaddr_t& bda) override; 235 std::map<const bt_bdaddr_t, int, ConnComparator> connection_ids_;
|
/system/bt/service/test/ |
D | util_unittest.cpp | 34 bt_bdaddr_t addr; in TEST() 38 const bt_bdaddr_t result0 = {{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }}; in TEST() 42 const bt_bdaddr_t result1 = {{ 0xab, 0x01, 0x4c, 0xd5, 0x21, 0x9f }}; in TEST()
|
/system/bt/device/include/classic/ |
D | peer.h | 31 classic_peer_t *classic_peer_by_address(bt_bdaddr_t *address); 34 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer);
|
/system/bt/device/include/ |
D | interop.h | 73 bool interop_match_addr(const interop_feature_t feature, const bt_bdaddr_t *addr); 88 void interop_database_add(const uint16_t feature, const bt_bdaddr_t *addr, size_t length);
|