Home
last modified time | relevance | path

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

12345678

/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 …]
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) {
/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.h66 Link* GetLink(hci::Address device);
68 void OnConnectFail(hci::Address device, hci::ErrorCode reason) override;
70 void HACK_OnEscoConnectRequest(hci::Address, hci::ClassOfDevice) override;
71 void HACK_OnScoConnectRequest(hci::Address, hci::ClassOfDevice) override;
73 virtual void OnDisconnect(hci::Address device, hci::ErrorCode status);
74 void OnAuthenticationComplete(hci::ErrorCode hci_status, hci::Address device);
75 void OnEncryptionChange(hci::Address device, hci::EncryptionEnabled enabled);
78 hci::Address device,
82 void OnReadRemoteSupportedFeatures(hci::Address device, uint64_t features);
84 hci::Address device, uint8_t page_number, uint8_t max_page_number, uint64_t features);
[all …]
Dlink_manager.cc33 void LinkManager::ConnectFixedChannelServices(hci::Address device, in ConnectFixedChannelServices()
86 …hci::Address device, Link::PendingDynamicChannelConnection pending_dynamic_channel_connection, Psm… in ConnectDynamicChannelServices()
105 void LinkManager::InitiateConnectionForSecurity(hci::Address remote) { in InitiateConnectionForSecurity()
127 void LinkManager::OnPendingPacketChange(hci::Address remote, int num_packets) { in OnPendingPacketChange()
138 Link* LinkManager::GetLink(const hci::Address device) { in GetLink()
145 void LinkManager::handle_link_security_hold(hci::Address remote) { in handle_link_security_hold()
154 void LinkManager::handle_link_security_release(hci::Address remote) { in handle_link_security_release()
163 void LinkManager::handle_link_security_disconnect(hci::Address remote) { in handle_link_security_disconnect()
172 void LinkManager::handle_link_security_ensure_authenticated(hci::Address remote) { in handle_link_security_ensure_authenticated()
181 void LinkManager::handle_link_security_ensure_encrypted(hci::Address remote) { in handle_link_security_ensure_encrypted()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dsecurity_manager.h29 using ::bluetooth::hci::Address;
67 uint16_t DeleteKey(const Address& addr);
69 uint16_t ReadKey(const Address& addr) const;
70 uint16_t WriteKey(const Address& addr, const std::array<uint8_t, 16>& key);
73 const std::array<uint8_t, 16>& GetKey(const Address& addr) const;
75 void AuthenticationRequest(const Address& addr, uint16_t handle);
80 Address GetAuthenticationAddress();
82 void SetPinRequested(const Address& addr);
83 bool GetPinRequested(const Address& addr);
84 void SetLocalPin(const Address& peer, const std::vector<uint8_t>& pin);
[all …]
Dlink_layer_controller.h32 using ::bluetooth::hci::Address;
43 const Address& remote);
46 const Address& remote, const Address& local);
52 void StartSimplePairing(const Address& address);
53 void AuthenticateRemoteStage1(const Address& address, PairingType pairing_type);
54 void AuthenticateRemoteStage2(const Address& address);
55 void SaveKeyAndAuthenticate(uint8_t key_type, const Address& peer);
56 ErrorCode LinkKeyRequestReply(const Address& address,
58 ErrorCode LinkKeyRequestNegativeReply(const Address& address);
59 ErrorCode IoCapabilityRequestReply(const Address& peer, uint8_t io_capability,
[all …]
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()
83 Address SecurityManager::GetAuthenticationAddress() { in GetAuthenticationAddress()
87 void SecurityManager::SetPeerIoCapability(const Address& addr, uint8_t io_capability, uint8_t oob_p… in SetPeerIoCapability()
106 void SecurityManager::SetLocalIoCapability(const Address& peer, uint8_t io_capability, uint8_t oob_… in SetLocalIoCapability()
194 void SecurityManager::SetPinRequested(const Address& addr) { in SetPinRequested()
199 bool SecurityManager::GetPinRequested(const Address& addr) { in GetPinRequested()
[all …]
Dacl_connection_handler.h38 bool CreatePendingConnection(bluetooth::hci::Address addr,
40 bool HasPendingConnection(bluetooth::hci::Address addr) const;
41 bool CancelPendingConnection(bluetooth::hci::Address addr);
48 uint16_t CreateConnection(bluetooth::hci::Address addr,
49 bluetooth::hci::Address own_addr);
56 uint16_t GetHandleOnlyAddress(bluetooth::hci::Address addr) const;
108 bluetooth::hci::Address pending_connection_address_{
109 bluetooth::hci::Address::kEmpty};
113 bluetooth::hci::Address::kEmpty,
/system/bt/gd/os/linux/
Dmetrics.cc25 using bluetooth::hci::Address;
28 const Address& address, in LogMetricClassicPairingEvent()
37 const Address& address, in LogMetricSocketConnectionState()
50 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) {} in LogMetricA2dpAudioUnderrunEvent()
53 const Address& address, in LogMetricA2dpAudioOverrunEvent()
59 void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t r… in LogMetricReadRssiResult()
62 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter) {} in LogMetricReadFailedContactCounterResult()
65 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level) {} in LogMetricReadTxPowerLevelResult()
71 const Address* address, in LogMetricLinkLayerConnectionEvent()
82 const Address& address, in LogMetricManufacturerInfo()
[all …]
/system/bt/gd/os/host/
Dmetrics.cc25 using bluetooth::hci::Address;
28 const Address& address, in LogMetricClassicPairingEvent()
37 const Address& address, in LogMetricSocketConnectionState()
50 const Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes) {} in LogMetricA2dpAudioUnderrunEvent()
53 const Address& address, in LogMetricA2dpAudioOverrunEvent()
59 void LogMetricReadRssiResult(const Address& address, uint16_t handle, uint32_t cmd_status, int8_t r… in LogMetricReadRssiResult()
62 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter) {} in LogMetricReadFailedContactCounterResult()
65 const Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level) {} in LogMetricReadTxPowerLevelResult()
71 const Address* address, in LogMetricLinkLayerConnectionEvent()
82 const Address& address, in LogMetricManufacturerInfo()
[all …]
/system/bt/gd/common/
Dmetric_id_manager_unittest.cc29 bluetooth::hci::Address kthAddress(uint32_t k) { in kthAddress()
35 bluetooth::hci::Address addr(array); in kthAddress()
39 std::unordered_map<bluetooth::hci::Address, int> generateAddresses( in generateAddresses()
43 std::unordered_map<bluetooth::hci::Address, int> device_map; in generateAddresses()
52 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST()
54 const bluetooth::hci::Address&, const int) { in TEST() argument
64 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST()
66 const bluetooth::hci::Address&, const int) { in TEST() argument
78 std::unordered_map<bluetooth::hci::Address, int> paired_device_map; in TEST()
80 const bluetooth::hci::Address&, const int) { in TEST() argument
[all …]
Dmetric_id_manager.h34 using Callback = std::function<bool(const hci::Address& address, const int id)>;
63 const std::unordered_map<hci::Address, int>& paired_device_map,
88 int AllocateId(const hci::Address& mac_address);
96 bool SaveDevice(const hci::Address& mac_address);
103 void ForgetDevice(const hci::Address& mac_address);
122 LruCache<hci::Address, int> paired_device_cache_;
123 LruCache<hci::Address, int> temporary_device_cache_;
131 void ForgetDevicePostprocess(const hci::Address& mac_address,
/system/bt/gd/os/
Dmetrics.h50 const hci::Address* address,
94 const hci::Address& address, uint64_t encoding_interval_millis, int num_missing_pcm_bytes);
108 const hci::Address& address,
121 void LogMetricA2dpPlaybackEvent(const hci::Address& address, int playback_state, int audio_coding_m…
132 void LogMetricReadRssiResult(const hci::Address& address, uint16_t handle, uint32_t cmd_status, int…
145 …const hci::Address& address, uint16_t handle, uint32_t cmd_status, int32_t failed_contact_counter);
158 … const hci::Address& address, uint16_t handle, uint32_t cmd_status, int32_t transmit_power_level);
169 …const hci::Address& address, uint8_t smp_cmd, android::bluetooth::DirectionEnum direction, uint8_t…
184 const hci::Address& address,
203 const hci::Address& address,
[all …]
/system/bt/gd/l2cap/classic/
Dlink_property_listener.h38 virtual void OnLinkConnected(hci::Address remote, uint16_t handle) {} in OnLinkConnected()
43 virtual void OnLinkDisconnected(hci::Address remote) {} in OnLinkDisconnected()
50 hci::Address remote, in OnReadRemoteVersionInformation()
58 virtual void OnReadRemoteSupportedFeatures(hci::Address remote, uint64_t features) {} in OnReadRemoteSupportedFeatures()
64 hci::Address remote, uint8_t page_number, uint8_t max_page_number, uint64_t features) {} in OnReadRemoteExtendedFeatures()
69 virtual void OnRoleChange(hci::ErrorCode hci_status, hci::Address remote, hci::Role role) {} in OnRoleChange()
74 virtual void OnReadClockOffset(hci::Address remote, uint16_t clock_offset) {} in OnReadClockOffset()
79 …virtual void OnModeChange(hci::ErrorCode hci_status, hci::Address remote, hci::Mode mode, uint16_t… in OnModeChange()
86 hci::Address remote, in OnSniffSubrating()
Dlink_security_interface.h39 virtual void InitiateConnectionForSecurity(hci::Address remote) = 0;
55 virtual hci::Address GetRemoteAddress() = 0;
105 virtual void OnLinkDisconnected(hci::Address remote) {} in OnLinkDisconnected()
110 virtual void OnAuthenticationComplete(hci::ErrorCode hci_status, hci::Address remote) {} in OnAuthenticationComplete()
116 virtual void OnEncryptionChange(hci::Address remote, bool encrypted) {} in OnEncryptionChange()
/system/bt/main/shim/
Dmetric_id_api.cc27 using bluetooth::hci::Address;
31 using CallbackGd = std::function<bool(const Address& address, const int id)>;
36 std::unordered_map<Address, int> paired_device_map_gd; in InitMetricIdAllocator()
38 Address address = bluetooth::ToGdAddress(device.first); in InitMetricIdAllocator()
42 CallbackGd save_id_callback_gd = [save_id_callback](const Address& address, in InitMetricIdAllocator()
47 [forget_device_callback](const Address& address, const int id) { in InitMetricIdAllocator()
61 Address address = bluetooth::ToGdAddress(raw_address); in AllocateIdFromMetricIdAllocator()
66 Address address = bluetooth::ToGdAddress(raw_address); in SaveDeviceOnMetricIdAllocator()
71 Address address = bluetooth::ToGdAddress(raw_address); in ForgetDeviceFromMetricIdAllocator()
Dmetrics_api.cc23 using bluetooth::hci::Address;
32 Address address = Address::kEmpty; in LogMetricLinkLayerConnectionEvent()
44 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpAudioUnderrunEvent()
54 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpAudioOverrunEvent()
62 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricA2dpPlaybackEvent()
69 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricReadRssiResult()
77 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricReadFailedContactCounterResult()
85 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricReadTxPowerLevelResult()
93 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricSmpPairingEvent()
102 Address address = bluetooth::ToGdAddress(raw_address); in LogMetricClassicPairingEvent()
[all …]
/system/bt/gd/rust/hci/custom_types/
Dlib.rs8 pub const EMPTY_ADDRESS: Address = Address { bytes: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00] };
10 pub const ANY_ADDRESS: Address = Address { bytes: [0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF] };
14 pub struct Address { struct
19 impl Address { argument
26 impl fmt::Display for Address { implementation
45 impl TryFrom<&[u8]> for Address { implementation
60 impl From<Address> for [u8; 6] {
61 fn from(addr: Address) -> [u8; 6] { in from()
/system/bt/gd/security/channel/
Dsecurity_manager_channel.h45 virtual void OnConnectionClosed(hci::Address) = 0;
62 void Connect(hci::Address address);
71 void Release(hci::Address address);
80 void Disconnect(hci::Address address);
126 void OnLinkDisconnected(hci::Address address) override;
127 void OnAuthenticationComplete(hci::ErrorCode hci_status, hci::Address remote) override;
128 void OnEncryptionChange(hci::Address, bool encrypted) override;
135 …std::unordered_map<hci::Address, std::unique_ptr<l2cap::classic::LinkSecurityInterface>> link_map_;
136 std::set<hci::Address> outgoing_pairing_remote_devices_;
/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/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, std::list<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()
92 void neighbor::NameDbModule::impl::OnRemoteNameResponse(hci::ErrorCode status, hci::Address address… in OnRemoteNameResponse()
104 bool neighbor::NameDbModule::impl::IsNameCached(hci::Address address) const { in IsNameCached()
108 RemoteName neighbor::NameDbModule::impl::ReadCachedRemoteName(hci::Address address) const { in ReadCachedRemoteName()
[all …]

12345678