Home
last modified time | relevance | path

Searched refs:IsValidAddress (Results 1 – 12 of 12) sorted by relevance

/system/bt/types/test/
Draw_address_unittest.cc167 TEST(RawAddressTest, IsValidAddress) { in TEST() argument
168 EXPECT_FALSE(RawAddress::IsValidAddress("")); in TEST()
169 EXPECT_FALSE(RawAddress::IsValidAddress("000000000000")); in TEST()
170 EXPECT_FALSE(RawAddress::IsValidAddress("00:00:00:00:0000")); in TEST()
171 EXPECT_FALSE(RawAddress::IsValidAddress("00:00:00:00:00:0")); in TEST()
172 EXPECT_FALSE(RawAddress::IsValidAddress("00:00:00:00:00:0;")); in TEST()
173 EXPECT_TRUE(RawAddress::IsValidAddress("00:00:00:00:00:00")); in TEST()
174 EXPECT_TRUE(RawAddress::IsValidAddress("AB:cd:00:00:00:00")); in TEST()
175 EXPECT_FALSE(RawAddress::IsValidAddress("aB:cD:eF:Gh:iJ:Kl")); in TEST()
/system/bt/gd/hci/
Daddress_unittest.cc172 TEST(AddressTest, IsValidAddress) { in TEST() argument
173 ASSERT_FALSE(Address::IsValidAddress("")); in TEST()
174 ASSERT_FALSE(Address::IsValidAddress("000000000000")); in TEST()
175 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:0000")); in TEST()
176 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:00:0")); in TEST()
177 ASSERT_FALSE(Address::IsValidAddress("00:00:00:00:00:0;")); in TEST()
178 ASSERT_TRUE(Address::IsValidAddress("00:00:00:00:00:00")); in TEST()
179 ASSERT_TRUE(Address::IsValidAddress("AB:cd:00:00:00:00")); in TEST()
180 ASSERT_FALSE(Address::IsValidAddress("aB:cD:eF:Gh:iJ:Kl")); in TEST()
Daddress.cc118 bool Address::IsValidAddress(const std::string& address) { in IsValidAddress() function in bluetooth::hci::Address
Daddress.h89 static bool IsValidAddress(const std::string& address);
/system/bt/service/common/bluetooth/
Dscan_result.cc27 CHECK(RawAddress::IsValidAddress(device_address)) << "Invalid BD_ADDR given: " in ScanResult()
Dscan_filter.cc51 if (!RawAddress::IsValidAddress(device_address)) return false; in SetDeviceAddress()
/system/bt/types/
Draw_address.cc70 bool RawAddress::IsValidAddress(const std::string& address) { in IsValidAddress() function in RawAddress
Draw_address.h59 static bool IsValidAddress(const std::string& address);
/system/bt/test/headless/
Dget_options.cc81 if (RawAddress::IsValidAddress(entry)) { in ProcessOption()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dscripted_beacon.cc228 if (Address::IsValidAddress(mac_address)) { in get_next_advertisement()
/system/bt/gd/storage/
Dconfig_cache.cc259 return hci::Address::IsValidAddress(section); in IsDeviceSection()
365 if (!hci::Address::IsValidAddress(section_name)) { in FixDeviceTypeInconsistencyInSection()
/system/bt/btif/src/
Dbtif_config_cache.cc193 (is_link_key(key) && RawAddress::IsValidAddress(section_name))) { in SetString()