/system/bt/common/ |
D | metric_id_allocator.cc | 114 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() argument 118 if (paired_device_cache_.Get(mac_address, &id)) { in AllocateId() 121 if (temporary_device_cache_.Get(mac_address, &id)) { in AllocateId() 135 auto evicted = temporary_device_cache_.Put(mac_address, id); in AllocateId() 147 bool MetricIdAllocator::SaveDevice(const RawAddress& mac_address) { in SaveDevice() argument 150 if (paired_device_cache_.Get(mac_address, &id)) { in SaveDevice() 153 if (!temporary_device_cache_.Get(mac_address, &id)) { in SaveDevice() 159 if (!temporary_device_cache_.Remove(mac_address)) { in SaveDevice() 164 auto evicted = paired_device_cache_.Put(mac_address, id); in SaveDevice() 168 if (!save_id_callback_(mac_address, id)) { in SaveDevice() [all …]
|
D | metric_id_allocator.h | 87 int AllocateId(const RawAddress& mac_address); 95 bool SaveDevice(const RawAddress& mac_address); 102 void ForgetDevice(const RawAddress& mac_address); 131 void ForgetDevicePostprocess(const RawAddress& mac_address, const int id);
|
/system/connectivity/wificond/ |
D | ap_interface_impl.cpp | 86 const array<uint8_t, ETH_ALEN>& mac_address) { in OnStationEvent() argument 89 << LoggingUtils::GetMacString(mac_address) in OnStationEvent() 94 vector<uint8_t> mac_return_address = vector<uint8_t>(mac_address.begin(), mac_address.end()); in OnStationEvent() 110 << LoggingUtils::GetMacString(mac_address) in OnStationEvent() 117 vector<uint8_t> mac_return_address = vector<uint8_t>(mac_address.begin(), mac_address.end()); in OnStationEvent()
|
D | logging_utils.cpp | 31 string LoggingUtils::GetMacString(const array<uint8_t, ETH_ALEN>& mac_address) { in GetMacString() argument 33 for (const uint8_t& b : mac_address) { in GetMacString() 35 if (&b != &mac_address.back()) { in GetMacString()
|
D | logging_utils.h | 35 static std::string GetMacString(const std::array<uint8_t, ETH_ALEN>& mac_address);
|
D | ap_interface_impl.h | 72 const std::array<uint8_t, ETH_ALEN>& mac_address);
|
D | server.cpp | 134 interface.mac_address, in createClientInterface() 206 << LoggingUtils::GetMacString(iface.mac_address) << endl; in dump()
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | scripted_beacon.cc | 223 std::string mac_address = in get_next_advertisement() local 224 ble_ad_list_.advertisements(packet_num_).mac_address(); in get_next_advertisement() 228 if (Address::IsValidAddress(mac_address)) { in get_next_advertisement() 230 Address::FromString(mac_address, next_ad_.address); in get_next_advertisement() 231 } else if (mac_address.size() == Address::kLength) { in get_next_advertisement() 233 std::vector<uint8_t> mac_vector(mac_address.cbegin(), mac_address.cend()); in get_next_advertisement()
|
D | scripted_beacon_ble_payload.proto | 9 optional bytes mac_address = 2; field
|
/system/connectivity/wificond/tests/integration/ |
D | client_interface_test.cpp | 86 vector<uint8_t> mac_address; in TEST() local 87 EXPECT_TRUE(client_interface->getMacAddress(&mac_address).isOk()); in TEST() 88 EXPECT_TRUE(mac_address.size() == 6); in TEST()
|
/system/connectivity/wificond/net/ |
D | netlink_utils.h | 39 const std::array<uint8_t, ETH_ALEN>& mac_address) in InterfaceInfo() 42 mac_address(mac_address) {} in InterfaceInfo() 48 std::array<uint8_t, ETH_ALEN> mac_address; member 203 const std::array<uint8_t, ETH_ALEN>& mac_address,
|
D | netlink_manager.cpp | 538 array<uint8_t, ETH_ALEN> mac_address; in BroadcastHandler() local 539 if (!packet->GetAttributeValue(NL80211_ATTR_MAC, &mac_address)) { in BroadcastHandler() 544 handler->second(NEW_STATION, mac_address); in BroadcastHandler() 546 handler->second(DEL_STATION, mac_address); in BroadcastHandler()
|
D | netlink_manager.h | 119 const std::array<uint8_t, ETH_ALEN>& mac_address)> OnStationEventHandler;
|
D | netlink_utils.cpp | 478 const array<uint8_t, ETH_ALEN>& mac_address, in GetStationInfo() argument 488 NL80211_ATTR_MAC, mac_address)); in GetStationInfo()
|
/system/connectivity/wificond/tests/ |
D | nl80211_attribute_unittest.cpp | 142 std::vector<uint8_t> mac_address( in TEST() local 145 NL80211Attr<std::vector<uint8_t>> byte_vector_attr(1, mac_address); in TEST() 146 EXPECT_EQ(byte_vector_attr.GetValue(), mac_address); in TEST()
|
D | netlink_utils_unittest.cpp | 390 EXPECT_EQ(if_mac_addr, interfaces[0].mac_address); in TEST_F() 429 EXPECT_EQ(if_mac_addr, interfaces[0].mac_address); in TEST_F() 479 EXPECT_EQ(if_mac_addr_p2p, interfaces[0].mac_address); in TEST_F() 483 EXPECT_EQ(if_mac_addr, interfaces[1].mac_address); in TEST_F()
|
/system/bt/btif/src/ |
D | btif_config.cc | 204 for (const auto& mac_address : btif_config_get_paired_devices()) { in init_metric_id_allocator() local 205 auto addr_str = mac_address.ToString(); in init_metric_id_allocator() 213 paired_device_map[mac_address] = id; in init_metric_id_allocator() 218 addresses_without_id.push_back(mac_address); in init_metric_id_allocator()
|