/packages/modules/Bluetooth/system/gd/hci/ |
D | address_with_type_test.cc | 38 AddressWithType address_with_type_1(addr1, type1); in TEST() 41 AddressWithType address_with_type_2(addr2, type2); in TEST() 43 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() 47 std::unordered_map<AddressWithType, int> data = {}; in TEST() 56 AddressWithType address_with_type(addr, type); in TEST() 57 struct std::hash<AddressWithType> hasher; in TEST() 58 …EXPECT_NE(hasher(address_with_type), hasher(AddressWithType(Address::kEmpty, AddressType::PUBLIC_I… in TEST() 64 AddressWithType address_with_type_1(addr1, type1); in TEST() 67 AddressWithType address_with_type_2(addr2, type2); in TEST() 68 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() [all …]
|
D | address_with_type.h | 35 class AddressWithType final : public bluetooth::common::IRedactableLoggable { 37 AddressWithType(Address address, AddressType address_type) in AddressWithType() function 40 …explicit AddressWithType() : address_(Address::kEmpty), address_type_(AddressType::PUBLIC_DEVICE_A… in AddressWithType() function 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 { 93 bool operator!=(const AddressWithType& rhs) const { 138 inline std::ostream& operator<<(std::ostream& os, const AddressWithType& a) { [all …]
|
D | acl_manager.h | 85 virtual void CreateLeConnection(AddressWithType address_with_type, bool is_direct); 99 AddressWithType fixed_address, 106 AddressWithType fixed_address, 115 virtual void RemoveFromBackgroundList(AddressWithType address_with_type); 116 virtual void IsOnBackgroundList(AddressWithType address_with_type, std::promise<bool> promise); 118 virtual void CancelLeConnect(AddressWithType address_with_type); 123 AddressWithType address_with_type, 126 virtual void RemoveDeviceFromResolvingList(AddressWithType address_with_type); 139 hci::AddressWithType adv_address,
|
/packages/modules/Bluetooth/system/rust/src/connection/ffi/ |
D | connection_shim.cc | 39 void OnLeConnectSuccess(core::AddressWithType addr) const { in OnLeConnectSuccess() 42 void OnLeConnectFail(core::AddressWithType addr, uint8_t status) const { in OnLeConnectFail() 45 void OnLeDisconnection(core::AddressWithType addr) const { in OnLeDisconnection() 59 hci::AddressWithType ToCppAddress(core::AddressWithType address) { in ToCppAddress() 62 return hci::AddressWithType(hci_address, in ToCppAddress() 66 core::AddressWithType ToRustAddress(hci::AddressWithType address) { in ToRustAddress() 67 return core::AddressWithType{address.GetAddress().address, in ToRustAddress() 86 void CreateLeConnection(core::AddressWithType address, bool is_direct) { in CreateLeConnection() 90 void CancelLeConnect(core::AddressWithType address) { in CancelLeConnect() 102 virtual void OnLeConnectSuccess(hci::AddressWithType address) { in OnLeConnectSuccess() [all …]
|
D | connection_shim.h | 35 void CreateLeConnection(core::AddressWithType address, bool is_direct) const; 37 void CancelLeConnect(core::AddressWithType address) const; 49 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 51 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 53 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 55 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 58 ::rust::Fn<void(core::AddressWithType address)> 62 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 64 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> 66 ::rust::Fn<void(uint8_t client_id, core::AddressWithType address)> [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/ |
D | le_extended_create_connection_test.cc | 44 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 56 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 68 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 79 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 88 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 98 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 108 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x8, in TEST_F() 118 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 126 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() 139 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, 0x1, in TEST_F() [all …]
|
D | le_create_connection_test.cc | 39 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 49 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 59 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 68 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 75 AddressWithType{Address{2}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 84 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 91 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 100 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 107 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() 114 AddressWithType{Address{1}, AddressType::PUBLIC_DEVICE_ADDRESS}, in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/security/internal/ |
D | security_manager_impl.h | 92 void CreateBond(hci::AddressWithType address); 104 …hci::AddressWithType address, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_… 111 void CreateBondLe(hci::AddressWithType address); 120 void CancelBond(hci::AddressWithType device); 130 void RemoveBond(hci::AddressWithType device); 144 hci::AddressWithType fixed_address, 186 …void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirmed) overr… 187 void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) override; 188 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override; 189 …void OnPinEntry(const bluetooth::hci::AddressWithType& address, std::vector<uint8_t> pin) override; [all …]
|
/packages/modules/Bluetooth/system/rust/src/connection/ |
D | ffi.rs | 35 type AddressWithType = crate::core::address::AddressWithType; typedef 50 fn create_le_connection(&self, address: AddressWithType, is_direct: bool); in create_le_connection() argument 54 fn cancel_le_connect(&self, address: AddressWithType); in cancel_le_connect() argument 72 fn on_le_connect_success(&self, address: AddressWithType); in on_le_connect_success() argument 74 fn on_le_connect_fail(&self, address: AddressWithType, status: u8); in on_le_connect_fail() argument 76 fn on_disconnect(&self, address: AddressWithType); in on_disconnect() argument 85 start_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis() argument 86 stop_direct_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis() 87 add_background_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis() 88 remove_background_connection: fn(client_id: u8, address: AddressWithType), in RegisterRustApis() [all …]
|
D | le_manager.rs | 17 use crate::core::address::AddressWithType; 48 fn add_to_direct_list(&self, address: AddressWithType); // CreateLeConnection(is_direct=true) in add_to_direct_list() argument 50 … fn add_to_background_list(&self, address: AddressWithType); // CreateLeConnection(is_direct=false) in add_to_background_list() argument 53 fn remove_from_all_lists(&self, address: AddressWithType); // CancelLeConnect in remove_from_all_lists() argument 59 fn on_le_connect(&self, address: AddressWithType, result: Result<LeConnection, ErrorCode>); in on_le_connect() argument 62 fn on_disconnect(&self, address: AddressWithType); in on_disconnect() argument
|
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/ |
D | link_manager.h | 73 Link* GetLink(hci::AddressWithType address_with_type); 74 void OnLeConnectSuccess(hci::AddressWithType connecting_address_with_type, 76 void OnLeConnectFail(hci::AddressWithType address_with_type, hci::ErrorCode reason) override; 80 void ConnectFixedChannelServices(hci::AddressWithType address_with_type, 85 void ConnectDynamicChannelServices(hci::AddressWithType device, 88 void OnDisconnect(hci::AddressWithType address_with_type); 96 hci::AddressWithType address_with_type, 103 void OnPendingPacketChange(hci::AddressWithType remote, int num_packets); 114 std::unordered_map<hci::AddressWithType, PendingLink> pending_links_; 115 std::unordered_map<hci::AddressWithType, Link> links_; [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/include/hci/ |
D | address_with_type.h | 36 class AddressWithType final { 38 AddressWithType(Address address, AddressType address_type) in AddressWithType() function 41 explicit AddressWithType() in AddressWithType() function 77 bool operator<(const AddressWithType& rhs) const { 81 bool operator==(const AddressWithType& rhs) const { 84 bool operator>(const AddressWithType& rhs) const { return (rhs < *this); } 85 bool operator<=(const AddressWithType& rhs) const { return !(*this > rhs); } 86 bool operator>=(const AddressWithType& rhs) const { return !(*this < rhs); } 87 bool operator!=(const AddressWithType& rhs) const { return !(*this == rhs); } 122 inline std::ostream& operator<<(std::ostream& os, const AddressWithType& a) { [all …]
|
/packages/modules/Bluetooth/system/gd/hci/acl_manager/ |
D | le_acl_connection.h | 34 AddressWithType local_address; 39 AddressWithType local_address; 63 AddressWithType remote_address); 69 virtual AddressWithType GetLocalAddress() const; 79 virtual AddressWithType GetRemoteAddress() const { in GetRemoteAddress() 84 AddressWithType peer_address_with_type_; 109 virtual AddressWithType GetPeerAddress() const { in GetPeerAddress() 114 virtual AddressWithType GetPeerOtaAddress() const { in GetPeerOtaAddress() 118 return AddressWithType(peer_resolvable_private_address_, AddressType::RANDOM_DEVICE_ADDRESS); in GetPeerOtaAddress() 122 virtual AddressWithType GetLocalOtaAddress() const { in GetLocalOtaAddress() [all …]
|
D | le_impl.h | 107 AddressWithType remote_address, in le_acl_connection() 117 AddressWithType remote_address_; 241 const AddressWithType& remote_address, in add() 279 AddressWithType getAddressWithType(uint16_t handle) { in getAddressWithType() 285 AddressWithType empty(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); in getAddressWithType() 289 bool alreadyConnected(AddressWithType address_with_type) { in alreadyConnected() 311 void report_le_connection_failure(AddressWithType address, ErrorCode status) { in report_le_connection_failure() 330 void on_common_le_connection_complete(AddressWithType address_with_type) { in on_common_le_connection_complete() 345 AddressWithType remote_address; in on_le_connection_complete() 360 remote_address = AddressWithType(address, peer_address_type); in on_le_connection_complete() [all …]
|
/packages/modules/Bluetooth/system/gd/security/ |
D | security_manager.cc | 33 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 …]
|
D | security_manager.h | 55 void CreateBond(hci::AddressWithType address); 67 …hci::AddressWithType address, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_… 81 void CreateBondLe(hci::AddressWithType address); 88 void CancelBond(hci::AddressWithType device); 95 void RemoveBond(hci::AddressWithType device); 107 hci::AddressWithType fixed_address, 126 …void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirmed) overr… 127 void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) override; 128 void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) override; 129 …void OnPinEntry(const bluetooth::hci::AddressWithType& address, std::vector<uint8_t> pin) override;
|
D | ui.h | 31 ConfirmationData() : address_with_type_(hci::AddressWithType()), name_("No name set") {} in ConfirmationData() 32 ConfirmationData(bluetooth::hci::AddressWithType address_with_type, std::string name) in ConfirmationData() 34 …ConfirmationData(bluetooth::hci::AddressWithType address_with_type, std::string name, uint32_t num… in ConfirmationData() 37 const bluetooth::hci::AddressWithType& GetAddressWithType() { in GetAddressWithType() 81 bluetooth::hci::AddressWithType address_with_type_; 100 …virtual void DisplayPairingPrompt(const bluetooth::hci::AddressWithType& address, std::string name… 104 virtual void Cancel(const bluetooth::hci::AddressWithType& address) = 0; 128 …virtual void OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, bool confirme… 131 virtual void OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confirmed) = 0; 134 virtual void OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t passkey) = 0; [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/ |
D | acl_connection_handler.h | 75 bool CreatePendingLeConnection(bluetooth::hci::AddressWithType peer, 76 bluetooth::hci::AddressWithType resolved_peer, 77 bluetooth::hci::AddressWithType local_address); 78 bool HasPendingLeConnection(bluetooth::hci::AddressWithType addr) const; 79 bool CancelPendingLeConnection(bluetooth::hci::AddressWithType addr); 86 uint16_t CreateLeConnection(bluetooth::hci::AddressWithType addr, 87 bluetooth::hci::AddressWithType own_addr, 98 uint16_t GetHandle(bluetooth::hci::AddressWithType addr) const; 100 bluetooth::hci::AddressWithType GetAddress(uint16_t handle) const; 101 std::optional<AddressWithType> GetAddressSafe(uint16_t handle) const; [all …]
|
D | acl_connection.h | 28 using ::bluetooth::hci::AddressWithType; 39 AclConnection(AddressWithType address, AddressWithType own_address, 40 AddressWithType resolved_address, Phy::Type phy_type, 47 AddressWithType GetAddress() const { return address_; } in GetAddress() 48 AddressWithType GetOwnAddress() const { return own_address_; } in GetOwnAddress() 49 AddressWithType GetResolvedAddress() const { return resolved_address_; } in GetResolvedAddress() 86 AddressWithType address_; 87 AddressWithType own_address_; 88 AddressWithType resolved_address_;
|
D | acl_connection_handler.cc | 38 using ::bluetooth::hci::AddressWithType; 98 pending_le_connection_resolved_address_ = AddressWithType(); in CancelPendingConnection() 103 AddressWithType peer, AddressWithType resolved_peer, in CreatePendingLeConnection() 104 AddressWithType local_address) { in CreatePendingLeConnection() 129 bool AclConnectionHandler::HasPendingLeConnection(AddressWithType addr) const { in HasPendingLeConnection() 133 bool AclConnectionHandler::CancelPendingLeConnection(AddressWithType addr) { in CancelPendingLeConnection() 139 AddressWithType{Address::kEmpty, AddressType::PUBLIC_DEVICE_ADDRESS}; in CancelPendingLeConnection() 141 AddressWithType{Address::kEmpty, AddressType::PUBLIC_DEVICE_ADDRESS}; in CancelPendingLeConnection() 152 AddressWithType{addr, AddressType::PUBLIC_DEVICE_ADDRESS}, in CreateConnection() 153 AddressWithType{own_addr, AddressType::PUBLIC_DEVICE_ADDRESS}, in CreateConnection() [all …]
|
/packages/modules/Bluetooth/system/rust/src/connection/mocks/ |
D | mock_le_manager.rs | 16 core::address::AddressWithType, 34 pub fn current_acceptlist(&self) -> HashSet<AddressWithType> { in current_acceptlist() argument 42 pub fn on_le_connect(&self, address: AddressWithType, status: ErrorCode) { in on_le_connect() argument 58 pub fn on_le_disconnect(&self, address: AddressWithType) { in on_le_disconnect() argument 88 direct_connect_list: HashSet<AddressWithType>, 89 background_connect_list: HashSet<AddressWithType>, 90 currently_connected: HashSet<AddressWithType>, 104 pub fn current_acceptlist(&self) -> HashSet<AddressWithType> { in current_acceptlist() argument 127 pub fn on_le_connect(&self, address: AddressWithType, status: ErrorCode) { in on_le_connect() argument 136 pub fn on_le_disconnect(&self, address: AddressWithType) { in on_le_disconnect() argument [all …]
|
/packages/modules/Bluetooth/system/gd/security/channel/ |
D | security_manager_channel_unittest.cc | 88 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 …]
|
/packages/modules/Bluetooth/system/gd/l2cap/le/ |
D | link_property_listener.h | 39 hci::AddressWithType /* remote */, uint16_t /* handle */, hci::Role /* my_role */) {} in OnLinkConnected() argument 44 virtual void OnLinkDisconnected(hci::AddressWithType /* remote */) {} in OnLinkDisconnected() argument 51 hci::AddressWithType /* remote */, in OnReadRemoteVersionInformation() argument 60 hci::AddressWithType /* remote */, in OnConnectionUpdate() argument 69 hci::AddressWithType /* remote */, uint8_t /* tx_phy */, uint8_t /* rx_phy */) {} in OnPhyUpdate() argument 75 hci::AddressWithType /* remote */, in OnDataLengthChange() argument
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_main_shim_acl.cc | 86 const hci::AddressWithType& /* address_with_type */, bool /* is_direct */, in AcceptLeConnectionFrom() argument 92 const hci::AddressWithType& /* address_with_type */) { in IgnoreLeConnectionFrom() argument 101 bluetooth::hci::AddressWithType shim::legacy::Acl::GetConnectionLocalAddress( in GetConnectionLocalAddress() 104 return hci::AddressWithType(); in GetConnectionLocalAddress() 106 bluetooth::hci::AddressWithType shim::legacy::Acl::GetConnectionPeerAddress( in GetConnectionPeerAddress() 109 return hci::AddressWithType(); in GetConnectionPeerAddress() 140 hci::AddressWithType /* address_with_type */, in OnLeConnectSuccess() argument 146 hci::AddressWithType /* address_with_type */, hci::ErrorCode /* reason */) { in OnLeConnectFail() argument 196 const hci::AddressWithType& /* address_with_type */, in AddToAddressResolution() argument 203 const hci::AddressWithType& /* address_with_type */) { in RemoveFromAddressResolution() argument
|
/packages/modules/Bluetooth/system/rust/src/ |
D | connection.rs | 13 address::AddressWithType, 75 pub remote_address: AddressWithType, 90 current_connections: HashSet<AddressWithType>, 103 fn on_le_connect(&self, address: AddressWithType, result: Result<LeConnection, ErrorCode>) { in on_le_connect() argument 107 fn on_disconnect(&self, address: AddressWithType) { in on_disconnect() argument 146 address: AddressWithType, in start_direct_connection() argument 160 address: AddressWithType, in direct_connection() argument 209 address: AddressWithType, in add_background_connection() argument 221 address: AddressWithType, in cancel_connection() argument 231 pub fn cancel_unconditionally(&self, address: AddressWithType) { in cancel_unconditionally() argument [all …]
|