/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/hci/ |
D | address_unittest.cc | 32 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 …]
|
D | controller_test.cc | 357 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST_F() local 358 …controller_->SetEventFilterConnectionSetupAddress(bdaddr, AutoAcceptFlag::AUTO_ACCEPT_ON_ROLE_SWIT… in TEST_F() 364 ASSERT_EQ(command3.GetAddress(), bdaddr); in TEST_F()
|
/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() 111 bool ConnectionHandler::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice() argument 112 LOG(INFO) << "Attempting to connect to device " << bdaddr; in ConnectDevice() 115 if (bdaddr == pair.second->GetAddress()) { in ConnectDevice() 116 LOG(WARNING) << "Already connected to device with address " << bdaddr; in ConnectDevice() 122 const RawAddress& bdaddr, uint16_t status, in ConnectDevice() 133 instance_->feature_map_.emplace(bdaddr, features); in ConnectDevice() 134 instance_->AvrcpConnect(true, bdaddr); in ConnectDevice() 138 return SdpLookup(bdaddr, base::Bind(connection_lambda, this, bdaddr), false); in ConnectDevice() [all …]
|
D | connection_handler.h | 101 virtual bool ConnectDevice(const RawAddress& bdaddr); 111 virtual bool DisconnectDevice(const RawAddress& bdaddr); 119 virtual void SetBipClientStatus(const RawAddress& bdaddr, bool connected); 146 virtual bool SdpLookup(const RawAddress& bdaddr, SdpCallback cb, bool retry); 147 void SdpCb(RawAddress bdaddr, SdpCallback cb, 150 virtual bool AvrcpConnect(bool initiator, const RawAddress& bdaddr);
|
D | device.h | 63 const RawAddress& bdaddr, bool avrcp13_compatibility,
|
/system/bt/btif/avrcp/ |
D | avrcp_service.h | 63 void ConnectDevice(const RawAddress& bdaddr); 64 void DisconnectDevice(const RawAddress& bdaddr); 66 void SetBipClientStatus(const RawAddress& bdaddr, bool connected); 81 bool ConnectDevice(const RawAddress& bdaddr) override; 82 bool DisconnectDevice(const RawAddress& bdaddr) override; 83 void SetBipClientStatus(const RawAddress& bdaddr, bool connected) override;
|
D | avrcp_service.cc | 251 void DeviceConnected(const RawAddress& bdaddr) override { in DeviceConnected() argument 255 base::Unretained(wrapped_), bdaddr)); in DeviceConnected() 258 void DeviceConnected(const RawAddress& bdaddr, VolumeChangedCb cb) override { in DeviceConnected() argument 268 base::Unretained(wrapped_), bdaddr, bound_cb)); in DeviceConnected() 271 void DeviceDisconnected(const RawAddress& bdaddr) override { in DeviceDisconnected() argument 273 base::Unretained(wrapped_), bdaddr)); in DeviceDisconnected() 382 void AvrcpService::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice() argument 383 LOG(INFO) << __PRETTY_FUNCTION__ << ": address=" << bdaddr.ToString(); in ConnectDevice() 385 connection_handler_->ConnectDevice(bdaddr); in ConnectDevice() 388 void AvrcpService::DisconnectDevice(const RawAddress& bdaddr) { in DisconnectDevice() argument [all …]
|
/system/bt/include/hardware/avrcp/ |
D | avrcp.h | 157 virtual void DeviceConnected(const RawAddress& bdaddr) = 0; 162 virtual void DeviceConnected(const RawAddress& bdaddr, 167 virtual void DeviceDisconnected(const RawAddress& bdaddr) = 0; 182 virtual bool ConnectDevice(const RawAddress& bdaddr) = 0; 183 virtual bool DisconnectDevice(const RawAddress& bdaddr) = 0; 184 virtual void SetBipClientStatus(const RawAddress& bdaddr, bool connected) = 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
|
/system/bt/profile/avrcp/tests/avrcp_device_fuzz/ |
D | avrcp_device_fuzz.cc | 40 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/bta/test/ |
D | bta_dip_test.cc | 24 const RawAddress bdaddr({0x11, 0x22, 0x33, 0x44, 0x55, 0x66}); variable 92 g_rec.remote_bd_addr = bdaddr; in SetUp() 96 bta_sdp_cb.remote_addr = bdaddr; in SetUp()
|
/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 513 static void btif_update_remote_properties(const RawAddress& bdaddr, in btif_update_remote_properties() argument 530 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 545 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 560 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 571 if (btif_storage_get_remote_device_property(&bdaddr, &prop_name) == in btif_update_remote_properties() 583 &bdaddr, &properties[num_properties]); in btif_update_remote_properties() 589 invoke_remote_device_properties_cb(status, bdaddr, num_properties, in btif_update_remote_properties() 1129 RawAddress& bdaddr = p_search_data->disc_res.bd_addr; in btif_dm_search_devices_evt() local 1132 btif_storage_set_remote_device_property(&bdaddr, &properties[0]); in btif_dm_search_devices_evt() [all …]
|
D | btif_hh.cc | 125 extern void btif_dm_hh_open_failed(RawAddress* bdaddr); 817 RawAddress* bdaddr = &p_data->conn.bda; in btif_hh_upstreams_evt() local 818 btif_dm_hh_open_failed(bdaddr); in btif_hh_upstreams_evt() 819 p_dev = btif_hh_find_dev_by_bda(*bdaddr); in btif_hh_upstreams_evt()
|
/system/bt/test/suite/adapter/ |
D | adapter_unittest.cc | 156 RawAddress bdaddr = {{0x22, 0x22, 0x22, 0x22, 0x22, 0x22}}; in TEST_F() local 163 EXPECT_EQ(bt_interface()->create_bond(&bdaddr, BT_TRANSPORT_BR_EDR), in TEST_F() 166 EXPECT_EQ(bt_interface()->cancel_bond(&bdaddr), BT_STATUS_SUCCESS); in TEST_F()
|
/system/bt/bta/gatt/ |
D | bta_gatts_act.cc | 584 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, in bta_gatts_conn_cback() argument 592 VLOG(1) << __func__ << " bda=" << bdaddr << " gatt_if= " << gatt_if in bta_gatts_conn_cback() 596 btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); in bta_gatts_conn_cback() 598 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, GATT_CONN_UNKNOWN); in bta_gatts_conn_cback() 606 bta_sys_conn_open(BTA_ID_GATTS, BTA_ALL_APP_ID, bdaddr); in bta_gatts_conn_cback() 608 bta_sys_conn_close(BTA_ID_GATTS, BTA_ALL_APP_ID, bdaddr); in bta_gatts_conn_cback() 614 cb_data.conn.remote_bda = bdaddr; in bta_gatts_conn_cback()
|
D | bta_gattc_act.cc | 1103 static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, in bta_gattc_conn_cback() argument 1111 btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_UNKNOWN); in bta_gattc_conn_cback() 1116 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, GATT_CONN_UNKNOWN); in bta_gattc_conn_cback() 1125 p_buf->int_conn.role = L2CA_GetBleConnRole(bdaddr); in bta_gattc_conn_cback() 1128 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/include/ |
D | l2c_api.h | 271 typedef void(tL2CA_CREDIT_BASED_CONNECT_IND_CB)(const RawAddress& bdaddr, 282 typedef void(tL2CA_CREDIT_BASED_CONNECT_CFM_CB)(const RawAddress& bdaddr, 294 const RawAddress& bdaddr, uint16_t lcid, bool is_local_cfg,
|
/system/bt/stack/test/common/ |
D | mock_btif_dm.cc | 113 void btif_dm_hh_open_failed(RawAddress* bdaddr) { in btif_dm_hh_open_failed() argument
|
/system/bt/test/mock/ |
D | mock_btif_dm.cc | 114 void btif_dm_hh_open_failed(RawAddress* bdaddr) { in btif_dm_hh_open_failed() argument
|
D | mock_stack_btm_ble.cc | 97 const RawAddress& bdaddr, in btm_ble_determine_security_act() argument
|
/system/bt/stack/eatt/ |
D | eatt_impl.h | 88 EattChannel* find_channel_by_cid(const RawAddress& bdaddr, uint16_t lcid) { in find_channel_by_cid() 89 eatt_device* eatt_dev = find_device_by_address(bdaddr); in find_channel_by_cid()
|
/system/bt/stack/btm/ |
D | btm_ble.cc | 829 const RawAddress& bdaddr, in btm_ble_determine_security_act() argument 854 btm_ble_link_sec_check(bdaddr, auth_req, &ble_sec_act); in btm_ble_determine_security_act() 862 bool is_link_encrypted = BTM_IsEncrypted(bdaddr, BT_TRANSPORT_LE); in btm_ble_determine_security_act() 863 bool is_key_mitm = BTM_IsLinkKeyAuthed(bdaddr, BT_TRANSPORT_LE); in btm_ble_determine_security_act()
|