/system/bt/types/test/ |
D | raw_address_unittest.cc | 27 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/common/ |
D | address_unittest.cc | 29 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST() local 31 ASSERT_EQ(0x12, bdaddr.address[0]); in TEST() 32 ASSERT_EQ(0x34, bdaddr.address[1]); in TEST() 33 ASSERT_EQ(0x56, bdaddr.address[2]); in TEST() 34 ASSERT_EQ(0x78, bdaddr.address[3]); in TEST() 35 ASSERT_EQ(0x9A, bdaddr.address[4]); in TEST() 36 ASSERT_EQ(0xBC, bdaddr.address[5]); in TEST() 38 std::string ret = bdaddr.ToString(); in TEST() 54 Address bdaddr; in TEST() local 55 Address::FromString(test_addr, bdaddr); in TEST() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/types/test/ |
D | address_unittest.cc | 27 Address 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 Address bdaddr; in TEST() local 53 Address::FromString(test_addr, bdaddr); in TEST() [all …]
|
/system/bt/profile/avrcp/ |
D | connection_handler.cc | 46 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)); in ConnectDevice() [all …]
|
D | connection_handler.h | 101 virtual bool ConnectDevice(const RawAddress& bdaddr); 111 virtual bool DisconnectDevice(const RawAddress& bdaddr); 138 virtual bool SdpLookup(const RawAddress& bdaddr, SdpCallback cb); 139 void SdpCb(const RawAddress& bdaddr, SdpCallback cb, 142 virtual bool AvrcpConnect(bool initiator, const RawAddress& bdaddr);
|
D | device.h | 63 const RawAddress& bdaddr, bool avrcp13_compatibility,
|
D | device.cc | 39 const RawAddress& bdaddr, bool avrcp13_compatibility, in Device() argument 45 address_(bdaddr), in Device()
|
/system/bt/btif/avrcp/ |
D | avrcp_service.h | 59 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;
|
D | avrcp_service.cc | 252 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/ |
D | avrcp.h | 156 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/ |
D | gatt_server.h | 172 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
|
D | gatt_server.cc | 552 if (conn->bdaddr != bda) { in GetConnection()
|
/system/bt/tools/bdtool/ |
D | adapter.c | 83 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/ |
D | btif_dm.cc | 152 RawAddress bdaddr; /* peer bdaddr */ member 157 RawAddress bdaddr; member 556 static void btif_update_remote_properties(const RawAddress& bdaddr, in btif_update_remote_properties() argument 572 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 587 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 597 status = btif_storage_set_remote_device_property(&bdaddr, in btif_update_remote_properties() 608 if (btif_storage_get_remote_device_property(&bdaddr, &prop_name) == in btif_update_remote_properties() 617 status = btif_storage_set_remote_device_property(&bdaddr, in btif_update_remote_properties() 623 auto tmp = bdaddr; in btif_update_remote_properties() 1241 RawAddress& bdaddr = p_search_data->disc_res.bd_addr; in btif_dm_search_devices_evt() local [all …]
|
D | btif_hh.cc | 149 extern void btif_dm_hh_open_failed(RawAddress* bdaddr); 821 RawAddress* bdaddr = &p_data->conn.bda; in btif_hh_upstreams_evt() local 822 btif_dm_hh_open_failed(bdaddr); in btif_hh_upstreams_evt() 823 p_dev = btif_hh_find_dev_by_bda(*bdaddr); in btif_hh_upstreams_evt()
|
/system/bt/test/suite/adapter/ |
D | adapter_unittest.cc | 155 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/ |
D | bta_gatts_act.cc | 585 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()
|
D | bta_gattc_act.cc | 1039 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, in bta_gattc_conn_cback() argument 1050 btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); in bta_gattc_conn_cback() 1052 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason); in bta_gattc_conn_cback() 1060 p_buf->int_conn.role = L2CA_GetBleConnRole(bdaddr); in bta_gattc_conn_cback() 1063 p_buf->int_conn.remote_bda = bdaddr; in bta_gattc_conn_cback()
|
/system/bt/doc/ |
D | properties.md | 16 * ``` persist.service.bdroid.bdaddr ```
|
/system/bt/stack/btm/ |
D | btm_ble.cc | 971 const RawAddress& bdaddr, in btm_ble_determine_security_act() argument 996 btm_ble_link_sec_check(bdaddr, auth_req, &ble_sec_act); in btm_ble_determine_security_act() 1005 BTM_GetSecurityFlagsByTransport(bdaddr, &sec_flag, BT_TRANSPORT_LE); in btm_ble_determine_security_act()
|