Home
last modified time | relevance | path

Searched refs:bdaddr (Results 1 – 21 of 21) sorted by relevance

/system/bt/types/test/
Draw_address_unittest.cc27 RawAddress bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST() local
29 ASSERT_EQ(0x12, bdaddr.address[0]); in TEST()
30 ASSERT_EQ(0x34, bdaddr.address[1]); in TEST()
31 ASSERT_EQ(0x56, bdaddr.address[2]); in TEST()
32 ASSERT_EQ(0x78, bdaddr.address[3]); in TEST()
33 ASSERT_EQ(0x9A, bdaddr.address[4]); in TEST()
34 ASSERT_EQ(0xBC, bdaddr.address[5]); in TEST()
36 std::string ret = bdaddr.ToString(); in TEST()
52 RawAddress bdaddr; in TEST() local
53 RawAddress::FromString(test_addr, bdaddr); in TEST()
[all …]
/system/bt/gd/hci/
Daddress_unittest.cc32 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST() local
34 ASSERT_EQ(0x12, bdaddr.address[0]); in TEST()
35 ASSERT_EQ(0x34, bdaddr.address[1]); in TEST()
36 ASSERT_EQ(0x56, bdaddr.address[2]); in TEST()
37 ASSERT_EQ(0x78, bdaddr.address[3]); in TEST()
38 ASSERT_EQ(0x9A, bdaddr.address[4]); in TEST()
39 ASSERT_EQ(0xBC, bdaddr.address[5]); in TEST()
41 std::string ret = bdaddr.ToString(); in TEST()
57 Address bdaddr; in TEST() local
58 Address::FromString(test_addr, bdaddr); in TEST()
[all …]
Dcontroller_test.cc364 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST_F() local
365 …controller_->SetEventFilterConnectionSetupAddress(bdaddr, AutoAcceptFlag::AUTO_ACCEPT_ON_ROLE_SWIT… in TEST_F()
371 ASSERT_EQ(command3.GetAddress(), bdaddr); in TEST_F()
/system/bt/profile/avrcp/
Dconnection_handler.cc46 bool IsAbsoluteVolumeEnabled(const RawAddress* bdaddr) { in IsAbsoluteVolumeEnabled() argument
53 if (interop_match_addr(INTEROP_DISABLE_ABSOLUTE_VOLUME, bdaddr)) { in IsAbsoluteVolumeEnabled()
108 bool ConnectionHandler::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice() argument
109 LOG(INFO) << "Attempting to connect to device " << bdaddr; in ConnectDevice()
112 if (bdaddr == pair.second->GetAddress()) { in ConnectDevice()
113 LOG(WARNING) << "Already connected to device with address " << bdaddr; in ConnectDevice()
119 const RawAddress& bdaddr, uint16_t status, in ConnectDevice()
130 instance_->feature_map_.emplace(bdaddr, features); in ConnectDevice()
131 instance_->AvrcpConnect(true, bdaddr); in ConnectDevice()
135 return SdpLookup(bdaddr, base::Bind(connection_lambda, this, bdaddr), false); in ConnectDevice()
[all …]
Dconnection_handler.h101 virtual bool ConnectDevice(const RawAddress& bdaddr);
111 virtual bool DisconnectDevice(const RawAddress& bdaddr);
138 virtual bool SdpLookup(const RawAddress& bdaddr, SdpCallback cb, bool retry);
139 void SdpCb(const RawAddress& bdaddr, SdpCallback cb,
142 virtual bool AvrcpConnect(bool initiator, const RawAddress& bdaddr);
Ddevice.h63 const RawAddress& bdaddr, bool avrcp13_compatibility,
Ddevice.cc39 const RawAddress& bdaddr, bool avrcp13_compatibility, in Device() argument
45 address_(bdaddr), in Device()
/system/bt/btif/avrcp/
Davrcp_service.h59 void ConnectDevice(const RawAddress& bdaddr);
60 void DisconnectDevice(const RawAddress& bdaddr);
73 bool ConnectDevice(const RawAddress& bdaddr) override;
74 bool DisconnectDevice(const RawAddress& bdaddr) override;
Davrcp_service.cc252 void DeviceConnected(const RawAddress& bdaddr) override { in DeviceConnected() argument
256 base::Unretained(wrapped_), bdaddr)); in DeviceConnected()
259 void DeviceConnected(const RawAddress& bdaddr, VolumeChangedCb cb) override { in DeviceConnected() argument
269 base::Unretained(wrapped_), bdaddr, bound_cb)); in DeviceConnected()
272 void DeviceDisconnected(const RawAddress& bdaddr) override { in DeviceDisconnected() argument
274 base::Unretained(wrapped_), bdaddr)); in DeviceDisconnected()
333 void AvrcpService::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice() argument
334 LOG(INFO) << __PRETTY_FUNCTION__ << ": address=" << bdaddr.ToString(); in ConnectDevice()
336 connection_handler_->ConnectDevice(bdaddr); in ConnectDevice()
339 void AvrcpService::DisconnectDevice(const RawAddress& bdaddr) { in DisconnectDevice() argument
[all …]
/system/bt/include/hardware/avrcp/
Davrcp.h156 virtual void DeviceConnected(const RawAddress& bdaddr) = 0;
161 virtual void DeviceConnected(const RawAddress& bdaddr,
166 virtual void DeviceDisconnected(const RawAddress& bdaddr) = 0;
179 virtual bool ConnectDevice(const RawAddress& bdaddr) = 0;
180 virtual bool DisconnectDevice(const RawAddress& bdaddr) = 0;
/system/bt/service/
Dgatt_server.h172 Connection(int conn_id, const RawAddress& bdaddr) in Connection()
173 : conn_id(conn_id), bdaddr(bdaddr) {} in Connection()
174 Connection() : conn_id(-1) { memset(&bdaddr, 0, sizeof(bdaddr)); } in Connection()
178 RawAddress bdaddr; member
Dgatt_server.cc554 if (conn->bdaddr != bda) { in GetConnection()
/system/bt/profile/avrcp/tests/avrcp_device_fuzz/
Davrcp_device_fuzz.cc40 virtual void DeviceConnected(const RawAddress& bdaddr) {} in DeviceConnected() argument
41 virtual void DeviceConnected(const RawAddress& bdaddr, VolumeChangedCb cb) {} in DeviceConnected() argument
42 virtual void DeviceDisconnected(const RawAddress& bdaddr) {} in DeviceDisconnected() argument
/system/bt/tools/bdtool/
Dadapter.c83 void bond_state_changed(bt_status_t status, RawAddress* bdaddr, in bond_state_changed() argument
105 bdaddr_to_string(bdaddr, buf, sizeof(buf)), state_name); in bond_state_changed()
140 void remote_device_properties(bt_status_t status, RawAddress* bdaddr, in remote_device_properties() argument
144 bdaddr_to_string(bdaddr, buf, sizeof(buf)), num_properties); in remote_device_properties()
/system/bt/btif/src/
Dbtif_dm.cc156 RawAddress bdaddr; /* peer bdaddr */ member
161 RawAddress bdaddr; member
617 static void btif_update_remote_properties(const RawAddress& bdaddr, in btif_update_remote_properties() argument
633 &bdaddr, &properties[num_properties]); in btif_update_remote_properties()
648 &bdaddr, &properties[num_properties]); in btif_update_remote_properties()
658 status = btif_storage_set_remote_device_property(&bdaddr, in btif_update_remote_properties()
669 if (btif_storage_get_remote_device_property(&bdaddr, &prop_name) == in btif_update_remote_properties()
678 status = btif_storage_set_remote_device_property(&bdaddr, in btif_update_remote_properties()
684 auto tmp = bdaddr; in btif_update_remote_properties()
1309 RawAddress& bdaddr = p_search_data->disc_res.bd_addr; in btif_dm_search_devices_evt() local
[all …]
Dbtif_hh.cc145 extern void btif_dm_hh_open_failed(RawAddress* bdaddr);
818 RawAddress* bdaddr = &p_data->conn.bda; in btif_hh_upstreams_evt() local
819 btif_dm_hh_open_failed(bdaddr); in btif_hh_upstreams_evt()
820 p_dev = btif_hh_find_dev_by_bda(*bdaddr); in btif_hh_upstreams_evt()
/system/bt/test/suite/adapter/
Dadapter_unittest.cc155 RawAddress bdaddr = {{0x22, 0x22, 0x22, 0x22, 0x22, 0x22}}; in TEST_F() local
162 EXPECT_EQ(bt_interface()->create_bond(&bdaddr, BT_TRANSPORT_BR_EDR), in TEST_F()
165 EXPECT_EQ(bt_interface()->cancel_bond(&bdaddr), BT_STATUS_SUCCESS); in TEST_F()
/system/bt/bta/gatt/
Dbta_gatts_act.cc585 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, in bta_gatts_conn_cback() argument
593 VLOG(1) << __func__ << " bda=" << bdaddr << " gatt_if= " << gatt_if in bta_gatts_conn_cback()
598 btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); in bta_gatts_conn_cback()
600 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason); in bta_gatts_conn_cback()
608 bta_sys_conn_open(BTA_ID_GATTS, BTA_ALL_APP_ID, bdaddr); in bta_gatts_conn_cback()
610 bta_sys_conn_close(BTA_ID_GATTS, BTA_ALL_APP_ID, bdaddr); in bta_gatts_conn_cback()
617 cb_data.conn.remote_bda = bdaddr; in bta_gatts_conn_cback()
Dbta_gattc_act.cc1037 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, in bta_gattc_conn_cback() argument
1048 btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); in bta_gattc_conn_cback()
1050 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason); in bta_gattc_conn_cback()
1058 p_buf->int_conn.role = L2CA_GetBleConnRole(bdaddr); in bta_gattc_conn_cback()
1061 p_buf->int_conn.remote_bda = bdaddr; in bta_gattc_conn_cback()
/system/bt/doc/
Dproperties.md16 * ``` persist.service.bdroid.bdaddr ```
/system/bt/stack/btm/
Dbtm_ble.cc983 const RawAddress& bdaddr, in btm_ble_determine_security_act() argument
1008 btm_ble_link_sec_check(bdaddr, auth_req, &ble_sec_act); in btm_ble_determine_security_act()
1017 BTM_GetSecurityFlagsByTransport(bdaddr, &sec_flag, BT_TRANSPORT_LE); in btm_ble_determine_security_act()