/system/bt/gd/hci/ |
D | address_unittest.cc | 25 using bluetooth::hci::Address; 31 Address bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST() 46 Address empty; in TEST() 47 Address::FromString("00:00:00:00:00:00", empty); in TEST() 50 Address not_empty; in TEST() 51 Address::FromString("00:00:00:00:00:01", not_empty); in TEST() 56 Address bdaddr; in TEST() 57 Address::FromString(test_addr, bdaddr); in TEST() 74 Address bdaddr; in TEST() 75 size_t expected_result = Address::kLength; in TEST() [all …]
|
D | address.cc | 31 static_assert(sizeof(Address) == 6, "Address must be 6 bytes long!"); 33 const Address Address::kAny{{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}}; 34 const Address Address::kEmpty{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; 36 Address::Address(const uint8_t (&addr)[6]) { in Address() function in bluetooth::hci::Address 40 std::string Address::ToString() const { in ToString() 48 bool Address::FromString(const std::string& from, Address& to) { in FromString() 49 Address new_addr; in FromString() 83 size_t Address::FromOctets(const uint8_t* from) { in FromOctets() 88 bool Address::IsValidAddress(const std::string& address) { in IsValidAddress() 89 Address tmp; in IsValidAddress() [all …]
|
D | address.h | 27 class Address final { 33 Address() = default; 34 Address(const uint8_t (&addr)[6]); 36 bool operator<(const Address& rhs) const { 39 bool operator==(const Address& rhs) const { 42 bool operator>(const Address& rhs) const { 45 bool operator<=(const Address& rhs) const { 48 bool operator>=(const Address& rhs) const { 51 bool operator!=(const Address& rhs) const { 64 static bool FromString(const std::string& from, Address& to); [all …]
|
D | address_with_type_test.cc | 31 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 …]
|
D | dual_device_test.cc | 27 static const Address address(test_addr); 33 explicit TestableClassicDevice(Address a) : ClassicDevice(a) {} in TestableClassicDevice() 37 explicit TestableLeDevice(Address a) : LeDevice(a) {} in TestableLeDevice() 41 TestableDevice(Address a, std::shared_ptr<TestableClassicDevice>& classic_device, in TestableDevice() 46 Address a({0x01, 0x02, 0x03, 0x04, 0x05, 0x06}); in SetTheAddress() 54 DualDeviceTest() : device_(Address(test_addr), classic_device, le_device) {} in DualDeviceTest() 64 Address a = device_.GetAddress(); in TEST_F()
|
D | le_device.h | 38 void SetPublicAddress(Address public_address) { in SetPublicAddress() 42 Address GetPublicAddress() { in GetPublicAddress() 82 …explicit LeDevice(Address address) : Device(address, DeviceType::LE), public_address_(), irk_(0) {} in LeDevice() 85 Address public_address_;
|
D | address_pybind11_type_caster.h | 34 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) {
|
D | address_with_type.h | 34 …AddressWithType(Address address, AddressType address_type) : address_(address), address_type_(addr… in AddressWithType() 36 …explicit AddressWithType() : address_(Address::kEmpty), address_type_(AddressType::PUBLIC_DEVICE_A… in AddressWithType() 38 inline Address GetAddress() const { in GetAddress() 100 Address address_; 116 …static_assert(sizeof(uint64_t) >= (sizeof(bluetooth::hci::Address) + sizeof(bluetooth::hci::Addres… 118 …(reinterpret_cast<uint8_t*>(&int_addr), val.GetAddress().address, sizeof(bluetooth::hci::Address)); 120 memcpy(reinterpret_cast<uint8_t*>(&int_addr) + sizeof(bluetooth::hci::Address), &address_type,
|
D | device.h | 43 Address GetAddress() const { in GetAddress() 88 Device(Address address, DeviceType device_type) in Device() 96 virtual void SetAddress(Address address) { in SetAddress() 125 Address address_{Address::kEmpty};
|
D | device_database.h | 52 std::shared_ptr<ClassicDevice> CreateClassicDevice(Address address); 60 std::shared_ptr<LeDevice> CreateLeDevice(Address address); 68 std::shared_ptr<DualDevice> CreateDualDevice(Address address); 110 bool UpdateDeviceAddress(const std::shared_ptr<Device>& device, Address new_address);
|
D | device_test.cc | 27 static const Address address(test_addr); 33 explicit TestableDevice(Address a) : Device(a, CLASSIC) {} in TestableDevice() 36 Address a({0x01, 0x02, 0x03, 0x04, 0x05, 0x06}); in SetTheAddress() 53 DeviceTest() : device_(Address(test_addr)) {} in DeviceTest()
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | security_manager_unittest.cc | 44 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/vendor_libs/test_vendor_lib/model/controller/ |
D | security_manager.h | 28 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, 104 Address peer_address_;
|
D | acl_connection_handler.h | 37 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,
|
D | link_layer_controller.h | 32 using ::bluetooth::hci::Address; 43 const Address& remote); 50 void StartSimplePairing(const Address& address); 51 void AuthenticateRemoteStage1(const Address& address, PairingType pairing_type); 52 void AuthenticateRemoteStage2(const Address& address); 53 ErrorCode LinkKeyRequestReply(const Address& address, 55 ErrorCode LinkKeyRequestNegativeReply(const Address& address); 56 ErrorCode IoCapabilityRequestReply(const Address& peer, uint8_t io_capability, 59 ErrorCode IoCapabilityRequestNegativeReply(const Address& peer, 61 ErrorCode UserConfirmationRequestReply(const Address& peer); [all …]
|
D | acl_connection_handler.cc | 27 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()
|
D | security_manager.cc | 31 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/l2cap/classic/internal/ |
D | link_manager.h | 61 Link* GetLink(hci::Address device); 63 void OnConnectFail(hci::Address device, hci::ErrorCode reason) override; 64 void OnDisconnect(hci::Address device, hci::ErrorCode status); 68 …void ConnectFixedChannelServices(hci::Address device, PendingFixedChannelConnection pending_fixed_… 72 void ConnectDynamicChannelServices(hci::Address device, 86 std::unordered_map<hci::Address, PendingLink> pending_links_; 87 std::unordered_map<hci::Address, Link> links_; 88 std::unordered_map<hci::Address, std::list<Psm>> pending_dynamic_channels_; 89 std::unordered_map<hci::Address, std::list<Link::PendingDynamicChannelConnection>>
|
/system/tools/xsdc/tests/resources/nested_type/api/ |
D | current.txt | 6 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/ |
D | name_db.cc | 41 …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); 67 void neighbor::NameDbModule::impl::ReadRemoteNameRequest(hci::Address address, ReadRemoteNameDbCall… in ReadRemoteNameRequest() 85 void neighbor::NameDbModule::impl::OnRemoteNameResponse(hci::ErrorCode status, hci::Address address… in OnRemoteNameResponse() 96 bool neighbor::NameDbModule::impl::IsNameCached(hci::Address address) const { in IsNameCached() 100 RemoteName neighbor::NameDbModule::impl::ReadCachedRemoteName(hci::Address address) const { in ReadCachedRemoteName() [all …]
|
D | name_db.h | 31 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;
|
D | name.h | 31 using ReadRemoteNameCallback = common::OnceCallback<void(hci::ErrorCode status, hci::Address addres… 32 using CancelRemoteNameCallback = common::OnceCallback<void(hci::ErrorCode status, hci::Address addr… 36 …void ReadRemoteNameRequest(hci::Address address, hci::PageScanRepetitionMode page_scan_repetition_… 39 …void CancelRemoteNameRequest(hci::Address address, CancelRemoteNameCallback on_cancel, os::Handler…
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | device_properties.h | 31 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() 321 Address address_; 334 Address le_address_; 341 Address le_advertising_peer_address_;
|
D | beacon_swarm.cc | 64 Address addr; in Initialize() 65 if (Address::FromString(args[1], addr)) properties_.SetLeAddress(addr); in Initialize() 73 Address beacon_addr = properties_.GetLeAddress(); in TimerTick()
|
D | sniffer.cc | 33 if (Address::FromString(args[1], device_to_sniff_)) { in Initialize() 43 Address source = packet.GetSourceAddress(); in IncomingPacket() 44 Address dest = packet.GetDestinationAddress(); in IncomingPacket()
|