Home
last modified time | relevance | path

Searched refs:Address (Results 1 – 25 of 136) sorted by relevance

123456

/system/bt/gd/hci/
Daddress_unittest.cc26 using bluetooth::hci::Address;
32 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST()
47 Address empty; in TEST()
48 Address::FromString("00:00:00:00:00:00", empty); in TEST()
51 Address not_empty; in TEST()
52 Address::FromString("00:00:00:00:00:01", not_empty); in TEST()
57 Address bdaddr; in TEST()
58 Address::FromString(test_addr, bdaddr); in TEST()
75 Address bdaddr; in TEST()
76 size_t expected_result = Address::kLength; in TEST()
[all …]
Daddress.h33 class Address final : public packet::CustomFieldFixedSizeInterface<Address>, public storage::Serial…
39 Address() = default;
40 Address(const uint8_t (&addr)[kLength]);
41 Address(std::initializer_list<uint8_t> l);
53 static std::optional<Address> FromString(const std::string& from);
55 static std::optional<Address> FromLegacyConfigString(const std::string& str);
57 bool operator<(const Address& rhs) const {
60 bool operator==(const Address& rhs) const {
63 bool operator>(const Address& rhs) const {
66 bool operator<=(const Address& rhs) const {
[all …]
Daddress.cc32 const Address Address::kAny{{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}};
33 const Address Address::kEmpty{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
37 Address::Address(const uint8_t (&addr)[6]) { in Address() function in bluetooth::hci::Address
41 Address::Address(std::initializer_list<uint8_t> l) { in Address() function in bluetooth::hci::Address
45 std::string Address::ToString() const { in ToString()
56 std::string Address::ToLegacyConfigString() const { in ToLegacyConfigString()
60 std::optional<Address> Address::FromLegacyConfigString(const std::string& str) { in FromLegacyConfigString()
64 std::optional<Address> Address::FromString(const std::string& from) { in FromString()
69 Address addr{}; in FromString()
103 bool Address::FromString(const std::string& from, Address& to) { in FromString()
[all …]
Daddress_with_type_test.cc31 Address addr1{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
34 Address addr2{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
49 Address addr{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
53 …EXPECT_NE(hasher(address_with_type), hasher(AddressWithType(Address::kEmpty, AddressType::PUBLIC_I… in TEST()
57 Address addr1{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
60 Address addr2{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
70 …AddressWithType(Address{{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}, AddressType::PUBLIC_IDENTITY_ADDRES… in TEST()
74 …AddressWithType(Address{{0x30, 0x02, 0x03, 0x04, 0x05, 0x06}}, AddressType::RANDOM_DEVICE_ADDRESS)… in TEST()
76 …AddressWithType(Address{{0x40, 0x02, 0x03, 0x04, 0x05, 0x03}}, AddressType::RANDOM_DEVICE_ADDRESS)… in TEST()
78 …AddressWithType(Address{{0x50, 0x02, 0x03, 0x04, 0x05, 0x06}}, AddressType::RANDOM_DEVICE_ADDRESS)… in TEST()
[all …]
Dle_address_manager.h42 Address public_address,
78 void AddDeviceToConnectList(ConnectListAddressType connect_list_address_type, Address address);
81 Address peer_identity_address,
84 …void RemoveDeviceFromConnectList(ConnectListAddressType connect_list_address_type, Address address…
85 …void RemoveDeviceFromResolvingList(PeerAddressType peer_identity_address_type, Address peer_identi…
100 hci::Address generate_rpa();
101 hci::Address generate_nrpa();
133 Address public_address_;
Daddress_pybind11_type_caster.h34 struct type_caster<::bluetooth::hci::Address> {
37 PYBIND11_TYPE_CASTER(::bluetooth::hci::Address, _("Address"));
43 … bool conversion_successful = bluetooth::hci::Address::FromString(PyUnicode_AsUTF8(source), value);
50 static handle cast(bluetooth::hci::Address src, return_value_policy, handle) {
Daddress_with_type.h34 AddressWithType(Address address, AddressType address_type) in AddressWithType()
37 …explicit AddressWithType() : address_(Address::kEmpty), address_type_(AddressType::PUBLIC_DEVICE_A… in AddressWithType()
39 inline Address GetAddress() const { in GetAddress()
101 Address address_;
117 …static_assert(sizeof(uint64_t) >= (bluetooth::hci::Address::kLength + sizeof(bluetooth::hci::Addre…
119 …memcpy(reinterpret_cast<uint8_t*>(&int_addr), val.GetAddress().data(), bluetooth::hci::Address::kL…
122 …reinterpret_cast<uint8_t*>(&int_addr) + bluetooth::hci::Address::kLength, &address_type, sizeof(ad…
/system/bt/vendor_libs/test_vendor_lib/test/
Dsecurity_manager_unittest.cc44 Address btaddr1; in TEST_F()
45 Address btaddr2; in TEST_F()
46 Address btaddr3; in TEST_F()
47 Address btaddr4; in TEST_F()
50 Address::FromString(kTestAddr1, btaddr1); in TEST_F()
51 Address::FromString(kTestAddr2, btaddr2); in TEST_F()
52 Address::FromString(kTestAddr3, btaddr3); in TEST_F()
53 Address::FromString(kTestAddr4, btaddr4); in TEST_F()
63 Address btaddr1; in TEST_F()
64 Address btaddr2; in TEST_F()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dlink_manager.h62 Link* GetLink(hci::Address device);
64 void OnConnectFail(hci::Address device, hci::ErrorCode reason) override;
65 virtual void OnDisconnect(hci::Address device, hci::ErrorCode status);
69 …void ConnectFixedChannelServices(hci::Address device, PendingFixedChannelConnection pending_fixed_…
74 hci::Address device, Link::PendingDynamicChannelConnection pending_connection, Psm psm);
77 void InitiateConnectionForSecurity(hci::Address remote);
85 void handle_link_security_hold(hci::Address remote);
86 void handle_link_security_release(hci::Address remote);
87 void handle_link_security_disconnect(hci::Address remote);
88 void handle_link_security_ensure_authenticated(hci::Address remote);
[all …]
Dlink_manager.cc32 void LinkManager::ConnectFixedChannelServices(hci::Address device, in ConnectFixedChannelServices()
85 …hci::Address device, Link::PendingDynamicChannelConnection pending_dynamic_channel_connection, Psm… in ConnectDynamicChannelServices()
109 void LinkManager::InitiateConnectionForSecurity(hci::Address remote) { in InitiateConnectionForSecurity()
122 Link* LinkManager::GetLink(const hci::Address device) { in GetLink()
129 void LinkManager::handle_link_security_hold(hci::Address remote) { in handle_link_security_hold()
138 void LinkManager::handle_link_security_release(hci::Address remote) { in handle_link_security_release()
147 void LinkManager::handle_link_security_disconnect(hci::Address remote) { in handle_link_security_disconnect()
156 void LinkManager::handle_link_security_ensure_authenticated(hci::Address remote) { in handle_link_security_ensure_authenticated()
176 hci::Address GetRemoteAddress() override { in GetRemoteAddress()
198 hci::Address remote_;
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dsecurity_manager.h28 using ::bluetooth::hci::Address;
64 uint16_t DeleteKey(const Address& addr);
66 uint16_t ReadKey(const Address& addr) const;
67 uint16_t WriteKey(const Address& addr, const std::array<uint8_t, 16>& key);
70 const std::array<uint8_t, 16>& GetKey(const Address& addr) const;
72 void AuthenticationRequest(const Address& addr, uint16_t handle);
77 Address GetAuthenticationAddress();
79 void SetPeerIoCapability(const Address& addr, uint8_t io_capability, uint8_t oob_present_flag,
81 void SetLocalIoCapability(const Address& peer, uint8_t io_capability, uint8_t oob_present_flag,
106 Address peer_address_{};
Dacl_connection_handler.h37 bool CreatePendingConnection(bluetooth::hci::Address addr,
39 bool HasPendingConnection(bluetooth::hci::Address addr) const;
40 bool CancelPendingConnection(bluetooth::hci::Address addr);
47 uint16_t CreateConnection(bluetooth::hci::Address addr,
48 bluetooth::hci::Address own_addr);
55 uint16_t GetHandleOnlyAddress(bluetooth::hci::Address addr) const;
69 bluetooth::hci::Address pending_connection_address_{
70 bluetooth::hci::Address::kEmpty};
74 bluetooth::hci::Address::kEmpty,
Dlink_layer_controller.h33 using ::bluetooth::hci::Address;
44 const Address& remote);
51 void StartSimplePairing(const Address& address);
52 void AuthenticateRemoteStage1(const Address& address, PairingType pairing_type);
53 void AuthenticateRemoteStage2(const Address& address);
54 ErrorCode LinkKeyRequestReply(const Address& address,
56 ErrorCode LinkKeyRequestNegativeReply(const Address& address);
57 ErrorCode IoCapabilityRequestReply(const Address& peer, uint8_t io_capability,
60 ErrorCode IoCapabilityRequestNegativeReply(const Address& peer,
62 ErrorCode UserConfirmationRequestReply(const Address& peer);
[all …]
Dacl_connection_handler.cc27 using ::bluetooth::hci::Address;
48 Address addr, bool authenticate_on_connect) { in CreatePendingConnection()
58 bool AclConnectionHandler::HasPendingConnection(Address addr) const { in HasPendingConnection()
66 bool AclConnectionHandler::CancelPendingConnection(Address addr) { in CancelPendingConnection()
71 pending_connection_address_ = Address::kEmpty; in CancelPendingConnection()
106 AddressWithType{Address::kEmpty, AddressType::PUBLIC_DEVICE_ADDRESS}; in CancelPendingLeConnection()
110 uint16_t AclConnectionHandler::CreateConnection(Address addr, in CreateConnection()
111 Address own_addr) { in CreateConnection()
150 bluetooth::hci::Address addr) const { in GetHandleOnlyAddress()
Dsecurity_manager.cc31 uint16_t SecurityManager::DeleteKey(const Address& addr) { in DeleteKey()
43 uint16_t SecurityManager::ReadKey(const Address& addr) const { in ReadKey()
47 uint16_t SecurityManager::WriteKey(const Address& addr, in WriteKey()
57 const Address& addr) const { in GetKey()
62 void SecurityManager::AuthenticationRequest(const Address& addr, uint16_t handle) { in AuthenticationRequest()
80 Address SecurityManager::GetAuthenticationAddress() { in GetAuthenticationAddress()
84 void SecurityManager::SetPeerIoCapability(const Address& addr, uint8_t io_capability, uint8_t oob_p… in SetPeerIoCapability()
103 void SecurityManager::SetLocalIoCapability(const Address& peer, uint8_t io_capability, uint8_t oob_… in SetLocalIoCapability()
/system/bt/gd/neighbor/
Dname_db.cc41 …void ReadRemoteNameRequest(hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* h…
43 bool IsNameCached(hci::Address address) const;
44 RemoteName ReadCachedRemoteName(hci::Address address) const;
52 std::unordered_map<hci::Address, PendingRemoteNameRead> address_to_pending_read_map_;
53 std::unordered_map<hci::Address, RemoteName> address_to_name_map_;
55 void OnRemoteNameResponse(hci::ErrorCode status, hci::Address address, RemoteName name);
68 hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* handler) { in ReadRemoteNameRequest()
89 void neighbor::NameDbModule::impl::OnRemoteNameResponse(hci::ErrorCode status, hci::Address address… in OnRemoteNameResponse()
100 bool neighbor::NameDbModule::impl::IsNameCached(hci::Address address) const { in IsNameCached()
104 RemoteName neighbor::NameDbModule::impl::ReadCachedRemoteName(hci::Address address) const { in ReadCachedRemoteName()
[all …]
Dname_db.h31 using ReadRemoteNameDbCallback = common::OnceCallback<void(hci::Address address, bool success)>;
35 …void ReadRemoteNameRequest(hci::Address address, ReadRemoteNameDbCallback callback, os::Handler* h…
37 bool IsNameCached(hci::Address address) const;
38 RemoteName ReadCachedRemoteName(hci::Address address) const;
Dname.h31 using ReadRemoteNameCallback = common::OnceCallback<void(hci::ErrorCode status, hci::Address addres…
32 using CancelRemoteNameCallback = common::OnceCallback<void(hci::ErrorCode status, hci::Address addr…
37 hci::Address address,
43 …void CancelRemoteNameRequest(hci::Address address, CancelRemoteNameCallback on_cancel, os::Handler…
/system/tools/xsdc/tests/resources/nested_type/api/
Dcurrent.txt6 method public nested.type.Employee.Address getAddress();
10 method public void setAddress(nested.type.Employee.Address);
15 public static class Employee.Address {
16 ctor public Employee.Address();
18 method public nested.type.Employee.Address.Extra getExtra();
19 method public nested.type.Employee.Address.ExtraAddress getExtra_address();
23 method public void setExtra(nested.type.Employee.Address.Extra);
24 method public void setExtra_address(nested.type.Employee.Address.ExtraAddress);
29 public static class Employee.Address.Extra {
30 ctor public Employee.Address.Extra();
[all …]
/system/bt/gd/security/channel/
Dsecurity_manager_channel.h42 virtual void OnConnectionClosed(hci::Address) = 0;
59 void Connect(hci::Address address);
68 void Release(hci::Address address);
77 void Disconnect(hci::Address address);
115 void OnLinkDisconnected(hci::Address address) override;
122 …std::unordered_map<hci::Address, std::unique_ptr<l2cap::classic::LinkSecurityInterface>> link_map_;
/system/bt/gd/storage/
Ddevice_test.cc29 using bluetooth::hci::Address;
40 Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
46 Address address2 = {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}; in TEST()
53 Address address3 = {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}; in TEST()
65 Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
71 Address address2 = {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}; in TEST()
78 Address address3 = {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}; in TEST()
90 Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
96 Address pseudo_first_seen_address = {{0xab, 0xcd, 0xef, 0x12, 0x34, 0x56}}; in TEST()
97 Address le_identity_address = {{0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}}; in TEST()
[all …]
Dle_device_test.cc28 using bluetooth::hci::Address;
39 bluetooth::hci::Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
47 Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
59 bluetooth::hci::Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
63 bluetooth::hci::Address address3 = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x07}}; in TEST()
Dclassic_device_test.cc28 using bluetooth::hci::Address;
39 bluetooth::hci::Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
47 Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
59 bluetooth::hci::Address address = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x06}}; in TEST()
63 bluetooth::hci::Address address3 = {{0x01, 0x02, 0x03, 0x04, 0x05, 0x07}}; in TEST()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice_properties.h31 using ::bluetooth::hci::Address;
87 const Address& GetAddress() const { in GetAddress()
91 void SetAddress(const Address& address) { in SetAddress()
182 const Address& GetLeAddress() const { in GetLeAddress()
186 void SetLeAddress(const Address& address) { in SetLeAddress()
218 Address GetLeAdvertisingPeerAddress() const { in GetLeAdvertisingPeerAddress()
231 … uint8_t own_address_type, uint8_t peer_address_type, Address peer_address, in SetLeAdvertisingParameters()
319 Address address_{};
332 Address le_address_{};
339 Address le_advertising_peer_address_{};
/system/bt/gd/security/test/
Dfake_security_interface.h26 …FakeLinkSecurityInterface(l2cap::classic::LinkSecurityInterfaceListener* listener, hci::Address ad… in FakeLinkSecurityInterface()
29 hci::Address GetRemoteAddress() { in GetRemoteAddress()
44 hci::Address address_;
52 void InitiateConnectionForSecurity(hci::Address remote) override { in InitiateConnectionForSecurity()

123456