Home
last modified time | relevance | path

Searched refs:AddressWithType (Results 1 – 25 of 100) sorted by relevance

1234

/system/bt/gd/hci/
Daddress_with_type_test.cc33 AddressWithType address_with_type_1(addr1, type1); in TEST()
36 AddressWithType address_with_type_2(addr2, type2); in TEST()
38 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST()
42 std::unordered_map<AddressWithType, int> data = {}; in TEST()
51 AddressWithType address_with_type(addr, type); in TEST()
52 struct std::hash<AddressWithType> hasher; in TEST()
53 …EXPECT_NE(hasher(address_with_type), hasher(AddressWithType(Address::kEmpty, AddressType::PUBLIC_I… in TEST()
59 AddressWithType address_with_type_1(addr1, type1); in TEST()
62 AddressWithType address_with_type_2(addr2, type2); in TEST()
63 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST()
[all …]
Daddress_with_type.h32 class AddressWithType final {
34 AddressWithType(Address address, AddressType address_type) in AddressWithType() function
37 …explicit AddressWithType() : address_(Address::kEmpty), address_type_(AddressType::PUBLIC_DEVICE_A… in AddressWithType() function
75 bool operator<(const AddressWithType& rhs) const {
78 bool operator==(const AddressWithType& rhs) const {
81 bool operator>(const AddressWithType& rhs) const {
84 bool operator<=(const AddressWithType& rhs) const {
87 bool operator>=(const AddressWithType& rhs) const {
90 bool operator!=(const AddressWithType& rhs) const {
105 inline std::ostream& operator<<(std::ostream& os, const AddressWithType& a) {
[all …]
Dacl_manager.h79 virtual void CreateLeConnection(AddressWithType address_with_type, bool is_direct);
86 AddressWithType fixed_address,
93 AddressWithType fixed_address,
102 virtual void CancelLeConnect(AddressWithType address_with_type);
103 virtual void AddDeviceToConnectList(AddressWithType address_with_type);
105 AddressWithType address_with_type,
108 virtual void RemoveDeviceFromConnectList(AddressWithType address_with_type);
109 virtual void RemoveDeviceFromResolvingList(AddressWithType address_with_type);
117 …AdvertisingSetTerminated(ErrorCode status, uint16_t conn_handle, hci::AddressWithType adv_address);
Dle_address_manager.h58 AddressWithType fixed_address,
65 AddressWithType fixed_address,
74 AddressWithType GetCurrentAddress(); // What was set in SetRandomAddress()
75 virtual AddressWithType GetAnotherAddress(); // A new random address without rotating.
135 AddressWithType le_address_;
136 AddressWithType cached_address_;
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dacl_connection.h26 using ::bluetooth::hci::AddressWithType;
31 AclConnection(AddressWithType addr, AddressWithType own_addr,
40 AddressWithType GetAddress() const;
42 void SetAddress(AddressWithType address);
44 AddressWithType GetOwnAddress() const;
46 void SetOwnAddress(AddressWithType own_addr);
51 AddressWithType address_;
52 AddressWithType own_address_;
Dacl_connection.cc22 AclConnection::AclConnection(AddressWithType addr, AddressWithType own_addr, in AclConnection()
30 AddressWithType AclConnection::GetAddress() const { return address_; } in GetAddress()
32 void AclConnection::SetAddress(AddressWithType address) { address_ = address; } in SetAddress()
34 AddressWithType AclConnection::GetOwnAddress() const { return own_address_; } in GetOwnAddress()
36 void AclConnection::SetOwnAddress(AddressWithType own_addr) { in SetOwnAddress()
Dacl_connection_handler.h44 bool CreatePendingLeConnection(bluetooth::hci::AddressWithType addr);
45 bool HasPendingLeConnection(bluetooth::hci::AddressWithType addr) const;
46 bool CancelPendingLeConnection(bluetooth::hci::AddressWithType addr);
50 uint16_t CreateLeConnection(bluetooth::hci::AddressWithType addr,
51 bluetooth::hci::AddressWithType own_addr);
55 uint16_t GetHandle(bluetooth::hci::AddressWithType addr) const;
57 bluetooth::hci::AddressWithType GetAddress(uint16_t handle) const;
58 bluetooth::hci::AddressWithType GetOwnAddress(uint16_t handle) const;
63 void SetAddress(uint16_t handle, bluetooth::hci::AddressWithType address);
112 bluetooth::hci::AddressWithType pending_le_connection_address_{
Dle_advertiser.h35 void Initialize(bluetooth::hci::AddressWithType address,
36 bluetooth::hci::AddressWithType peer_address,
44 bluetooth::hci::AddressWithType peer_address,
70 bluetooth::hci::AddressWithType GetAddress() const;
73 bluetooth::hci::AddressWithType address_{};
74 bluetooth::hci::AddressWithType
Dle_advertiser.cc22 void LeAdvertiser::Initialize(AddressWithType address, in Initialize()
23 AddressWithType peer_address, in Initialize()
39 AddressType address_type, AddressWithType peer_address, in InitializeExtended()
43 address_ = AddressWithType(address_.GetAddress(), address_type); in InitializeExtended()
54 address_ = AddressWithType{}; in Clear()
55 peer_address_ = AddressWithType{}; in Clear()
66 address_ = AddressWithType(address, address_.GetAddressType()); in SetAddress()
69 AddressWithType LeAdvertiser::GetAddress() const { return address_; } in GetAddress()
Dacl_connection_handler.cc28 using ::bluetooth::hci::AddressWithType;
72 bool AclConnectionHandler::CreatePendingLeConnection(AddressWithType addr) { in CreatePendingLeConnection()
93 bool AclConnectionHandler::HasPendingLeConnection(AddressWithType addr) const { in HasPendingLeConnection()
97 bool AclConnectionHandler::CancelPendingLeConnection(AddressWithType addr) { in CancelPendingLeConnection()
103 AddressWithType{Address::kEmpty, AddressType::PUBLIC_DEVICE_ADDRESS}; in CancelPendingLeConnection()
114 AddressWithType{addr, AddressType::PUBLIC_DEVICE_ADDRESS}, in CreateConnection()
115 AddressWithType{own_addr, AddressType::PUBLIC_DEVICE_ADDRESS}, in CreateConnection()
122 uint16_t AclConnectionHandler::CreateLeConnection(AddressWithType addr, in CreateLeConnection()
123 AddressWithType own_addr) { in CreateLeConnection()
137 uint16_t AclConnectionHandler::GetHandle(AddressWithType addr) const { in GetHandle()
[all …]
/system/bt/gd/l2cap/le/internal/
Dlink_manager.h70 Link* GetLink(hci::AddressWithType address_with_type);
71 void OnLeConnectSuccess(hci::AddressWithType connecting_address_with_type,
73 void OnLeConnectFail(hci::AddressWithType address_with_type, hci::ErrorCode reason) override;
77 void ConnectFixedChannelServices(hci::AddressWithType address_with_type,
82 void ConnectDynamicChannelServices(hci::AddressWithType device,
85 void OnDisconnect(hci::AddressWithType address_with_type);
93 hci::AddressWithType address_with_type,
100 void OnPendingPacketChange(hci::AddressWithType remote, int num_packets);
111 std::unordered_map<hci::AddressWithType, PendingLink> pending_links_;
112 std::unordered_map<hci::AddressWithType, Link> links_;
[all …]
Dlink_manager.cc33 void LinkManager::ConnectFixedChannelServices(hci::AddressWithType address_with_type, in ConnectFixedChannelServices()
87 …hci::AddressWithType device, Link::PendingDynamicChannelConnection pending_dynamic_channel_connect… in ConnectDynamicChannelServices()
97 Link* LinkManager::GetLink(hci::AddressWithType address_with_type) { in GetLink()
104 void LinkManager::OnLeConnectSuccess(hci::AddressWithType connecting_address_with_type, in OnLeConnectSuccess()
107 hci::AddressWithType connected_address_with_type = acl_connection->GetRemoteAddress(); in OnLeConnectSuccess()
130 void LinkManager::OnLeConnectFail(hci::AddressWithType address_with_type, hci::ErrorCode reason) { in OnLeConnectFail()
148 void LinkManager::OnDisconnect(bluetooth::hci::AddressWithType address_with_type) { in OnDisconnect()
171 hci::AddressWithType address_with_type, in OnReadRemoteVersionInformationComplete()
203 void LinkManager::OnPendingPacketChange(hci::AddressWithType remote, int num_packets) { in OnPendingPacketChange()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.h87 void CreateBond(hci::AddressWithType address);
99 …hci::AddressWithType address, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_…
106 void CreateBondLe(hci::AddressWithType address);
115 void CancelBond(hci::AddressWithType device);
125 void RemoveBond(hci::AddressWithType device);
139 hci::AddressWithType fixed_address,
181 …void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirmed) overr…
182 void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) override;
183 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override;
184 …void OnPinEntry(const bluetooth::hci::AddressWithType& address, std::vector<uint8_t> pin) override;
[all …]
Dsecurity_manager_impl.cc98 …hci::AddressWithType(adapter_config.GetAddress().value(), hci::AddressType::PUBLIC_DEVICE_ADDRESS); in Init()
102 hci::AddressWithType address_with_type(hci::Address{}, hci::AddressType::RANDOM_DEVICE_ADDRESS); in Init()
112 void SecurityManagerImpl::CreateBond(hci::AddressWithType device) { in CreateBond()
117 …hci::AddressWithType device, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_o… in CreateBondOutOfBand()
138 void SecurityManagerImpl::CreateBondLe(hci::AddressWithType address) { in CreateBondLe()
159 void SecurityManagerImpl::CancelBond(hci::AddressWithType device) { in CancelBond()
173 void SecurityManagerImpl::RemoveBond(hci::AddressWithType device) { in RemoveBond()
193 hci::AddressWithType fixed_address, in SetLeInitiatorAddressPolicyForTest()
222 void SecurityManagerImpl::NotifyDeviceBonded(hci::AddressWithType device) { in NotifyDeviceBonded()
228 void SecurityManagerImpl::NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status… in NotifyDeviceBondFailed()
[all …]
/system/bt/gd/security/
Dsecurity_manager.h53 void CreateBond(hci::AddressWithType address);
65 …hci::AddressWithType address, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_…
79 void CreateBondLe(hci::AddressWithType address);
86 void CancelBond(hci::AddressWithType device);
93 void RemoveBond(hci::AddressWithType device);
105 hci::AddressWithType fixed_address,
124 …void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirmed) overr…
125 void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) override;
126 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override;
127 …void OnPinEntry(const bluetooth::hci::AddressWithType& address, std::vector<uint8_t> pin) override;
Dui.h28 ConfirmationData() : address_with_type_(hci::AddressWithType()), name_("No name set") {} in ConfirmationData()
29 ConfirmationData(bluetooth::hci::AddressWithType address_with_type, std::string name) in ConfirmationData()
31 …ConfirmationData(bluetooth::hci::AddressWithType address_with_type, std::string name, uint32_t num… in ConfirmationData()
34 const bluetooth::hci::AddressWithType& GetAddressWithType() { in GetAddressWithType()
78 bluetooth::hci::AddressWithType address_with_type_;
97 …virtual void DisplayPairingPrompt(const bluetooth::hci::AddressWithType& address, std::string name…
101 virtual void Cancel(const bluetooth::hci::AddressWithType& address) = 0;
125 …virtual void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirme…
128 virtual void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) = 0;
131 virtual void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) = 0;
[all …]
Dsecurity_manager.cc33 void SecurityManager::CreateBond(hci::AddressWithType device) { in CreateBond()
36 std::forward<hci::AddressWithType>(device))); in CreateBond()
40 …hci::AddressWithType device, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_o… in CreateBondOutOfBand()
44 std::forward<hci::AddressWithType>(device), in CreateBondOutOfBand()
56 void SecurityManager::CreateBondLe(hci::AddressWithType device) { in CreateBondLe()
59 std::forward<hci::AddressWithType>(device))); in CreateBondLe()
62 void SecurityManager::CancelBond(hci::AddressWithType device) { in CancelBond()
65 std::forward<hci::AddressWithType>(device))); in CancelBond()
68 void SecurityManager::RemoveBond(hci::AddressWithType device) { in RemoveBond()
71 std::forward<hci::AddressWithType>(device))); in RemoveBond()
[all …]
Dsecurity_manager_listener.h40 virtual void OnDeviceBonded(bluetooth::hci::AddressWithType device) = 0;
47 virtual void OnDeviceUnbonded(bluetooth::hci::AddressWithType device) = 0;
54 …virtual void OnDeviceBondFailed(bluetooth::hci::AddressWithType device, PairingFailure status) = 0;
Dl2cap_security_module_interface.cc27 hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy, in Enforce()
31 … std::forward<hci::AddressWithType>(remote), std::forward<l2cap::classic::SecurityPolicy>(policy), in Enforce()
35 void L2capSecurityModuleInterface::Enforce(hci::AddressWithType remote, l2cap::le::SecurityPolicy p… in Enforce()
39 std::forward<hci::AddressWithType>(remote), std::forward<l2cap::le::SecurityPolicy>(policy), in Enforce()
Dinitial_informations.h45 std::optional<hci::AddressWithType> remote_identity_address;
58 hci::AddressWithType connection_address;
80 hci::AddressWithType my_connection_address;
82 hci::AddressWithType my_identity_address;
98 hci::AddressWithType remote_connection_address;
/system/bt/gd/hci/acl_manager/
Dle_acl_connection.h36 AddressWithType local_address,
37 AddressWithType remote_address,
41 virtual AddressWithType GetLocalAddress() const { in GetLocalAddress()
45 virtual void UpdateLocalAddress(AddressWithType address) { in UpdateLocalAddress()
49 virtual AddressWithType GetRemoteAddress() const { in GetRemoteAddress()
78 AddressWithType local_address_;
79 AddressWithType remote_address_;
Dle_impl.h42 …le_acl_connection(AddressWithType remote_address, AclConnection::QueueDownEnd* queue_down_end, os:… in le_acl_connection()
46 AddressWithType remote_address_;
131 void on_common_le_connection_complete(AddressWithType address_with_type) { in on_common_le_connection_complete()
151 AddressWithType remote_address(address, peer_address_type); in on_le_connection_complete()
152 AddressWithType local_address = le_address_manager_->GetCurrentAddress(); in on_le_connection_complete()
207 AddressWithType remote_address(address, peer_address_type); in on_le_enhanced_connection_complete()
209 remote_address = AddressWithType(peer_resolvable_address, AddressType::RANDOM_DEVICE_ADDRESS); in on_le_enhanced_connection_complete()
233 AddressWithType local_address; in on_le_enhanced_connection_complete()
239 local_address = AddressWithType{}; in on_le_enhanced_connection_complete()
366 void add_device_to_connect_list(AddressWithType address_with_type) { in add_device_to_connect_list()
[all …]
/system/bt/gd/l2cap/le/
Dlink_property_listener.h38 virtual void OnLinkConnected(hci::AddressWithType remote, uint16_t handle, hci::Role my_role) {} in OnLinkConnected()
43 virtual void OnLinkDisconnected(hci::AddressWithType remote) {} in OnLinkDisconnected()
50 hci::AddressWithType remote, in OnReadRemoteVersionInformation()
59 hci::AddressWithType remote, in OnConnectionUpdate()
67 virtual void OnPhyUpdate(hci::AddressWithType remote, uint8_t tx_phy, uint8_t rx_phy) {} in OnPhyUpdate()
73 …hci::AddressWithType remote, uint16_t tx_octets, uint16_t tx_time, uint16_t rx_octets, uint16_t rx… in OnDataLengthChange()
/system/bt/gd/security/channel/
Dsecurity_manager_channel_unittest.cc88 void OnReceive(hci::AddressWithType device, hci::ChangeConnectionLinkKeyCompleteView packet) { in OnReceive()
92 void OnReceive(hci::AddressWithType device, hci::CentralLinkKeyCompleteView packet) { in OnReceive()
96 void OnReceive(hci::AddressWithType device, hci::PinCodeRequestView packet) { in OnReceive()
100 void OnReceive(hci::AddressWithType device, hci::LinkKeyRequestView packet) { in OnReceive()
104 void OnReceive(hci::AddressWithType device, hci::LinkKeyNotificationView packet) { in OnReceive()
108 void OnReceive(hci::AddressWithType device, hci::IoCapabilityRequestView packet) { in OnReceive()
112 void OnReceive(hci::AddressWithType device, hci::IoCapabilityResponseView packet) { in OnReceive()
116 void OnReceive(hci::AddressWithType device, hci::SimplePairingCompleteView packet) { in OnReceive()
120 void OnReceive(hci::AddressWithType device, hci::ReturnLinkKeysView packet) { in OnReceive()
124 void OnReceive(hci::AddressWithType device, hci::EncryptionChangeView packet) { in OnReceive()
[all …]
/system/bt/main/shim/
Dacl.h59 hci::AddressWithType,
61 void OnLeConnectFail(hci::AddressWithType, hci::ErrorCode reason) override;
63 bluetooth::hci::AddressWithType GetConnectionLocalAddress(
69 void AcceptLeConnectionFrom(const hci::AddressWithType& address_with_type,
73 const hci::AddressWithType& address_with_type) override;

1234